CGBitmapContextGetWidth: invalid context 0x600003722340.
Backtrace:
<CGBitmapContextGetWidth+49>
<-[FLView create_aux_bitmap:retina:]+55>
<-[FLView drawRect:]+360>
<_NSViewDrawRect+139>
<-[NSView _drawRect:clip:]+1103>
<-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]+2143>
<-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]+3503>
<-[NSView _oldDisplayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]+2126>
<-[NSView displayIfNeeded]+755>
<-[NSWindow displayIfNeeded]+261>
<__NSWindowGetDisplayCycleObserverForDisplay_block_invoke+646>
<NSDisplayCycleObserverInvoke+155>
<NSDisplayCycleFlush+937>
<_ZN2CA11Transaction19run_commit_handlersE18CATransactionPhase+106>
<_ZN2CA11Transaction6commitEv+230>
<__62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke+266>
<___NSRunLoopObserverCreateWithHandler_block_invoke+41>
<__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__+23>
<__CFRunLoopDoObservers+457>
<__CFRunLoopRun+874>
<CFRunLoopRunSpecific+462>
<RunCurrentEventLoopInMode+292>
<ReceiveNextEventCommon+359>
<_BlockUntilNextEventMatchingListInModeWithFilter+64>
<_DPSNextEvent+883>
<-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]+1352>
<_ZN22Fl_Cocoa_Screen_Driver4waitEd+504>
<_ZN2Fl3runEv+44>
<_ZL8RegisterP9PF_InDataP10PF_OutData+136>
<EntryPointFunc+1557>
Fl_Cursor crsr;
The cursor is set to FL_CURSOR_HAND in the child window."A child Fl_Window with children of its own may be useful for imbedding controls into a GL or display that needs a different visual.
There are bugs with the origins being different between drawing and events, which I hope I have solved."
I have a Fl_wizard window that runs fine in a very simple test app. As a part of a larger project, it just goes gray and most of the widgets disappear if I click on any field.Tracing this in Xcode gives an error related to the same macOS code mentioned above.
CGBitmapContextGetWidth: invalid context 0x600003722340.
Backtrace:
<CGBitmapContextGetWidth+49>
<-[FLView create_aux_bitmap:retina:]+55>
<-[FLView drawRect:]+360>
…etc…
#ifdef __OBJC__
@class NSOpenGLContext;
typedef NSOpenGLContext* GLContext;
#elif defined(__cplusplus)
typedef class NSOpenGLContext* GLContext;
#endif /* __OBJC__ */
For my own reference, I get a warning here -NSOpenGLContext deprecated. For some odd reason, Xcode is defining __OBJC__#ifdef __OBJC__
@class NSOpenGLContext;
typedef NSOpenGLContext* GLContext;
#elif defined(__cplusplus)
typedef class NSOpenGLContext* GLContext;
#endif /* __OBJC__ */