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

2022-10-22 Thread Gregor Riepl

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.


It *is* a different issue, but related.

Upstream has stated that they're not supporting wxWidgets 3.2 yet:

https://github.com/prusa3d/PrusaSlicer/issues/8299#issuecomment-1236874810


It's probably best to open a new issue covering other wx 3.2 
crashes/issues, since a fix for the segfault was already released.


That being said, the comments on the upstream bug report make it sound 
like fixes for wx 3.2 will take some time, so it may be best to classify 
the new bug report as serious, so it will block the transition of the 
broken 2.5.0 package to testing?




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 

Bug#1020702: prusa-slicer: SEGV on start

2022-10-09 Thread Bernhard Übelacker

Hello,
it looks like following line should expect the Get() call returning a nullptr,
which wxWidget documentation explicitly notes.

   2079
wxTranslations::Get()->SetLanguage(wxLANGUAGE_DEFAULT);


I have raised this question to upstream here:

   https://github.com/prusa3d/PrusaSlicer/issues/9024

Kind regards,
Bernhard


Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x7f2589f565f3 in std::__cxx11::basic_string, 
std::allocator >::_M_data (this=) at 
/build/gcc-12-GwPmq4/gcc-12-12.2.0/build/x86_64-linux-gnu/libstdc++-v3/include/bits/basic_string.h:234
234 
/build/gcc-12-GwPmq4/gcc-12-12.2.0/build/x86_64-linux-gnu/libstdc++-v3/include/bits/basic_string.h:
 Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0  0x7f2589f565f3 in std::__cxx11::basic_string, 
std::allocator >::_M_data (this=) at 
/build/gcc-12-GwPmq4/gcc-12-12.2.0/build/x86_64-linux-gnu/libstdc++-v3/include/bits/basic_string.h:234
#1  std::__cxx11::basic_string, 
std::allocator >::_M_is_local (this=) at 
/build/gcc-12-GwPmq4/gcc-12-12.2.0/build/x86_64-linux-gnu/libstdc++-v3/include/bits/basic_string.h:274
#2  std::__cxx11::basic_string, 
std::allocator >::capacity (this=) at 
/build/gcc-12-GwPmq4/gcc-12-12.2.0/build/x86_64-linux-gnu/libstdc++-v3/include/bits/basic_string.h:1134
#3  std::__cxx11::basic_string, std::allocator 
>::_M_assign (this=this@entry=0x0, __str=L"") at 
/build/gcc-12-GwPmq4/gcc-12-12.2.0/build/x86_64-linux-gnu/libstdc++-v3/include/bits/basic_string.tcc:279
#4  0x7f258896e05a in std::__cxx11::basic_string, 
std::allocator >::assign (__str=L"", this=0x0) at 
/usr/include/c++/12/bits/basic_string.h:1540
#5  0x7f258896e0c6 in wxTranslations::SetLanguage (this=0x0, 
lang=lang@entry=wxLANGUAGE_DEFAULT) at ./src/common/translation.cpp:1384
#6  0x563e57fb8e26 in Slic3r::GUI::GUI_App::load_language (this=0x563e59d29200, 
language=..., initial=) at ./src/slic3r/GUI/GUI_App.cpp:2079
#7  0x563e57fbaaf5 in Slic3r::GUI::GUI_App::on_init_inner 
(this=0x563e59d29200) at ./src/slic3r/GUI/GUI_App.cpp:1093
#8  0x563e57fbd4c6 in Slic3r::GUI::GUI_App::OnInit (this=) 
at ./src/slic3r/GUI/GUI_App.cpp:1035
#9  0x7f258891feda in wxEntry (argc=, argv=) 
at ./src/common/init.cpp:487
#10 0x563e57f9f7b9 in Slic3r::GUI::GUI_Run (params=...) at 
./src/slic3r/GUI/GUI_Init.cpp:54
#11 0x563e577605de in Slic3r::CLI::run (this=, argc=, argv=) at ./src/PrusaSlicer.cpp:618
#12 0x563e57735bf4 in main (argc=, argv=) at 
./src/PrusaSlicer.cpp:844


https://docs.wxwidgets.org/3.0/classwx_translations.html#ab384ea68c44e74cfd2cd59e782529540



