I added a small Lua debugger for my app, Lua is in the same thread as the main thread (there are no new threads created for lua state or anything like that).
Anyway some Lua code is used to draw stuff using bound JUCE callbacks, when i set a breakpoint in Lua in one of those paint() callbacks, my app crashes at line 653 of juce_linux_Windowing.cpp
Here is some debugger output from my application, you can see the segfault happening. Right after a new thread gets created, but it's not my thread i imagine this is sometbing that JUCE Is doing inernaly. Also my debugger is a modal window, because i want to stop anything happening on my application while i'm stepping through the Lua code.
Is it possible that there is some clash, maybe something i can work around ?
[debug][string "drawMeBackgrounbd"]:7 in function '<[string "drawMeBackgrounbd"]:5>' [debug]debugger.lua> [debug]CtrlrPanelWindowManager::windowClosedButtonPressed [debug]to debugger->c [debug][string "drawMeBackgrounbd"]:8 in function '<[string "drawMeBackgrounbd"]:5>' [debug]debugger.lua> [debug][New Thread 0x7fffe3fff700 (LWP 26604)] [debug]Program received signal SIGSEGV, Segmentation fault. [debug]0x000000000076802b in juce::XBitmapImage::blitToWindow (this=0x0, window=60817421, dx=0, dy=24, dw=599, dh=399, sx=0, sy=0) at /home/r.kubiak/devel/ctrlr/Juce/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:653 [debug]/home/r.kubiak/devel/ctrlr/Juce/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:653:23182:beg:0x76802b [debug]>>>>>>cb_gdb: Program received signal SIGSEGV, Segmentation fault. At /home/r.kubiak/devel/ctrlr/Juce/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:653 [debug]> bt 30 [debug]#0 0x000000000076802b in juce::XBitmapImage::blitToWindow (this=0x0, window=60817421, dx=0, dy=24, dw=599, dh=399, sx=0, sy=0) at /home/r.kubiak/devel/ctrlr/Juce/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:653 [debug]#1 0x000000000076c1ea in juce::LinuxComponentPeer::LinuxRepaintManager::performAnyPendingRepaintsNow (this=0x2eee070) at /home/r.kubiak/devel/ctrlr/Juce/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:1916 [debug]#2 0x000000000076bc8d in juce::LinuxComponentPeer::LinuxRepaintManager::timerCallback (this=0x2eee070) at /home/r.kubiak/devel/ctrlr/Juce/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:1844 [debug]#3 0x00000000005c20ef in juce::Timer::TimerThread::callTimers (this=0x2ef1ad0) at /home/r.kubiak/devel/ctrlr/Juce/modules/juce_events/timers/juce_Timer.cpp:127 [debug]#4 0x00000000005c2349 in juce::Timer::TimerThread::CallTimersMessage::messageCallback (this=0x7fffdc0008e0) at /home/r.kubiak/devel/ctrlr/Juce/modules/juce_events/timers/juce_Timer.cpp:198 [debug]#5 0x00000000005c3d85 in juce::InternalMessageQueue::dispatchNextInternalMessage (this=0x2ee13d0) at /home/r.kubiak/devel/ctrlr/Juce/modules/juce_events/native/juce_linux_Messaging.cpp:202 [debug]#6 0x00000000005c37b2 in juce::InternalMessageQueue::dispatchNextEvent (this=0x2ee13d0) at /home/r.kubiak/devel/ctrlr/Juce/modules/juce_events/native/juce_linux_Messaging.cpp:93 [debug]#7 0x00000000005c1153 in juce::MessageManager::dispatchNextMessageOnSystemQueue (returnIfNoPendingMessages=false) at /home/r.kubiak/devel/ctrlr/Juce/modules/juce_events/native/juce_linux_Messaging.cpp:388 [debug]#8 0x00000000005bd29c in juce::MessageManager::runDispatchLoopUntil (this=0x2ee0eb0, millisecondsToRunFor=-1) at /home/r.kubiak/devel/ctrlr/Juce/modules/juce_events/messages/juce_MessageManager.cpp:99 [debug]#9 0x00000000005bd22d in juce::MessageManager::runDispatchLoop (this=0x2ee0eb0) at /home/r.kubiak/devel/ctrlr/Juce/modules/juce_events/messages/juce_MessageManager.cpp:86 [debug]#10 0x00000000005bc8a7 in juce::JUCEApplicationBase::main () at /home/r.kubiak/devel/ctrlr/Juce/modules/juce_events/messages/juce_ApplicationBase.cpp:240 [debug]#11 0x00000000005bc7be in juce::JUCEApplicationBase::main (argc=1, argv=0x7fffffffe6b8) at /home/r.kubiak/devel/ctrlr/Juce/modules/juce_events/messages/juce_ApplicationBase.cpp:218 [debug]#12 0x000000000090d35f in main (argc=1, argv=0x7fffffffe6b8) at /home/r.kubiak/devel/ctrlr/Source/Core/StandaloneWrapper/CtrlrStandaloneApplication.cpp:133 [debug]>>>>>>cb_gdb:
