zynaddsubfx / zyn-fusion-build

Build Scripts For Zyn-Fusion
Do What The F*ck You Want To Public License
122 stars 39 forks source link

Crash on "Save Master" #93

Open notklaatu opened 2 years ago

notklaatu commented 2 years ago

OS

Linux

Zyn Version

zyn-fusion-linux-64bit-3.0.2-patch4-release.tar.bz2

Downloaded and installed using install-linux.sh from Gumroad.

To reproduce:

  1. Launch with zynaddsubfx --auto-connect
  2. Go to File > Save Master (or any "save" dialogue)
  3. Click into the text field and start to type.
  4. Zyn-fusion crashes at the first keypress, with this output in the terminal:
Unknown address<BACKEND:online> '/file_list_dirs:'
Unknown address<BACKEND:online> '/file_list_files:'
Unknown address<BACKEND:online> '/file_list_dirs:'
Unknown address<BACKEND:online> '/file_list_files:'
[Zyn:Error] stat cannot handle </home/klaatu//.#.#file.txt>:-1
[Zyn:Error] stat cannot handle </home/klaatu//Artkit>:-1
[Zyn:Error] stat cannot handle </home/klaatu//.steampath>:-1
[Zyn:Error] stat cannot handle </home/klaatu//.#.#file.txt>:-1
[Zyn:Error] stat cannot handle </home/klaatu//Artkit>:-1
[Zyn:Error] stat cannot handle </home/klaatu//.steampath>:-1
trace:
        [0] /home/mark/code/zyn-fusion-build/mruby-zest-build/src/mruby-widget-lib/mrblib/fcache.rb:12554:in Qml::TextField.onKey
        [1] /home/mark/code/zyn-fusion-build/mruby-zest-build/src/mruby-widget-lib/mrblib/script.rb:324:in ZRunner.key
/home/mark/code/zyn-fusion-build/mruby-zest-build/src/mruby-widget-lib/mrblib/fcache.rb:12554: expected Array (TypeError)
[FATAL ERROR] Mruby Is Unable To Continue
Jack reports error: Cannot delete key http://jackaudio.org/metadata/event-types (DB_NOTFOUND: No matching key/data pair found)
Deactivating and closing JACK client

(Note that my username is not mark, despite the errors listing /home/mark/code)

Workaround

So far I have not discovered a way around this bug. It seems I cannot save any session information without a crash.

fundamental commented 2 years ago

Thanks for reporting the issue. I suspect that it's fixed in a development copy, but I'll get you an updated binary to verify if that's the case or not. To confirm, typing in the text field with any key triggers the crash, correct? Or is it just certain keys like delete/backspace?

notklaatu commented 2 years ago

Correct, it's literally any key.

In the meantime, I have discovered a workaround: create an empty file using a file manage or terminal (touch foo). Then save master (or instrument, or whatever) and click on the empty file. Settings are saved as foo.xmz (or whatever extension is appropriate for what you're saving).

It'd be cool if it were fixed in a new version, though, and I'm happy to test it.

fundamental commented 2 years ago

https://fundamental-code.com/tmp/zyn-fusion-linux-64bit-3.0.6-git-demo.tar.bz2 should have a demo built from the current master. For some reason I was encountering some hiccups from the build scripts, but it looks like everything in the resulting tarball is ok. You should be able to run it without installing to see if the problem is installed. Usually for development I go to the directory and run './zynaddsubfx -I null -O null -U -P 1337' and then run './zyn-fusion' in another terminal. In case there is still a crash this version of zyn-fusion will print out all OSC messages received via a hexdump like mechanism. The line numbers with regards to backtraces will also be consistent between this version and my local system.

notklaatu commented 2 years ago

Downloaded, testing.