Opened 10 years ago

Closed 8 years ago

#46832 closed defect (fixed)

sombrero() causes crash with GUI, produces plot w/ warnings in CLI

Reported by: vjorlikowski Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: MacPorts@…
Port: octave

Description (last modified by mf2k (Frank Schima))

When I attempt to display the classic "sombrero()" plot using octave in GUI mode, I get a crash. The backtrace is:

Crashed Thread:        1  Dispatch queue: com.apple.libdispatch-manager

Exception Type:        EXC_CRASH (SIGSEGV)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Thread 0:: Dispatch queue: com.apple.main-thread
0   libGL.dylib                   	0x00007fff8d90d3e4 glMatrixMode + 15
1   __init_fltk__.oct             	0x0000000112c65637 OpenGL_fltk::resize(int, int, int, int) + 33
2   libfltk.1.3.dylib             	0x0000000112cd4ece Fl_Group::resize(int, int, int, int) + 540
3   libfltk.1.3.dylib             	0x0000000112cb9b0d Fl_Window::resize(int, int, int, int) + 539
4   __init_fltk__.oct             	0x0000000112c600ea plot_window::draw() + 438
5   libfltk.1.3.dylib             	0x0000000112cb6a9e Fl_X::flush() + 80
6   libfltk.1.3.dylib             	0x0000000112cb6a33 -[FLView drawRect:] + 153
7   com.apple.AppKit              	0x00007fff9b77cb19 -[NSView _drawRect:clip:] + 4238
8   com.apple.AppKit              	0x00007fff9b77b17a -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1875
9   com.apple.AppKit              	0x00007fff9b77b57e -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2903
10  com.apple.AppKit              	0x00007fff9b779016 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 913
11  com.apple.AppKit              	0x00007fff9b778773 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 333
12  com.apple.AppKit              	0x00007fff9b7752cb -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 2761
13  com.apple.AppKit              	0x00007fff9b753e2d -[NSView displayIfNeeded] + 1876
14  com.apple.AppKit              	0x00007fff9b7711c5 -[NSWindow displayIfNeeded] + 232
15  com.apple.AppKit              	0x00007fff9b7ae322 _handleWindowNeedsDisplayOrLayoutOrUpdateConstraints + 936
16  com.apple.AppKit              	0x00007fff9bd770e1 __83-[NSWindow _postWindowNeedsDisplayOrLayoutOrUpdateConstraintsUnlessPostingDisabled]_block_invoke1531 + 46
17  com.apple.CoreFoundation      	0x00007fff9506ada7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
18  com.apple.CoreFoundation      	0x00007fff9506ad00 __CFRunLoopDoObservers + 368
19  com.apple.CoreFoundation      	0x00007fff9505ce08 __CFRunLoopRun + 872
20  com.apple.CoreFoundation      	0x00007fff9505c858 CFRunLoopRunSpecific + 296
21  com.apple.HIToolbox           	0x00007fff8e54baef RunCurrentEventLoopInMode + 235
22  com.apple.HIToolbox           	0x00007fff8e54b76e ReceiveNextEventCommon + 179
23  com.apple.HIToolbox           	0x00007fff8e54b6ab _BlockUntilNextEventMatchingListInModeWithFilter + 71
24  com.apple.AppKit              	0x00007fff9b64ef81 _DPSNextEvent + 964
25  com.apple.AppKit              	0x00007fff9b64e730 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 194
26  com.apple.AppKit              	0x00007fff9b642593 -[NSApplication run] + 594
27  QtGui                         	0x00000001058e721b QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2027
28  QtCore                        	0x00000001066b261f QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 495
29  QtCore                        	0x00000001066b5857 QCoreApplication::exec() + 199
30  liboctgui.0.dylib             	0x000000010491f125 octave_start_gui(int, char**, bool) + 747
31  libdyld.dylib                 	0x00007fff92d095c9 start + 1

Thread 1 Crashed:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib        	0x00007fff8e360232 kevent64 + 10
1   libdispatch.dylib             	0x00007fff9097ca6a _dispatch_mgr_thread + 52

When I do the same w/ octave in CLI mode, the plot appears, but only after several of these errors are displayed:

octave:1> sombrero()
Feb 11 14:58:59 betty octave-cli-3.8.2[96682] <Error>: CGContextFillRects: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 11 14:58:59 betty octave-cli-3.8.2[96682] <Error>: CGContextMoveToPoint: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 11 14:58:59 betty octave-cli-3.8.2[96682] <Error>: CGContextAddLineToPoint: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 11 14:58:59 betty octave-cli-3.8.2[96682] <Error>: CGContextDrawPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 11 14:58:59 betty octave-cli-3.8.2[96682] <Error>: CGContextMoveToPoint: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 11 14:58:59 betty octave-cli-3.8.2[96682] <Error>: CGContextAddLineToPoint: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 11 14:58:59 betty octave-cli-3.8.2[96682] <Error>: CGContextDrawPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.

It appears to be related to usage of the fltk toolkit; neither of these errors occurs if I put:

graphics_toolkit("gnuplot");

in my .octaverc.

Change History (7)

comment:1 Changed 10 years ago by vjorlikowski

Sigh. Apologies. With better formatting, GUI:

Crashed Thread:        1  Dispatch queue: com.apple.libdispatch-manager

