开源改变世界

由于未捕获的异常“CALayerInvalidGeometry”而终止应用程序 #549

推推 grbl 2年前 (2023-02-01) 273次浏览
关闭
ndevenish 打开了这个问题 2017 年 3 月 26 日 · 2 条评论
关闭

由于未捕获的异常“CALayerInvalidGeometry”而终止应用程序#549

ndevenish 打开了这个问题 2017 年 3 月 26 日 · 2 条评论

注释

由于未捕获的异常“CALayerInvalidGeometry”而终止应用程序 #549

我似乎经常(并且已经完成了 master、v0.99 和更旧版本)以下错误:

2017-03-25 16:16:43.076 Python[75083:2275168] *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [0 nan]'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff8ff606fb __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x00007fffa4767a2a objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff8ffdd9a5 +[NSException raise:format:] + 197
	3   QuartzCore                          0x00007fff95b28520 _ZN2CA5Layer12set_positionERKNS_4Vec2IdEEb + 152
	4   QuartzCore                          0x00007fff95b28695 -[CALayer setPosition:] + 44
	5   QuartzCore                          0x00007fff95b28ceb -[CALayer setFrame:] + 644
	6   CoreUI                              0x00007fff9b8fd4ce _ZN20CUICoreThemeRenderer26MakeOrUpdateScrollBarLayerEPK13CUIDescriptoraPP7CALayer + 1284
	7   CoreUI                              0x00007fff9b8f94c3 _ZN20CUICoreThemeRenderer19CreateOrUpdateLayerEPK13CUIDescriptorPP7CALayer + 1595
	8   CoreUI                              0x00007fff9b87a58d _ZN11CUIRenderer19CreateOrUpdateLayerEPK14__CFDictionaryPP7CALayer + 175
	9   CoreUI                              0x00007fff9b87d241 CUICreateOrUpdateLayer + 221
	10  AppKit                              0x00007fff8e58c21f -[NSCompositeAppearance _callCoreUIWithBlock:options:] + 226
	11  AppKit                              0x00007fff8dc320b3 -[NSAppearance _createOrUpdateLayer:options:] + 76
	12  AppKit                              0x00007fff8deaa71f -[NSScrollerImp _animateToRolloverState] + 274
	13  AppKit                              0x00007fff8de6a0f9 __49-[NSScrollerImp _installDelayedRolloverAnimation]_block_invoke + 673
	14  AppKit                              0x00007fff8dd302c5 -[NSScrollerImp _doWork:] + 15
	15  Foundation                          0x00007fff9195ec88 __NSFireDelayedPerform + 417
	16  CoreFoundation                      0x00007fff8fee0e84 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
	17  CoreFoundation                      0x00007fff8fee0b13 __CFRunLoopDoTimer + 1075
	18  CoreFoundation                      0x00007fff8fee066a __CFRunLoopDoTimers + 298
	19  CoreFoundation                      0x00007fff8fed8231 __CFRunLoopRun + 2081
	20  CoreFoundation                      0x00007fff8fed77b4 CFRunLoopRunSpecific + 420
	21  Tcl                                 0x000000010c7acb43 Tcl_WaitForEvent + 314
	22  Tcl                                 0x000000010c77c5cd Tcl_DoOneEvent + 274
	23  _tkinter.so                         0x000000010c5b0a70 Tkapp_MainLoop + 351
	24  Python                              0x000000010bee51ab PyEval_EvalFrameEx + 27003
	25  Python                              0x000000010bede63a PyEval_EvalCodeEx + 1617
	26  Python                              0x000000010bee8e12 fast_function + 117
	27  Python                              0x000000010bee50d0 PyEval_EvalFrameEx + 26784
	28  Python                              0x000000010bede63a PyEval_EvalCodeEx + 1617
	29  Python                              0x000000010beddfe3 PyEval_EvalCode + 48
	30  Python                              0x000000010bf01c04 run_mod + 53
	31  Python                              0x000000010bf01ca7 PyRun_FileExFlags + 133
	32  Python                              0x000000010bf017f8 PyRun_SimpleFileExFlags + 702
	33  Python                              0x000000010bf12eba Py_Main + 3094
	34  libdyld.dylib                       0x00007fffa5044255 start + 1
	35  ???                                 0x0000000000000002 0x0 + 2
)
libc++abi.dylib: terminating with uncaught exception of type NSException
./bCNC: line 9: 75083 Abort trap: 6           ${PYTHON} ${DIR}/bCNC.py $*

它似乎是随机发生的,有时是在连接到 CNC 时,有时是在 gui 中移动时。在 Sierra 10.12.1 上。

关于修复/追踪此问题的任何建议?对于我每小时发生几次的错误,我找不到其他人遇到此问题的实例……

由于未捕获的异常“CALayerInvalidGeometry”而终止应用程序 #549
所有者

我感觉在 Sierra 问题上更像是一个 python 而不是 bCNC。很抱歉,我帮不上什么忙。

由于未捕获的异常“CALayerInvalidGeometry”而终止应用程序 #549
所有者

我正在关闭这个问题,因为它似乎与 bCNC 无关,但是如果您找到解决方案,请告诉我们