Bug#1023365: prusa-slicer: Wrong wxWidgets Version linked during debian Build resulting in instant SIGSEGV on launch (due to lacking wxWidgets 3.2 support)

2022-11-02 Thread vertuxt
Package: prusa-slicer
Version: 2.5.0+dfsg-2
Severity: grave
Justification: renders package unusable
X-Debbugs-Cc: t...@beamnet.de, t...@debian.org, onit...@gmail.com

The wrong wxWidgets Version is linked during the build. Normally debian/rules
specifies WX_STABLE=1 which should result in the usage of wxWidgets 3.0 which
is in stable. However, wx-config always returns wx3.2 which is then used by
CMake even if CMakeLists.txt is changed to especially require wxWidgets 3.0
and wx-config options set to --version=3.0.


As already stated in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1022234
and
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1020702 upstream does not
have wxWidgets 3.2 support yet.

I verified, the package is usable if linked against wxWidgets 3.0 by setting my
wx-config alternative to 3.0 (update-alternatives).

BR Jan


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing'), (100, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.0.0-2-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages prusa-slicer depends on:
ii  fonts-noto-hinted  20201225-1
ii  libboost-chrono1.74.0  1.74.0-17
ii  libboost-filesystem1.74.0  1.74.0-17
ii  libboost-iostreams1.74.0   1.74.0-17
ii  libboost-locale1.74.0  1.74.0-17
ii  libboost-log1.74.0 1.74.0-17
ii  libboost-regex1.74.0 [libboost-regex1.74.0-icu71]  1.74.0-17
ii  libboost-thread1.74.0  1.74.0-17
ii  libc6  2.35-4
ii  libcurl3-gnutls    7.85.0-1
ii  libdbus-1-3    1.14.4-1
ii  libexpat1  2.5.0-1
ii  libgcc-s1  12.2.0-3
ii  libgl1 1.5.0-1
ii  libglew2.2 2.2.0-4+b1
ii  libglib2.0-0   2.74.1-1
ii  libgmp10   2:6.2.1+dfsg1-1.1
ii  libgtk-3-0 3.24.34-3
ii  libimath-3-1-29    3.1.5-1+b1
ii  libjpeg62-turbo    1:2.1.2-1+b1
ii  libmpfr6   4.1.0-3
ii  libnlopt0  2.7.1-4+b2
ii  libocct-data-exchange-7.6  7.6.3+dfsg1-5
ii  libocct-foundation-7.6 7.6.3+dfsg1-5
ii  libocct-modeling-algorithms-7.6    7.6.3+dfsg1-5
ii  libocct-modeling-data-7.6  7.6.3+dfsg1-5
ii  libocct-ocaf-7.6   7.6.3+dfsg1-5
ii  libopenvdb9.1  9.1.0-7+b1
ii  libpng16-16    1.6.38-2
ii  libstdc++6 12.2.0-3
ii  libtbb12   2021.5.0-15
ii  libwxbase3.2-0 3.2.1+dfsg-1
ii  libwxgtk3.2-0  3.2.1+dfsg-1

prusa-slicer recommends no packages.

prusa-slicer suggests no packages.

-- no debconf information



Bug#1020702: prusa-slicer: SEGV on start still happens [but different cause]

2022-10-20 Thread vertuxt
Hi, 

Prusa Slicer 2.5.0+dfsg-2 still SIGSEGV's during startup on Bookworm
with some sid. 

A local rebuild does also runs into Segfault. However, it also reports
that it is unable to init glew. 

I'm quite sure it is a different issue, but the result is quite the
same. So i was unsure if I should open a new Bug.



Backtrace:
==

