Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.98a is out! (03/27/25)

Pages: [1] 2

Author Topic: 0.98a-rc5: "Error initializing music source" at Hesperus shrine  (Read 792 times)

nnubnubnub

  • Ensign
  • *
  • Posts: 21
    • View Profile

After waiting a week (per Executor Orbis's request) to enter the Hesperus shrine, during the dialogue, I get this:

Quote
The gallery is filled with parties of Luddic pilgrims dressed in traditional handweave meeting with shrine attendants.
Runtime Exception: Error initializing music source - AL error 40964
Ask to visit the shrine

And the music does not play.

starsector.log excerpt:
Quote
5787172 [Thread-3] WARN  com.fs.starfarer.campaign.rules.oOOO  - Problem with command of class com.fs.starfarer.api.impl.campaign.rulecmd.missions.ShrineCMD: Error initializing music source - AL error 40964
java.lang.RuntimeException: Error initializing music source - AL error 40964
        at sound.public.<init>(Unknown Source)
        at sound.OooO.o00000(Unknown Source)
        at sound.OooO.o00000(Unknown Source)
        at com.fs.starfarer.loading.I.Ø00000(Unknown Source)
        at com.fs.starfarer.loading.I.Ö00000(Unknown Source)
        at com.fs.starfarer.D.K.o00000(Unknown Source)
        at com.fs.starfarer.D.F.super(Unknown Source)
        at com.fs.starfarer.combat.CombatMain$3.playCustomMusic(Unknown Source)
        at com.fs.starfarer.api.impl.campaign.rulecmd.missions.ShrineCMD.execute(ShrineCMD.java:77)
        at com.fs.starfarer.campaign.rules.oOOO.execute(Unknown Source)
        at com.fs.starfarer.campaign.rules.Object.runScript(Unknown Source)
        at com.fs.starfarer.api.impl.campaign.rulecmd.FireBest.applyRule(FireBest.java:106)
        at com.fs.starfarer.api.impl.campaign.rulecmd.FireBest.execute(FireBest.java:51)
        at com.fs.starfarer.api.impl.campaign.rulecmd.FireBest.fire(FireBest.java:57)
        at com.fs.starfarer.api.impl.campaign.RuleBasedInteractionDialogPluginImpl.fireBes t(RuleBasedInteractionDialogPluginImpl.java:182)
        at com.fs.starfarer.api.impl.campaign.RuleBasedInteractionDialogPluginImpl.optionS elected(RuleBasedInteractionDialogPluginImpl.java:215)
        at com.fs.starfarer.ui.newui.classsuper$1.o00000(Unknown Source)
        at com.fs.starfarer.ui.newui.OoOO.actionPerformed(Unknown Source)
        at com.fs.starfarer.ui.n.buttonPressed(Unknown Source)
        at com.fs.starfarer.ui.int.Ò00000(Unknown Source)
        at com.fs.starfarer.ui.int.processInput(Unknown Source)
        at com.fs.starfarer.ui.n.processInputImpl(Unknown Source)
        at com.fs.starfarer.ui.OOOo.processInput(Unknown Source)
        at com.fs.starfarer.ui.o000.dispatchEventsToChildren(Unknown Source)
        at com.fs.starfarer.ui.o000.processInputImpl(Unknown Source)
        at com.fs.starfarer.ui.newui.OoOO.processInputImpl(Unknown Source)
        at com.fs.starfarer.ui.OOOo.processInput(Unknown Source)
        at com.fs.starfarer.ui.g$oo.processInputImpl(Unknown Source)
        at com.fs.starfarer.ui.OOOo.processInput(Unknown Source)
        at com.fs.starfarer.ui.o000.dispatchEventsToChildren(Unknown Source)
        at com.fs.starfarer.ui.o000.processInputImpl(Unknown Source)
        at com.fs.starfarer.ui.g.processInputImpl(Unknown Source)
        at com.fs.starfarer.ui.OOOo.processInput(Unknown Source)
        at com.fs.starfarer.ui.o000.dispatchEventsToChildren(Unknown Source)
        at com.fs.starfarer.ui.o000.processInputImpl(Unknown Source)
        at com.fs.starfarer.ui.public.processInputImpl(Unknown Source)
        at com.fs.starfarer.ui.newui.classsuper.processInputImpl(Unknown Source)
        at com.fs.starfarer.ui.OOOo.processInput(Unknown Source)
        at com.fs.starfarer.ui.o000.dispatchEventsToChildren(Unknown Source)
        at com.fs.starfarer.ui.o000.processInputImpl(Unknown Source)
        at com.fs.starfarer.ui.OOOo.processInput(Unknown Source)
        at com.fs.starfarer.campaign.CampaignState.processInput(Unknown Source)
        at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
        at com.fs.state.AppDriver.begin(Unknown Source)
        at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
        at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
        at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
        at java.base/java.lang.Thread.run(Unknown Source)

Later, re-visiting the shrine (before leaving the planet), it displays a slightly different error, and again there is no music:
Quote
The gallery is filled with parties of Luddic pilgrims dressed in traditional handweave meeting with shrine attendants.
RuntimeException: Error initializing music source - AL error - 1

I'll show just part of the log here:
Quote
6072359 [Thread-3] WARN  com.fs.starfarer.D.K  - Error initializing music source - AL error -1
java.lang.RuntimeException: Error initializing music source - AL error -1
        at sound.public.<init>(Unknown Source)
        at sound.OooO.o00000(Unknown Source)
        at sound.OooO.o00000(Unknown Source)
        at com.fs.starfarer.loading.I.Ø00000(Unknown Source)
        at com.fs.starfarer.loading.I.Ö00000(Unknown Source)
        at com.fs.starfarer.D.K.Õ00000(Unknown Source)
        at com.fs.starfarer.D.E.Õ00000(Unknown Source)
        at com.fs.starfarer.D.F.Ò00000(Unknown Source)
        at com.fs.starfarer.combat.CombatMain$3.restartCurrentMusic(Unknown Source)
        at com.fs.starfarer.api.impl.campaign.rulecmd.missions.ShrineCMD.execute(ShrineCMD.java:83)
...

(Mac OS 13.7.2 here)
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 26033
    • View Profile
Re: 0.98a-rc5: "Error initializing music source" at Hesperus shrine
« Reply #1 on: March 27, 2025, 06:36:19 PM »

Thank you for the report! Would you mind emailing me your save, ideally from where I can try to reproduce the error?

fractalsoftworks [at] gmail [dot] com

If you don't mind and have it handy, of course :)

Edit: are you able to try updating your sound drivers, btw? Not sure how that all works on a mac.
Logged

nnubnubnub

  • Ensign
  • *
  • Posts: 21
    • View Profile
Re: 0.98a-rc5: "Error initializing music source" at Hesperus shrine
« Reply #2 on: March 27, 2025, 07:02:38 PM »

Savefile emailed.  As for updating sound drivers—in the absence of third-party hardware (which I'm not using; it's just the laptop speakers), I think sound driver updates are just part of general operating-system updates.  It is true that Mac OS Ventura (13.x) is two major versions out of date.  If the sound API has changed since then, that could conceivably be it.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 26033
    • View Profile
Re: 0.98a-rc5: "Error initializing music source" at Hesperus shrine
« Reply #3 on: March 27, 2025, 07:34:45 PM »

Thank you! Got the savefile and replied; will try to investigate it to the extent that I'm able to but not sure just how much I'll actually be able to do here.
Logged

nnubnubnub

  • Ensign
  • *
  • Posts: 21
    • View Profile
Re: 0.98a-rc5: "Error initializing music source" at Hesperus shrine
« Reply #4 on: March 28, 2025, 05:22:18 AM »

Ok, weird.  Upon quitting and reopening the game, the problem doesn't happen anymore (including on that savefile), and now music works.  All occurrences of the problem happened within one process invocation—reloadings were done without quitting.

Unzipping a new copy of the game, and loading that savefile into it... no problem.  Hmmph.

I don't really know.  I guess I'll send you the full logfile in case you want to look at it, but at any rate it's no longer causing trouble to me.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 26033
    • View Profile
Re: 0.98a-rc5: "Error initializing music source" at Hesperus shrine
« Reply #5 on: March 28, 2025, 08:42:42 AM »

Thank you for the update!
Logged

Baren

  • Lieutenant
  • **
  • Posts: 57
    • View Profile
Re: 0.98a-rc5: "Error initializing music source" at Hesperus shrine
« Reply #6 on: March 28, 2025, 08:54:21 PM »

So it seems that this bug truly exist in vanilla. I also have this bug randomly happens sometimes when i tried to access the production tab. Where the game immediately freezes, the music stops, and after a while the game crashed, showing the "error initializing music source". I thought that maybe this was fixed in 0.98 but it seems it still persist.
« Last Edit: March 28, 2025, 08:58:41 PM by Baren »
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 26033
    • View Profile
Re: 0.98a-rc5: "Error initializing music source" at Hesperus shrine
« Reply #7 on: March 28, 2025, 08:57:50 PM »

Hi! Would you mind clarifying what the issue you're experiencing is, and what operating system you're using? It's hard for me to see how the bug being talked about in this thread might apply to the production tab.
Logged

Baren

  • Lieutenant
  • **
  • Posts: 57
    • View Profile
Re: 0.98a-rc5: "Error initializing music source" at Hesperus shrine
« Reply #8 on: March 28, 2025, 09:13:21 PM »

My game is heavily modded. The log seems to indicate that its because of a mod. I already brought the issue to the mod author. But the author said that this bug is a vanilla issue. Im running windows 11.

7934276 [Thread-2] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.RuntimeException: Error initializing music source - AL error 40964
java.lang.RuntimeException: Error initializing music source - AL error 40964
   at sound.O.<init>(Unknown Source) ~[fs.sound_obf.jar:?]
   at sound.OooO.o00000(Unknown Source) ~[fs.sound_obf.jar:?]
   at com.fs.starfarer.loading.I.void(Unknown Source) ~[port_obf.jar:?]
   at com.fs.starfarer.loading.I.Ö00000(Unknown Source) ~[port_obf.jar:?]
   at com.fs.starfarer.String.K.o00000(Unknown Source) ~[port_obf.jar:?]
   at com.fs.starfarer.String.return.o00000(Unknown Source) ~[port_obf.jar:?]
   at com.fs.starfarer.combat.CombatMain$3.playCustomMusic(Unknown Source) ~[port_obf.jar:?]
   at data.kaysaar.aotd.vok.campaign.econ.globalproduction.ui.NidavelirMainPanelPlugi n.playSound(NidavelirMainPanelPlugin.java:932) ~[?:?]
   at data.kaysaar.aotd.vok.scripts.CoreUITracker.handleButtons(CoreUITracker.java:280) ~[?:?]
   at data.kaysaar.aotd.vok.scripts.CoreUITracker.advance(CoreUITracker.java:220) ~[?:?]
   at com.fs.starfarer.campaign.CampaignEngine.advance(Unknown Source) ~[port_obf.jar:?]
   at com.fs.starfarer.campaign.CampaignState.advance(Unknown Source) ~[port_obf.jar:?]
   at com.fs.starfarer.BaseGameState.traverse(Unknown Source) ~[port_obf.jar:?]
   at com.fs.state.AppDriver.begin(Unknown Source) ~[port.common_obf.jar:?]
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source) ~[port_obf.jar:?]
   at com.fs.starfarer.StarfarerLauncher.super(Unknown Source) ~[port_obf.jar:?]
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source) ~[port_obf.jar:?]
   at java.base/java.lang.Thread.run(Thread.java:1575) [?:?]