Bug#1020702: prusa-slicer: SEGV on start

2022-10-06 Thread Matthias Cramer
Package: prusa-slicer
Version: 2.5.0+dfsg-1
Followup-For: Bug #1020702

Dear Maintainer,

I have the same issue with prusa-slicer although the backtrace looks a bot
different is seams to be a similar problem:

╰─ 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 0x709df640 (LWP 504889)]
[New Thread 0x701de640 (LWP 504890)]
[New Thread 0x7fffef9dd640 (LWP 504891)]
[New Thread 0x7fffef1dc640 (LWP 504892)]
[2022-10-06 13:19:02.535119] [0x709eed40] [trace]   Initializing
StaticPrintConfigs
Gtk-Message: 13:19:02.540: Failed to load module "xapp-gtk3-module"
[New Thread 0x7fffee5ff640 (LWP 504893)]
[New Thread 0x7fffeddfe640 (LWP 504894)]

Thread 1 "slic3r_main" received signal SIGSEGV, Segmentation fault.
0x77d565f3 in std::__cxx11::basic_string, std::allocator
>::_M_assign(std::__cxx11::basic_string,
std::allocator > const&) () from /lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0  0x77d565f3 in std::__cxx11::basic_string, std::allocator
>::_M_assign(std::__cxx11::basic_string,
std::allocator > const&) () at /lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x7696e0c6 in wxTranslations::SetLanguage(wxLanguage) () at
/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0
#2  0x560c8e26 in  ()
#3  0x560caaf5 in  ()
#4  0x560cd4c6 in  ()
#5  0x7691feda in wxEntry(int&, wchar_t**) () at /lib/x86_64-linux-
gnu/libwx_baseu-3.2.so.0
#6  0x560af7b9 in  ()
#7  0x558705de in  ()
#8  0x55845bf4 in  ()
#9  0x7502920a in __libc_start_call_main
(main=main@entry=0x55845ab0, argc=argc@entry=1,
argv=argv@entry=0x7fffdda8)
at ../sysdeps/nptl/libc_start_call_main.h:58
#10 0x750292bc in __libc_start_main_impl
 (main=0x55845ab0, argc=1, argv=0x7fffdda8, init=,
fini=, rtld_fini=, stack_end=0x7fffdd98)
at ../csu/libc-start.c:389
#11 0x55868d71 in  ()


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

Kernel: Linux 5.19.0-2-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
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-2
ii  libcurl3-gnutls7.85.0-1
ii  libdbus-1-31.14.4-1
ii  libexpat1  2.4.9-1
ii  libgcc-s1  12.2.0-5
ii  libgl1 1.5.0-1
ii  libglew2.2 2.2.0-4+b1
ii  libglib2.0-0   2.74.0-2
ii  libgmp10   2:6.2.1+dfsg1-1
ii  libgtk-3-0 3.24.34-3
ii  libimath-3-1-293.1.5-1+b1
ii  libjpeg62-turbo1: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-3
ii  libocct-foundation-7.6 7.6.3+dfsg1-3
ii  

Bug#1020702: [3dprinter-general] Bug#1020702: prusa-slicer: SEGV on start

2022-09-27 Thread Gregor Riepl

That seems to be a dead giveaway:


#2  0x7696e0c6 in wxTranslations::SetLanguage (this=0x0, 
lang=lang@entry=wxLANGUAGE_DEFAULT) at ./src/common/translation.cpp:1384


I'd expect it to crash when *this* is a null pointer.

Have you reported the issue upstream?



Bug#1020702: prusa-slicer: SEGV on start

2022-09-26 Thread Tobias Frost
Control: notfound -1 2.4.2+dfsg-1

As the backtrace hinted that direction, I yesterday did a local rebuild using 
libwxgtk3.0-gtk3-dev:
This version does NOT segfault.

So I guess there is either a bug in wxwidgets 3.2, or in prusa-slicer which has 
been exposed with the new
wxWidgets.

(The version from testing, 2.4.2+dfsg-1, as in the archives, works as well)

--
tobi



Bug#1020702: prusa-slicer: SEGV on start

2022-09-25 Thread Tobias Frost
Package: prusa-slicer
Version: 2.5.0+dfsg-1
Severity: grave
Justification: renders package unusable

Hi,