gdb prusa-slicer 
GNU gdb (Debian 12.1-3) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from prusa-slicer...
(No debugging symbols found in prusa-slicer)
(gdb) run
Starting program: /usr/bin/prusa-slicer 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-
gnu/libthread_db.so.1".
[New Thread 0x707ff640 (LWP 8912)]
[New Thread 0x7fffefffe640 (LWP 8913)]
[New Thread 0x7fffef7fd640 (LWP 8914)]
[New Thread 0x7fffeeffc640 (LWP 8915)]
[2022-10-20 08:50:52.562551] [0x70a74d40] [trace]  
Initializing StaticPrintConfigs
[New Thread 0x7fffee3ff640 (LWP 8916)]
[New Thread 0x7fffedbfe640 (LWP 8917)]
[New Thread 0x7fffed28c640 (LWP 8918)]
[Thread 0x7fffed28c640 (LWP 8918) exited]
[New Thread 0x7fffed28c640 (LWP 8919)]
[New Thread 0x7fffdf645640 (LWP 8920)]
[New Thread 0x7fffdee44640 (LWP 8921)]
[Thread 0x7fffdf645640 (LWP 8920) exited]
[New Thread 0x7fffdf645640 (LWP 8922)]
[New Thread 0x7fffde643640 (LWP 8923)]
[Thread 0x7fffdee44640 (LWP 8921) exited]
[Thread 0x7fffdf645640 (LWP 8922) exited]
[New Thread 0x7fffdf645640 (LWP 8924)]
[New Thread 0x7fffdee44640 (LWP 8925)]
[Thread 0x7fffde643640 (LWP 8923) exited]
[Thread 0x7fffdf645640 (LWP 8924) exited]
[New Thread 0x7fffdf645640 (LWP 8926)]
[New Thread 0x7fffde643640 (LWP 8927)]
[Thread 0x7fffdee44640 (LWP 8925) exited]
[Thread 0x7fffdf645640 (LWP 8926) exited]
[New Thread 0x7fffdf645640 (LWP 8928)]
[Thread 0x7fffde643640 (LWP 8927) exited]
[New Thread 0x7fffde643640 (LWP 8929)]
[Thread 0x7fffdf645640 (LWP 8928) exited]
[Thread 0x7fffde643640 (LWP 8929) exited]
[New Thread 0x7fffde643640 (LWP 8930)]
[New Thread 0x7fffdf645640 (LWP 8931)]
[Thread 0x7fffde643640 (LWP 8930) exited]
[Thread 0x7fffdf645640 (LWP 8931) exited]
[New Thread 0x7fffdf645640 (LWP 8933)]
[New Thread 0x7fffde643640 (LWP 8934)]
[New Thread 0x7fffdee44640 (LWP 8935)]
[New Thread 0x7fffdde42640 (LWP 8936)]
[New Thread 0x7fffdd641640 (LWP 8937)]
[New Thread 0x7fffdce40640 (LWP 8938)]
[New Thread 0x7fffccdff640 (LWP 8939)]
[New Thread 0x7fffc15ff640 (LWP 8940)]
[New Thread 0x7fffc0dfe640 (LWP 8941)]
[New Thread 0x7fffabfff640 (LWP 8942)]
[New Thread 0x7fffab7fe640 (LWP 8943)]
[New Thread 0x7fffaaffd640 (LWP 8944)]
[2022-10-20 08:50:53.457181] [0x70a74d40] [error]   Unable to
init glew library
[2022-10-20 08:50:53.457864] [0x70a74d40] [error]   Unable to
init glew library

Thread 1 "slic3r_main" received signal SIGSEGV, Segmentation fault.
0x568b12d3 in ?? ()
(gdb) backtrace
#0  0x568b12d3 in  ()
#1  0x568655c3 in  ()
#2  0x56390716 in  ()
#3  0x56390828 in  ()
#4  0x5639db02 in  ()
#5  0x5635ec45 in  ()
#6  0x560ce7bf in  ()
#7  0x560cee6c in  ()
#8  0x76a07df2 in
wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&,
wxEvtHandler*, wxEvent&) () at /lib/x86_64-linux-gnu/libwx_baseu-
3.2.so.0
#9  0x76a0824e in
wxEvtHandler::SearchDynamicEventTable(wxEvent&) () at /lib/x86_64-
linux-gnu/libwx_baseu-3.2.so.0
#10 0x76a085a0 in wxEvtHandler::TryHereOnly(wxEvent&) () at
/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0
#11 0x76a0864a in wxEvtHandler::ProcessEventLocally(wxEvent&)
() at /lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0
#12 0x76a08751 in wxEvtHandler::ProcessEvent(wxEvent&) () at
/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0
#13 0x768a08f2 in wxAppConsoleBase::ProcessIdle() () at
/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0
#14 0x76246b34 in wxAppBase::ProcessIdle() () at /lib/x86_64-
linux-gnu/libwx_gtk3u_core-3.2.so.0
#15 0x76150f99 in wxApp::DoIdle() () at /lib/x86_64-linux-
gnu/libwx_gtk3u_core-3.2.so.0
#16 0x761510d3 in  () at /lib/x86_64-linux-
gnu/libwx_gtk3u_core-3.2.so.0
#17 0x75d1e60f in g_main_context_dispatch () at /lib/x86_64-
linux-gnu/libglib-2.0.so.0
#18 0x75d1e9c8 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x75d1ec7f in g_main_loop_run () at /li