A user of my program reported random crashes when working,
which I cannot reproduce. I managed to get a stack trace from
him, but not much more information yet. The relevant
information follows. Any help is appreciated.
Note: a stack trace w/o debug info is not very helpful. If this
issue persists I recommend to deploy an executable from a debug
build (assuming that you build the executable and not the end user).
6: KiUserExceptionDispatcher - 0x140711815885776
KiUserExceptionDispatcher is not defined by FLTK. This indicates
that the handle() method of your derived window class calls
KiUserExceptionDispatcher().
7: Fl_Window::handle - 0x140709297099744
I have no idea why Fl_Tiled_Image::draw() would (indirectly) call
Fl_Window::handle(). There's some clipping done, hence
fl_win32_xid() might be plausible.
One last note: assuming there is a bug somewhere in the program
(either your code or a used library) it can be something called a
"Heisenbug" that goes away when you rebuild your program, when data
is changed, or when you build it in Debug rather than Release mode.
IMHO the best you can do is to use a memory analyzer like Address
Sanitizer (ASAN) or valgrind to check for access violations in
thorough tests. IIRC Visual Studio supports ASAN, hence you should
be able to build your program with ASAN support on Windows, and I'd
guess that MSYS2 also supports (clang and) ASAN.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.