Exception Type:        EXC_CRASH (SIGSEGV)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Thread 0:: Dispatch queue: com.apple.main-thread
0   libGL.dylib                   	0x00007fff8d90d3e4 glMatrixMode + 15
1   __init_fltk__.oct             	0x0000000112c65637 OpenGL_fltk::resize(int, int, int, int) + 33
2   libfltk.1.3.dylib             	0x0000000112cd4ece Fl_Group::resize(int, int, int, int) + 540
3   libfltk.1.3.dylib             	0x0000000112cb9b0d Fl_Window::resize(int, int, int, int) + 539
4   __init_fltk__.oct             	0x0000000112c600ea plot_window::draw() + 438
5   libfltk.1.3.dylib             	0x0000000112cb6a9e Fl_X::flush() + 80
6   libfltk.1.3.dylib             	0x0000000112cb6a33 -[FLView drawRect:] + 153
7   com.apple.AppKit              	0x00007fff9b77cb19 -[NSView _drawRect:clip:] + 4238
8   com.apple.AppKit              	0x00007fff9b77b17a -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1875
9   com.apple.AppKit              	0x00007fff9b77b57e -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2903
10  com.apple.AppKit              	0x00007fff9b779016 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 913
11  com.apple.AppKit              	0x00007fff9b778773 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 333
12  com.apple.AppKit              	0x00007fff9b7752cb -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 2761
13  com.apple.AppKit              	0x00007fff9b753e2d -[NSView displayIfNeeded] + 1876
14  com.apple.AppKit              	0x00007fff9b7711c5 -[NSWindow displayIfNeeded] + 232
15  com.apple.AppKit              	0x00007fff9b7ae322 _handleWindowNeedsDisplayOrLayoutOrUpdateConstraints + 936
16  com.apple.AppKit              	0x00007fff9bd770e1 __83-[NSWindow _postWindowNeedsDisplayOrLayoutOrUpdateConstraintsUnlessPostingDisabled]_block_invoke1531 + 46
17  com.apple.CoreFoundation      	0x00007fff9506ada7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
18  com.apple.CoreFoundation      	0x00007fff9506ad00 __CFRunLoopDoObservers + 368
19  com.apple.CoreFoundation      	0x00007fff9505ce08 __CFRunLoopRun + 872
20  com.apple.CoreFoundation      	0x00007fff9505c858 CFRunLoopRunSpecific + 296
21  com.apple.HIToolbox           	0x00007fff8e54baef RunCurrentEventLoopInMode + 235
22  com.apple.HIToolbox           	0x00007fff8e54b76e ReceiveNextEventCommon + 179
23  com.apple.HIToolbox           	0x00007fff8e54b6ab _BlockUntilNextEventMatchingListInModeWithFilter + 71
24  com.apple.AppKit              	0x00007fff9b64ef81 _DPSNextEvent + 964
25  com.apple.AppKit              	0x00007fff9b64e730 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 194
26  com.apple.AppKit              	0x00007fff9b642593 -[NSApplication run] + 594
27  QtGui                         	0x00000001058e721b QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2027
28  QtCore                        	0x00000001066b261f QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 495
29  QtCore                        	0x00000001066b5857 QCoreApplication::exec() + 199
30  liboctgui.0.dylib             	0x000000010491f125 octave_start_gui(int, char**, bool) + 747
31  libdyld.dylib                 	0x00007fff92d095c9 start + 1

Thread 1 Crashed:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib        	0x00007fff8e360232 kevent64 + 10
1   libdispatch.dylib             	0x00007fff9097ca6a _dispatch_mgr_thread + 52

With CLI:

octave:1> sombrero()
Feb 11 14:58:59 betty octave-cli-3.8.2[96682] <Error>: CGContextFillRects: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 11 14:58:59 betty octave-cli-3.8.2[96682] <Error>: CGContextMoveToPoint: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 11 14:58:59 betty octave-cli-3.8.2[96682] <Error>: CGContextAddLineToPoint: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 11 14:58:59 betty octave-cli-3.8.2[96682] <Error>: CGContextDrawPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 11 14:58:59 betty octave-cli-3.8.2[96682] <Error>: CGContextMoveToPoint: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 11 14:58:59 betty octave-cli-3.8.2[96682] <Error>: CGContextAddLineToPoint: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 11 14:58:59 betty octave-cli-3.8.2[96682] <Error>: CGContextDrawPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.

In both cases, only when using the fltk toolkit.

comment:2 Changed 10 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to michaelld@…

In the future, please Cc the port maintainers (port info --maintainers octave), if any.

comment:3 Changed 10 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:4 in reply to:  2 Changed 10 years ago by vjorlikowski

Replying to mf2k@…:

In the future, please Cc the port maintainers (port info --maintainers octave), if any.

Will do; apologies.

comment:5 Changed 9 years ago by MacPorts@…

Cc: MacPorts@… added

Cc Me!

comment:6 Changed 8 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Owner: changed from michaelld@… to mcalhoun@…
Status: newassigned

Octave has undergone significant changes recently (r148698).
Any chance this issue has been resolved?

comment:7 Changed 8 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: assignedclosed

An e-mail message has confirmed that things are working for at least one person.

Note: See TracTickets for help on using tickets.