Logged

Baren

  • Lieutenant
  • **
  • Posts: 57
    • View Profile
Re: 0.98a-rc5: "Error initializing music source" at Hesperus shrine
« Reply #9 on: March 28, 2025, 09:24:28 PM »

So it seems that this bug truly exist in vanilla. I also have this bug randomly happens sometimes when i tried to access the production tab. Where the game immediately freezes, the music stops, and after a while the game crashed, showing the "error initializing music source". I thought that maybe this was fixed in 0.98 but it seems it still persist.

Uhh... Just incase you missed it. I edited my first post to describe the bug in a bit more detail
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 26033
    • View Profile
Re: 0.98a-rc5: "Error initializing music source" at Hesperus shrine
« Reply #10 on: March 28, 2025, 09:59:22 PM »

Thank you for the added info. Hmm, it's hard to say if it's from a mod or not with 100% certainty.

Would you mind downloading OpenAL.dll from here:
https://www.lwjgl.org/browse/stable/windows/x64
And then renaming it to OpenAL64.dll

And also getting OpenAL.dll from here:
https://www.lwjgl.org/browse/stable/windows/x86
And then renaming it to OpenAL32.dll

And then putting both files in this folder:
<game install directory>\starsector-core\native\windows

And seeing if that helps?

Logged

Baren

  • Lieutenant
  • **
  • Posts: 57
    • View Profile
Re: 0.98a-rc5: "Error initializing music source" at Hesperus shrine
« Reply #11 on: March 28, 2025, 10:02:04 PM »

Ill try. Though it will be a while for me to notice anything. As i said, this bug happens randomly. Though i guess i could try to access the production tab as often as possible and see if it ever happens again.
Logged

nnubnubnub

  • Ensign
  • *
  • Posts: 21
    • View Profile
Re: 0.98a-rc5: "Error initializing music source" at Hesperus shrine
« Reply #12 on: March 29, 2025, 04:21:03 AM »

It happened again to me.  This was after quite some hours playing (the process had existed for 12 hours, though this includes time where I left it running in the background).  At one point I noticed that there wasn't music in places where it should have been (and the logfile shows there had been lots of "WARN  com.fs.starfarer.D.K  - Error initializing music source - AL error -1")... and eventually I hit another case in which I think text was supposed to trigger music (here it was talking to Zunya), and it instead displayed that error:
Quote
Her tech must be absolutely top-of-the-line, of course.
Runtime Exception: Error initializing music source - AL error 40964
I wonder if there's some effect where something leaks—memory?  File descriptors?—and eventually an allocation fails, and that's what causes the error.

After quitting the game and reopening it, the music and that scene work fine again.

Within this instance of the game... I repeatedly reloaded this save where I'm about to land at Eochu Bres, and repeatedly landed and went through the Zunya conversation (and sometimes landed multiple times within a reload, and once greeted a local fleet), as well as alt-tabbing (on Mac it's cmd-tab) out of the game repeatedly to check file descriptor counts... And after about 7 reloads (this whole process taking 4.5 minutes), I reproduced the error again.

I quit the game, and start it back up a third time.  This time, I just repeatedly land and leave Eochu Bres, waiting enough time for the music to change... after a while, I figure out it's faster to alternate between clicking on Eochu Bres and clicking on an Eochu Bres Stellar Mirror, because the game doesn't impose any delay between the takeoff and the next landing, and I hear the music immediately on each landing.  I do this a bunch of times, and eventually I find there's no music after a landing—in this case onto the Mirror.  (Surprisingly, at this point I don't see an error in the logfile.)  Land on the planet, no music.  I talk to Zunya, and I hit the same "AL error 40964" in the conversation.  Took about 5 minutes between process startup and the repro.

Once I'm in this error state, it seems that the "generic music while flying around" does play, but there's no music when greeting a fleet or landing on any planets.

I'd guess there's something about the operation of switching the music that leaks something, although it looks like it's neither memory nor file descriptors.  Might or might not be Mac OS-specific.  I'll send you the current logfile.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 26033
    • View Profile
Re: 0.98a-rc5: "Error initializing music source" at Hesperus shrine
« Reply #13 on: March 29, 2025, 11:34:57 AM »

Thank you for the added info! Hmm. Would you mind trying a different version of the OpenAL sound library the game uses?

You'd need to download libopenal.dylib here:
https://www.lwjgl.org/browse/stable/macosx/x64

Rename it to openal.dylib

And put it in this folder:
Starsector.app\Contents\Resources\Java\native\macosx
Logged

nnubnubnub

  • Ensign
  • *
  • Posts: 21
    • View Profile
Re: 0.98a-rc5: "Error initializing music source" at Hesperus shrine
« Reply #14 on: March 29, 2025, 05:21:03 PM »

With the old OpenAL, following the "alternate landing on Eochu Bres and one of its Mirrors" strategy, I was able to trigger the bug in less than 2 minutes.  With the new OpenAL, I spent a bit over 5 minutes doing that, and no bug so far.  Looks promising.  I guess I'll keep playing with the new OpenAL, and will report back if I hit the problem again.
Logged
Pages: [1] 2