starsector-mod-manager-rust
starsector-mod-manager-rust copied to clipboard
Possible crash on linux when browsing for installation directory
Reproduced at least once on WSL, but testing inconclusive. XServer seems to be interfering, and debugging does everything between nothing and ensuring the intended behaviour occurs.
Just encountered this. Pop!_OS 21.10
./starsector_mod_manager_linux_dynamic
(starsector_mod_manager_linux_dynamic:355193): GLib-WARNING **: 22:33:35.602: Accessing a sequence while it is being sorted or searched is not allowed
(starsector_mod_manager_linux_dynamic:355193): Gdk-ERROR **: 22:33:35.644: The program 'starsector_mod_manager_linux_dynamic' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadPixmap (invalid Pixmap parameter)'.
(Details: serial 15836 error_code 4 request_code 54 (core protocol) minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/breakpoint trap (core dumped)
Edit: tried again, and this time the program exited with no console output when I pressed the browse button.
Edit: several more exits with no output, then the following:
./starsector_mod_manager_linux_dynamic
[xcb] Unknown sequence number while processing reply
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
starsector_mod_manager_linux_dynamic: ../../src/xcb_io.c:725: _XReply: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Aborted (core dumped)
Trying to select mods to install also produces a crash:
./starsector_mod_manager_linux_dynamic
(starsector_mod_manager_linux_dynamic:358380): Gtk-CRITICAL **: 22:38:09.383: gtk_widget_hide: assertion 'GTK_IS_WIDGET (widget)' failed
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
starsector_mod_manager_linux_dynamic: ../../src/xcb_io.c:269: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Is this also the case with the static binary? I'm working on a release right now which changes the version of gtk used by the file picking library, which might also help
I'm not able to launch the static binary at all - it seg faults immediately, with no other output.
Yeah I just tested that recently myself. It's a bit concerning