ios - CGContextSaveGState: invalid context 0x0 at App Launch -
i have set cg_context_show_backtrace
environnement variable yes
because had following error cgcontextsavegstate: invalid context 0x0
.
the following stacktrace didn't me much.
<error>: cgcontextsavegstate: invalid context 0x0. backtrace: <-[uistatusbarbatteryitemview contentsimage]+773> <-[uistatusbaritemview updatecontentsandwidth]+36> <-[uistatusbaritemview initwithitem:data:actions:style:]+503> <+[uistatusbaritemview createviewforitem:withdata:actions:foregroundstyle:]+159> <-[uistatusbarlayoutmanager _createviewforitem:withdata:actions:]+168> <-[uistatusbarlayoutmanager _prepareenableditemtype:withenableditems:withdata:actions:itemappearing:itemdisappearing:]+3 <-[uistatusbarlayoutmanager prepareenableditems:withdata:actions:]+108> <-[uistatusbarforegroundview _setstatusbardata:actions:animated:]+951> <-[uistatusbarforegroundview setstatusbardata:actions:animated:]+874> <__51-[uistatusbar _preparetosetstyle:animation:forced:]_block_invoke+443> <+[uiview(animation) performwithoutanimation:]+82> <-[uistatusbar _preparetosetstyle:animation:forced:]+935> <-[uistatusbar _requeststyleattributes:animationparameters:forced:]+404> <-[uistatusbar requeststyle:animationparameters:forced:]+490> <-[uistatusbar requeststyle:animated:forced:]+113> <-[uistatusbar forceupdatestyleoverrides:]+97> <-[uistatusbar _evaluateserverregistration]+294> <-[uistatusbar didmovetosuperview]+33> <__45-[uiview(hierarchy) _postmovedfromsuperview:]_block_invoke+683> <-[uiview(hierarchy) _postmovedfromsuperview:]+484> <-[uiview(internal) _addsubview:positioned:relativeto:]+2305> <-[uiview(hierarchy) addsubview:]+56> <-[uistatusbarwindow setstatusbar:]+311> <-[uiapplication _createstatusbarwithrequestedstyle:orientation:hidden:]+384> <-[uiapplication _runwithmainscene:transitioncontext:completion:]+1047> <__84-[uiapplication _handleapplicationactivationwithscene:transitioncontext:completion:]_block_invo <-[uiapplication workspacedidendtransaction:]+163> <__37-[fbsworkspace clientendtransaction:]_block_invoke_2+71> <__40-[fbsworkspace _performdelegatecallout:]_block_invoke+54> <-[fbsserialqueue _performnext]+184> <-[fbsserialqueue _performnextfromrunloopsource]+52> <fbsserialqueuerunloopsourcehandler+33> <__cfrunloop_is_calling_out_to_a_source0_perform_function__+15> <__cfrunloopdosources0+523> <__cfrunlooprun+1032> <cfrunlooprunspecific+470> <cfrunloopruninmode+123> <-[uiapplication _run]+540> <uiapplicationmain+160> <main+94>
the error happening @ launch , there seems problem battery view. error ring bell ?
fww app written in swift 2.0, on ios9 xcode 7b6.
i have encountered same issue, , cause of was, playing around setting different status bar styles different screens. therefore , needed add "view controller-based status bar appearance" key inside plist. , warning goes away if remove key.
Comments
Post a Comment