| [ Return to Bugs & Features | Roadmap 1.3 | SVN ⇄ GIT ]
STR #3490
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 3 - Moderate, e.g. unable to compile the software |
Scope: | 2 - Specific to an operating system |
Subsystem: | MacOS |
Summary: | Fl_Color_Chooser crashes on macOS if widget width is to small |
Version: | 1.3.4 |
Created By: | njord |
Assigned To: | matt |
Fix Version: | 1.4.0 |
Fix Commit: | 67f0bf6feeaeaa58f205a3a3065136df68163420 |
Update Notification: | |
Trouble Report Files:
No files
Trouble Report Comments:
|
#1 | njord 09:57 Aug 22, 2018 |
| Test program and stack trace below. If window width is shrinked it crashes. Probably only in macOS.
frame #0: 0x00007fff594c3b6e libsystem_kernel.dylib`__pthread_kill + 10 frame #1: 0x00007fff5968e080 libsystem_pthread.dylib`pthread_kill + 333 frame #2: 0x00007fff5941f1ae libsystem_c.dylib`abort + 127 frame #3: 0x00007fff5731df8f libc++abi.dylib`abort_message + 245 frame #4: 0x00007fff5731e113 libc++abi.dylib`default_terminate_handler() + 241 frame #5: 0x00007fff5875ea4f libobjc.A.dylib`_objc_terminate() + 105 frame #6: 0x00007fff573397c9 libc++abi.dylib`std::__terminate(void (*)()) + 8 frame #7: 0x00007fff5733947a libc++abi.dylib`__cxa_rethrow + 99 frame #8: 0x00007fff5875ce05 libobjc.A.dylib`objc_exception_rethrow + 40 frame #9: 0x00007fff2ed9a65a AppKit`-[NSWindow(NSWindowResizing) _resizeWithEvent:] + 3791 frame #10: 0x00007fff2f2d8422 AppKit`-[NSTitledFrame attemptResizeWithEvent:] + 177 frame #11: 0x00007fff2eca43dd AppKit`-[NSThemeFrame handleMouseDown:] + 297 frame #12: 0x00007fff2eca4603 AppKit`-[NSThemeFrame mouseDown:] + 30 frame #13: 0x00007fff2f3a5d6d AppKit`-[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 5891 frame #14: 0x00007fff2f3a29c4 AppKit`-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2359 frame #15: 0x00007fff2f3a1c70 AppKit`-[NSWindow(NSEventRouting) sendEvent:] + 497 frame #16: 0x00007fff2f203236 AppKit`-[NSApplication(NSEvent) sendEvent:] + 2462 frame #17: 0x0000000100003169 color.exe`fl_wait(double) + 185 frame #18: 0x0000000100003225 color.exe`fl_mac_flush_and_wait(double) + 166 frame #19: 0x000000010000d66f color.exe`Fl::run() + 19 frame #20: 0x0000000100000f92 color.exe`main + 210 frame #21: 0x00007fff59373015 libdyld.dylib`start + 1 frame #22: 0x00007fff59373015 libdyld.dylib`start + 1
// g++ -o color.exe color.cpp `fltk-config --cxxflags --ldflags`
#include <FL/Fl.H> #include <FL/Fl_Window.H> #include <FL/Fl_Color_Chooser.H>
int main() { Fl_Window* w = new Fl_Window(100, 100, 200, 200, "color.cpp"); Fl_Color_Chooser* c = new Fl_Color_Chooser(50, 10, 130, 180);
w->resizable(w); w->show(); return Fl::run(); } | |
|
#2 | matt 16:00 Feb 03, 2019 |
| Fl_Color_Chooser was trying to generate images, even if their width or height was zero or negative. | |
[ Return to Bugs & Features ]
|
| |