cinder / Cinder

Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.
http://libcinder.org
Other
5.27k stars 939 forks source link

FontSample compiles but outputs nothing MacOS 11.2.2, cinder 0.9.2) #2247

Open gusev-genotek opened 3 years ago

gusev-genotek commented 3 years ago

Errors thrown in the draw() method:

2021-06-05 21:30:46.110949+0300 FontSample[12315:548770] [org.libcinder.FontSample] CGContextClipToRect: invalid context 0x0. Backtrace:
  <-[RendererImpl2dMacQuartz startDraw]+486>
   <_ZN6cinder3app10Renderer2d9startDrawEv+33>
    <-[CinderViewMac drawRect:]+187>
     <-[CinderViewMac draw]+180>
      <-[AppImplMac timerFired:]+923>
       <__NSFireTimer+67>
        <__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__+20>
         <__CFRunLoopDoTimer+922>
          <__CFRunLoopDoTimers+307>
           <__CFRunLoopRun+2008>
            <CFRunLoopRunSpecific+563>
             <RunCurrentEventLoopInMode+292>
              <ReceiveNextEventCommon+709>
               <_BlockUntilNextEventMatchingListInModeWithFilter+64>
                <_DPSNextEvent+883>
                 <-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]+1366>
                  <-[NSApplication run]+586>
                   <_ZN6cinder3app6AppMac6launchEv+59>
                    <_ZN6cinder3app7AppBase13executeLaunchEv+73>
                     <_ZN6cinder3app6AppMac4mainI13fontSampleAppEEvRKNSt3__110shared_ptrINS0_8RendererEEEPKciPKPcRKNS4_8functio
                      <main+187>
                       <start+1>                               3
2021-06-05 21:30:46.112599+0300 FontSample[12315:548770] [org.libcinder.FontSample] CGContextGetCTM: invalid context 0x0. Backtrace:
  <CGContextGetCTM+51>
   <-[RendererImpl2dMacQuartz startDraw]+513>
    <_ZN6cinder3app10Renderer2d9startDrawEv+33>
     <-[CinderViewMac drawRect:]+187>
      <-[CinderViewMac draw]+180>
       <-[AppImplMac timerFired:]+923>
        <__NSFireTimer+67>
         <__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__+20>
          <__CFRunLoopDoTimer+922>
           <__CFRunLoopDoTimers+307>
            <__CFRunLoopRun+2008>
             <CFRunLoopRunSpecific+563>
              <RunCurrentEventLoopInMode+292>
               <ReceiveNextEventCommon+709>
                <_BlockUntilNextEventMatchingListInModeWithFilter+64>
                 <_DPSNextEvent+883>
                  <-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]+1366>
                   <-[NSApplication run]+586>
                    <_ZN6cinder3app6AppMac6launchEv+59>
                     <_ZN6cinder3app7AppBase13executeLaunchEv+73>
                      <_ZN6cinder3app6AppMac4mainI13fontSampleAppEEvRKNSt3__110shared_ptrINS0_8RendererEEEPKciPKPcRKNS4_8functi
                       <main+187>
                        <start+1>                                3
2021-06-05 21:30:46.114077+0300 FontSample[12315:548770] [org.libcinder.FontSample] CGContextConcatCTM: invalid context 0x0. Backtrace:
  <-[RendererImpl2dMacQuartz startDraw]+774>
   <_ZN6cinder3app10Renderer2d9startDrawEv+33>
    <-[CinderViewMac drawRect:]+187>
     <-[CinderViewMac draw]+180>
      <-[AppImplMac timerFired:]+923>
       <__NSFireTimer+67>
        <__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__+20>
         <__CFRunLoopDoTimer+922>
          <__CFRunLoopDoTimers+307>
           <__CFRunLoopRun+2008>
            <CFRunLoopRunSpecific+563>
             <RunCurrentEventLoopInMode+292>
              <ReceiveNextEventCommon+709>
               <_BlockUntilNextEventMatchingListInModeWithFilter+64>
                <_DPSNextEvent+883>
                 <-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]+1366>
                  <-[NSApplication run]+586>
                   <_ZN6cinder3app6AppMac6launchEv+59>
                    <_ZN6cinder3app7AppBase13executeLaunchEv+73>
                     <_ZN6cinder3app6AppMac4mainI13fontSampleAppEEvRKNSt3__110shared_ptrINS0_8RendererEEEPKciPKPcRKNS4_8functio
                      <main+187>
                       <start+1>                               3
(lldb)