the new 2.5.0 prusa-slicer immedialty crashes for me:

tobi@isildor:~$ prusa-slicer
[2022-09-25 18:14:22.532762] [0x7f41f5a0dd40] [trace]   Initializing 
StaticPrintConfigs
Segmentation fault

(To ensure that this is not a profile thing, I've moved the printer profile out
of the way (renaming .config/PrusaSlicer to something else), then it shows an
intial dialog about the config directory changed, then crashing)

Backtrace:
tobi@isildor:~$ 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...

This GDB supports auto-downloading debuginfo from the following URLs:
https://debuginfod.debian.net
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Reading symbols from 
/home/tobi/.cache/debuginfod_client/d6d1774e4b7dbe498c3e9e117d9425c50cb53145/debuginfo...
(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 6155)]
[New Thread 0x7fffefffe640 (LWP 6156)]
[New Thread 0x7fffef7fd640 (LWP 6157)]
[New Thread 0x7fffeeffc640 (LWP 6158)]
[2022-09-25 18:17:40.146772] [0x70a80d40] [trace]   Initializing 
StaticPrintConfigs
[New Thread 0x7fffee782640 (LWP 6159)]
[New Thread 0x7fffedf81640 (LWP 6160)]
[New Thread 0x7fffed661640 (LWP 6161)]
[Thread 0x7fffed661640 (LWP 6161) exited]
[New Thread 0x7fffed661640 (LWP 6162)]
[New Thread 0x7fffecd38640 (LWP 6163)]
[Thread 0x7fffed661640 (LWP 6162) exited]
[Thread 0x7fffecd38640 (LWP 6163) exited]
[New Thread 0x7fffecd38640 (LWP 6164)]

Thread 1 "slic3r_main" received signal SIGSEGV, Segmentation fault.
std::__cxx11::basic_string, 
std::allocator >::_M_assign (this=this@entry=0x0, __str=...) at 
/build/gcc-12-tHYXim/gcc-12-12.2.0/build/x86_64-linux-gnu/libstdc++-v3/include/bits/basic_string.tcc:279
279 
/build/gcc-12-tHYXim/gcc-12-12.2.0/build/x86_64-linux-gnu/libstdc++-v3/include/bits/basic_string.tcc:
 Directory not empty.
(gdb) bt
#0  std::__cxx11::basic_string, 
std::allocator >::_M_assign (this=this@entry=0x0, __str=...)
at 
/build/gcc-12-tHYXim/gcc-12-12.2.0/build/x86_64-linux-gnu/libstdc++-v3/include/bits/basic_string.tcc:279
#1  0x7696e05a in std::__cxx11::basic_string, std::allocator >::assign (__str=..., 
this=0x0) at /usr/include/c++/12/bits/basic_string.h:1540
#2  0x7696e0c6 in wxTranslations::SetLanguage (this=0x0, 
lang=lang@entry=wxLANGUAGE_DEFAULT) at ./src/common/translation.cpp:1384
#3  0x560c8e26 in Slic3r::GUI::GUI_App::load_language 
(this=0x56eb49f0, language=..., initial=)
at ./src/slic3r/GUI/GUI_App.cpp:2079
#4  0x560caaf5 in Slic3r::GUI::GUI_App::on_init_inner 
(this=0x56eb49f0) at ./src/slic3r/GUI/GUI_App.cpp:1093
#5  0x560cd4c6 in Slic3r::GUI::GUI_App::OnInit (this=) 
at ./src/slic3r/GUI/GUI_App.cpp:1035
#6  0x7691feda in wxEntry (argc=, argv=) 
at ./src/common/init.cpp:487
#7  0x560af7b9 in Slic3r::GUI::GUI_Run (params=...) at 
./src/slic3r/GUI/GUI_Init.cpp:54
#8  0x558705de in Slic3r::CLI::run (this=, 
argc=, argv=) at ./src/PrusaSlicer.cpp:618
#9  0x55845bf4 in main (argc=, argv=) at 
./src/PrusaSlicer.cpp:844
(gdb) 






-- System Information:
Debian Release: bookworm/sid
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), 
(500, 'stable'), (100, 'bullseye-fasttrack'), (100, 
'bullseye-backports-staging')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.19.0-1-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
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