Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpp-tests macos - crash on "Start AutoTest" #1751

Open
crazyhappygame opened this issue Mar 16, 2024 · 0 comments
Open

cpp-tests macos - crash on "Start AutoTest" #1751

crazyhappygame opened this issue Mar 16, 2024 · 0 comments

Comments

@crazyhappygame
Copy link
Contributor

crazyhappygame commented Mar 16, 2024

  • axmol version: commit 397343b (HEAD, tag: v2.1.2)
  • devices test on: MacOS M3 Max
% sw_vers 
ProductName:		macOS
ProductVersion:		14.4
BuildVersion:		23E214
  • developing environments
    • NDK version: r23c
    • Xcode version: 14.2+
    • Visual Studio:
      • VS version: 2022 (17.9+)
      • MSVC version: 19.39+
      • Windows SDK version: 10.0.22621.0+
    • cmake version: 3.28.1
      Steps to Reproduce:
  1. cmake -S . -B build -G Xcode
  2. cmake --build build --target cpp-tests
  3. ./build/bin/cpp-tests/Debug/cpp-tests.app/Contents/MacOS/cpp-tests
  4. Press "Start AutoTest"
    Crash
Console: IPV4 server is listening on 0.0.0.0:5678
Loading shader: 5 positionTextureColor_vs, positionTextureColor_fs ...
Loading shader: 9 positionTextureColor_vs, label_distanceNormal_fs ...
axmol: QuadCommand: resizing index size from [-1] to [2560]
[TestController]Begin traverse TestList:
GLFWError #65544 Happen, Cocoa: Cannot query workarea without screen
GLFWError #65544 Happen, Cocoa: Cannot query content scale without screen
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow geometry should only be modified on the main thread!'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000019a9aaccc __exceptionPreprocess + 176
	1   libobjc.A.dylib                     0x000000019a492788 objc_exception_throw + 60
	2   CoreFoundation                      0x000000019a9cfc48 _CFBundleGetValueForInfoKey + 0
	3   AppKit                              0x000000019e1ae1f0 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 240
	4   AppKit                              0x000000019e1b728c -[NSView setFrameSize:] + 1696
	5   AppKit                              0x000000019e1ea3e0 -[NSTitlebarView setFrameSize:] + 88
	6   AppKit                              0x000000019e1c4ec8 -[NSView setFrame:] + 304
	7   AppKit                              0x000000019e1d1ad0 -[NSView resizeSubviewsWithOldSize:] + 360
	8   AppKit                              0x000000019e1b705c -[NSView setFrameSize:] + 1136
	9   AppKit                              0x000000019e1d25d8 -[NSTitlebarContainerView setFrameSize:] + 88
	10  AppKit                              0x000000019e1c4ec8 -[NSView setFrame:] + 304
	11  AppKit                              0x000000019e1d20cc -[NSView resizeWithOldSuperviewSize:] + 488
	12  AppKit                              0x000000019e1d1ad0 -[NSView resizeSubviewsWithOldSize:] + 360
	13  AppKit                              0x000000019e1b705c -[NSView setFrameSize:] + 1136
	14  AppKit                              0x000000019e1d0cb4 -[NSThemeFrame setFrameSize:] + 244
	15  AppKit                              0x000000019e1d0618 -[NSWindow _oldPlaceWindow:fromServer:] + 532
	16  AppKit                              0x000000019e1cfad4 -[NSWindow _setFrameCommon:display:fromServer:] + 1832
	17  cpp-tests                           0x0000000106d99d78 _glfwSetWindowSizeCocoa + 404
	18  cpp-tests                           0x0000000106db2ba8 glfwSetWindowSize + 340
	19  cpp-tests                           0x0000000105f045c8 _ZN2ax10GLViewImpl15updateFrameSizeEv + 432
	20  cpp-tests                           0x0000000105f04e80 _ZN2ax10GLViewImpl12setFrameSizeEff + 52
	21  cpp-tests                           0x0000000105f04b14 _ZN2ax10GLViewImpl11setWindowedEii + 128
	22  cpp-tests                           0x00000001062d82f0 _Z30ImGui_ImplAx_SetViewResolutionff + 56
	23  cpp-tests                           0x00000001061b2cc4 _ZN2ax9extension14ImGuiPresenter17setViewResolutionEff + 36
	24  cpp-tests                           0x0000000104e180b4 _ZN10ImGuiTestsC2Ev + 108
	25  cpp-tests                           0x0000000104e181b0 _ZN10ImGuiTestsC1Ev + 28
	26  cpp-tests                           0x0000000105926250 _ZZN9RootTestsC1EvENKUlvE_clEv + 32
	27  cpp-tests                           0x0000000105926224 _ZNSt3__18__invokeB7v160006IRZN9RootTestsC1EvEUlvE_JEEEDTclclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOS4_DpOS5_ + 24
	28  cpp-tests                           0x00000001059261dc _ZNSt3__128__invoke_void_return_wrapperIP8TestBaseLb0EE6__callIJRZN9RootTestsC1EvEUlvE_EEES2_DpOT_ + 24
	29  cpp-tests                           0x00000001059261b8 _ZNSt3__110__function12__alloc_funcIZN9RootTestsC1EvEUlvE_NS_9allocatorIS3_EEFP8TestBasevEEclB7v160006Ev + 28
	30  cpp-tests                           0x0000000105925054 _ZNSt3__110__function6__funcIZN9RootTestsC1EvEUlvE_NS_9allocatorIS3_EEFP8TestBasevEEclEv + 28
	31  cpp-tests                           0x0000000104c1babc _ZNKSt3__110__function12__value_funcIFP8TestBasevEEclB7v160006Ev + 68
	32  cpp-tests                           0x0000000104c0df9c _ZNKSt3__18functionIFP8TestBasevEEclEv + 24
	33  cpp-tests                           0x0000000105920ac4 _ZN14TestController16traverseTestListEP8TestList + 612
	34  cpp-tests                           0x00000001059206b0 _ZN14TestController18traverseThreadFuncEv + 88
	35  cpp-tests                           0x0000000105991a20 _ZNSt3__18__invokeB7v160006IM14TestControllerFvvEPS1_JEvEEDTcldsdeclsr3stdE7declvalIT0_EEclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT1_EEEEOS6_OS5_DpOS7_ + 116
	36  cpp-tests                           0x00000001059919a0 _ZNSt3__116__thread_executeB7v160006INS_10unique_ptrINS_15__thread_structENS_14default_deleteIS2_EEEEM14TestControllerFvvEJPS6_EJLm2EEEEvRNS_5tupleIJT_T0_DpT1_EEENS_15__tuple_indicesIJXspT2_EEEE 	37  cpp-tests                           0x000000010599164c _ZNSt3__114__thread_proxyB7v160006INS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEM14TestControllerFvvEPS7_EEEEEPvSC_ + 84
	38  libsystem_pthread.dylib             0x000000019a856f94 _pthread_start + 136
	39  libsystem_pthread.dylib             0x000000019a851d34 thread_start + 8
)
libc++abi: terminating due to uncaught exception of type NSException
[TestController]Catch an crash event
zsh: abort      ./build/bin/cpp-tests/Debug/cpp-tests.app/Contents/MacOS/cpp-tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants