Bug Issue: Cannot import Sound on Linux


Pages: 1

ferrieux

  • Junior Stencyler
December 30, 2024, 10:42:04 am
I'm using Stencyl 4.1.0 on Debian 12, Mate window manager.
I'm creating  agame from scratch, starting with sound import.
I'm trying to import the sounds from the assets of Crash Course 2, e.g. "General Shooter Spacey Level.mp3"

I get a fatal pop-up saying:
Code: [Select]
Failed to read file.
/tmp/stencyl9738103851681509839/scratch/convert-0.mp3"

Then, if I force foreground java logs with _PRESERVE_TERMINAL_="true" ,
I can see the following exception:
Code: [Select]
2024-12-30 19:39:12,599 DEBUG [AWT-EventQueue-0] stencyl.sw.app.editors.sound.SoundPage: Sound In: /home/alex/assets/CC2 Game Assets/General Shooter Spacey Level.mp3
2024-12-30 19:39:12,617 DEBUG [Loading Sound] stencyl.sw.core.tasks.SoundImportTask: Import Sound took 11ms
2024-12-30 19:39:12,620 ERROR [Loading Sound] stencyl.core.api.tasks.Task: Failed: Loading Sound
        at stencyl.core.api.tasks.Task.failWithError(Task.java:701)
        at stencyl.core.api.tasks.TaskIOHelper.readFileToByteArray(TaskIOHelper.java:243)
        at stencyl.sw.app.editors.sound.SoundPlaybackPanel.refreshSound(SoundPlaybackPanel.java:126)
        at stencyl.sw.app.editors.sound.SoundPlaybackPanel.lambda$loadNewSoundFromDisk$0(SoundPlaybackPanel.java:112)
        at stencyl.sw.app.editors.sound.SoundPlaybackPanel.loadNewSoundFromDisk(SoundPlaybackPanel.java:110) <Task: Loading Sound>
        at stencyl.sw.app.editors.sound.SoundPage.refreshSoundData(SoundPage.java:265)
        at stencyl.sw.app.editors.sound.SoundPage.showChooser(SoundPage.java:247)
        at stencyl.sw.app.editors.sound.SoundPage.addAddon(SoundPage.java:231)
        at stencyl.app.lists.create.CreateNewPanel$1.mousePressed(CreateNewPanel.java:43)
        at java.awt.Component.processMouseEvent(null:-1)
        at javax.swing.JComponent.processMouseEvent(null:-1)
        at java.awt.Component.processEvent(null:-1)
        at java.awt.Container.processEvent(null:-1)
        at java.awt.Component.dispatchEventImpl(null:-1)
        at java.awt.Container.dispatchEventImpl(null:-1)
        at java.awt.Component.dispatchEvent(null:-1)
        at java.awt.LightweightDispatcher.retargetMouseEvent(null:-1)
        at java.awt.LightweightDispatcher.processMouseEvent(null:-1)
        at java.awt.LightweightDispatcher.dispatchEvent(null:-1)
        at java.awt.Container.dispatchEventImpl(null:-1)
        at java.awt.Window.dispatchEventImpl(null:-1)
        at java.awt.Component.dispatchEvent(null:-1)
        at java.awt.EventQueue.dispatchEventImpl(null:-1)
        at java.awt.EventQueue$4.run(null:-1)
        at java.awt.EventQueue$4.run(null:-1)
        at java.security.AccessController.doPrivileged(null:-1)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(null:-1)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(null:-1)
        at java.awt.EventQueue$5.run(null:-1)
        at java.awt.EventQueue$5.run(null:-1)
        at java.security.AccessController.doPrivileged(null:-1)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(null:-1)
        at java.awt.EventQueue.dispatchEvent(null:-1)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(null:-1)
        at java.awt.EventDispatchThread.pumpEventsForFilter(null:-1)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(null:-1)
        at java.awt.EventDispatchThread.pumpEvents(null:-1)
        at java.awt.EventDispatchThread.pumpEvents(null:-1)
        at java.awt.EventDispatchThread.run(null:-1)
Caused by: java.io.FileNotFoundException: /tmp/stencyl9738103851681509839/scratch/convert-0.mp3 (No such file or directory)
        at java.io.FileInputStream.open0(null:-2)
        at java.io.FileInputStream.open(null:-1)
        at java.io.FileInputStream.<init>(null:-1)
        at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:2388)
        at org.apache.commons.io.FileUtils.readFileToByteArray(FileUtils.java:2467)
        at stencyl.core.api.tasks.TaskIOHelper.readFileToByteArray(TaskIOHelper.java:239)
        at stencyl.sw.app.editors.sound.SoundPlaybackPanel.refreshSound(SoundPlaybackPanel.java:126)
        at stencyl.sw.app.editors.sound.SoundPlaybackPanel.lambda$loadNewSoundFromDisk$0(SoundPlaybackPanel.java:112)
2024-12-30 19:39:12,623 ERROR [Loading Sound] stencyl.core.api.tasks.Task: Failed: Loading Sound
2024-12-30 19:39:12,624 ERROR [Loading Sound] stencyl.app.comp.dg.MessageDialog: Error: Failed to read file. - /tmp/stencyl9738103851681509839/scratch/convert-0.mp3


« Last Edit: December 30, 2024, 10:44:02 am by ferrieux »


Justin

  • Master Stencyler
  • *
December 30, 2024, 04:02:18 pm
I believe this issue was fixed in b12268, which isn't part of a public release yet.


Justin

  • Master Stencyler
  • *
December 30, 2024, 07:36:51 pm
Fix confirmed on discord.
  • Status changed from New to Resolved


Pages: 1

Details

  • Reported
    December 30, 2024, 10:42:04 am
  • Updated
    December 30, 2024, 07:36:51 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    UI / Workflow

Tags