Bug#1022234: prusa-slicer: Another instant segmentation fault…

2022-10-22 Thread Tobias Frost
A local rebuild with wx-widgets 3.0 makes the crash go away.

Upstream states [1] that prusa-slicer is not ready for wxwidgets 3.2 -- maybe 
#1019825 should be reverted?

As the crash happens in imgui:
I did not check, if the embedded imgui library is the culprit. Embedded version 
is at 1.83, while we have 
in Debian 1.86.

[1] From 
https://github.com/prusa3d/PrusaSlicer/issues/8299#issuecomment-1236874810 
"But that is quite off-topic. Short version: if you link PrusaSlicer 2.5.x with 
wxWidgets 3.2, you will most likely break it."

-- 
tobi



Bug#1022234: prusa-slicer: Another instant segmentation fault…

2022-10-22 Thread Tobias Frost
Package: prusa-slicer
Version: 2.5.0+dfsg-2
Severity: grave
Justification: renders package unusable

prusa-slicer SEGV at start. (in the last stackframe, in imgui, this is a 
nullptr…)

backtrace:
Thread 1 "slic3r_main" received signal SIGSEGV, Segmentation fault.
0x568b12d3 in ImFont::CalcTextSizeA (this=0x0, size=0, 
max_width=max_width@entry=3.40282347e+38, wrap_width=-1, 
text_begin=text_begin@entry=0x569c42bd "A", text_end=0x569c42be "", 
remaining=remaining@entry=0x0) at ./src/imgui/imgui_draw.cpp:3408
Download failed: Invalid argument.  Continuing without source file 
./obj-x86_64-linux-gnu/src/imgui/./src/imgui/imgui_draw.cpp.
3408./src/imgui/imgui_draw.cpp: No such file or directory.
(gdb) bt
#0  0x568b12d3 in ImFont::CalcTextSizeA (this=0x0, size=0, 
max_width=max_width@entry=3.40282347e+38, wrap_width=-1, 
text_begin=text_begin@entry=0x569c42bd "A", text_end=0x569c42be "", 
remaining=remaining@entry=0x0) at ./src/imgui/imgui_draw.cpp:3408
#1  0x568655c3 in ImGui::CalcTextSize (text=text@entry=0x569c42bd 
"A", text_end=text_end@entry=0x0, 
hide_text_after_double_hash=hide_text_after_double_hash@entry=false, 
wrap_width=wrap_width@entry=-1) at ./src/imgui/imgui.cpp:4538
#2  0x56390716 in 
Slic3r::GUI::NotificationManager::HintNotification::count_spaces 
(this=0x59378dc0) at ./src/slic3r/GUI/HintNotification.cpp:564
#3  0x56390828 in 
Slic3r::GUI::NotificationManager::HintNotification::init (this=0x59378dc0) 
at ./src/slic3r/GUI/HintNotification.cpp:722
#4  0x5639db02 in 
Slic3r::GUI::NotificationManager::HintNotification::retrieve_data 
(this=0x59378dc0, new_hint=) at 
./src/slic3r/GUI/HintNotification.cpp:1061
#5  0x5635ec45 in 
Slic3r::GUI::NotificationManager::HintNotification::HintNotification 
(new_hint=true, evt_handler=, id_provider=..., n=..., 
this=0x59378dc0) at ./src/slic3r/GUI/HintNotification.hpp:75
#6  std::make_unique () at /usr/include/c++/12/bits/unique_ptr.h:1065
#7  Slic3r::GUI::NotificationManager::push_hint_notification 
(this=0x588b3400, open_next=) at 
./src/slic3r/GUI/NotificationManager.cpp:1848
#8  0x560ce7bf in Slic3r::GUI::GUI_App::post_init (this=0x56eb39b0) 
at ./src/slic3r/GUI/GUI_App.cpp:765
#9  0x560cee6c in operator() (event=..., __closure=) at 
./src/slic3r/GUI/GUI_App.cpp:1324
#10 wxEventFunctorFunctor, 
Slic3r::GUI::GUI_App::on_init_inner():: 
>::operator()(wxEvtHandler *, wxEvent &) (this=0x58b569a0, event=...) at 
/usr/include/wx-3.2/wx/event.h:547
#11 0x76a07df2 in wxEvtHandler::ProcessEventIfMatchesId (entry=..., 
handler=, event=...) at ./src/common/event.cpp:1431
#12 0x76a0824e in wxEvtHandler::SearchDynamicEventTable 
(this=this@entry=0x56eb39b0, event=...) at ./src/common/event.cpp:1901
#13 0x76a085a0 in wxEvtHandler::TryHereOnly 
(this=this@entry=0x56eb39b0, event=...) at ./src/common/event.cpp:1624
#14 0x76a0864a in wxEvtHandler::TryBeforeAndHere (event=..., 
this=0x56eb39b0) at ./include/wx/event.h:4007
#15 wxEvtHandler::ProcessEventLocally (this=0x56eb39b0, event=...) at 
./src/common/event.cpp:1561
#16 0x76a08751 in wxEvtHandler::ProcessEvent (this=0x56eb39b0, 
event=...) at ./src/common/event.cpp:1534
#17 0x768a08f2 in wxAppConsoleBase::ProcessIdle (this=0x56eb39b0) 
at ./src/common/appbase.cpp:435
#18 0x76246b34 in wxAppBase::ProcessIdle() () from 
/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.2.so.0
#19 0x76150f99 in wxApp::DoIdle() () from 
/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.2.so.0
#20 0x761510d3 in ?? () from 
/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.2.so.0
#21 0x75d1e60f in g_main_dispatch (context=0x56eea320) at 
../../../glib/gmain.c:3444
#22 g_main_context_dispatch (context=context@entry=0x56eea320) at 
../../../glib/gmain.c:4162
#23 0x75d1e9c8 in g_main_context_iterate (context=0x56eea320, 
block=block@entry=1, dispatch=dispatch@entry=1, self=) at 
../../../glib/gmain.c:4238
#24 0x75d1ec7f in g_main_loop_run (loop=loop@entry=0x58b562f0) at 
../../../glib/gmain.c:4438
#25 0x7564a265 in gtk_main () at ../../../../gtk/gtkmain.c:1329
#26 0x7616da45 in wxGUIEventLoop::DoRun() () from 
/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.2.so.0
#27 0x768d7f9d in wxEventLoopBase::Run (this=0x58b562b0) at 
./src/common/evtloopcmn.cpp:87
#28 0x768a2a6b in wxAppConsoleBase::MainLoop (this=0x56eb39b0) at 
./src/common/appbase.cpp:381
#29 0x7691feb7 in wxEntry (argc=, argv=) 
at ./src/common/init.cpp:503
#30 0x560af7b9 in Slic3r::GUI::GUI_Run (params=...) at 
./src/slic3r/GUI/GUI_Init.cpp:54
#31 0x558705de in Slic3r::CLI::run (this=, 
argc=, argv=) at ./src/PrusaSlicer.cpp:618
#32 0x55845bf4 in main (argc=, argv=) at 
./src/PrusaSlicer.cpp:844




-- System Information:
Debian Release: bookworm/sid
  APT prefers stable-security
  APT