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

macOS: threading-model cull/draw causes crash upon base.run() #1286

Closed
kamgha opened this issue Mar 27, 2022 · 4 comments
Closed

macOS: threading-model cull/draw causes crash upon base.run() #1286

kamgha opened this issue Mar 27, 2022 · 4 comments
Milestone

Comments

@kamgha
Copy link
Contributor

kamgha commented Mar 27, 2022

Description

Panda3D crashes upon ShowBase.run() when having
threading-model cull/draw
in the PRC in macOS.

The issue is probably related to the TaskManager, perhaps caused by the __igLoop Task (rdb).

Removing threading-model cull/draw from Config.prc or setting support-threads #f works around the issue and the application appears to run as expected. However, the latter may not be a feasible option.

The issue is both reproducible with arm64 and x86_64 run via arch -x86_64 /path/to/python3 ./test.py on an ARM based system.

Steps to Reproduce

Reproducer (this is the sample from the Panda3D tutorial):

from direct.showbase.ShowBase import ShowBase

class MyApp(ShowBase):

    def __init__(self):
        ShowBase.__init__(self)

app = MyApp()
app.run()

Environment

  • Operating system: macOS 12.3
  • System architecture: arm64 (and x86_64 via Rosetta2)
  • Panda3D version: git master 3084fcd
  • Installation method: built from source
  • Python version (if using Python): CPython 3.9.12
  • Compiler (if using C++): Apple clang 13.1.6 (provided by Xcode command line tools on macOS 12.3)

Crash report

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               python3.9 [45831]
Path:                  /Users/USER/*/python3
Identifier:            python3.9
Version:               ???
Code Type:             ARM-64 (Native)
Parent Process:        zsh [28784]
Responsible:           Terminal [28782]
User ID:               501

Date/Time:             2022-03-27 17:04:52.1419 +0200
OS Version:            macOS 12.3 (21E230)
Report Version:        12
Anonymous UUID:        B37431B5-E06C-54D5-08F3-A7B3BDDFCD83

Sleep/Wake UUID:       C341BE7A-A3D4-4B4F-948C-DF350AEC4C13

Time Awake Since Boot: 40000 seconds
Time Since Wake:       6775 seconds

System Integrity Protection: enabled

Crashed Thread:        6

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x00000001a9bc5ae8
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [45831]

Application Specific Information:
-[NSOpenGLContext update] must be called from the main thread if the context has a view.


Thread 0::  Dispatch queue: com.apple.main-thread
0   libp3dtool.1.11.dylib         	       0x10318c668 TypeRegistry::rebuild_derivations() + 176
1   libp3dtool.1.11.dylib         	       0x10318c650 TypeRegistry::rebuild_derivations() + 152
2   libp3dtool.1.11.dylib         	       0x10318b740 TypeRegistry::is_derived_from(TypeHandle, TypeHandle, TypedObject*) + 192
3   libpandaexpress.1.11.dylib    	       0x10339eb70 _dcast_verify(TypeHandle, unsigned long, TypedObject const*) + 128
4   libpanda.1.11.dylib           	       0x105a80220 CollisionLevelState<BitMask<unsigned long long, 64> >::apply_transform() + 1380
5   libpanda.1.11.dylib           	       0x105a775b4 CollisionTraverser::r_traverse_single(CollisionLevelState<BitMask<unsigned long long, 64> >&, unsigned long) + 52
6   libpanda.1.11.dylib           	       0x105a79134 CollisionTraverser::r_traverse_single(CollisionLevelState<BitMask<unsigned long long, 64> >&, unsigned long) + 7092
7   libpanda.1.11.dylib           	       0x105a79134 CollisionTraverser::r_traverse_single(CollisionLevelState<BitMask<unsigned long long, 64> >&, unsigned long) + 7092
8   libpanda.1.11.dylib           	       0x105a79134 CollisionTraverser::r_traverse_single(CollisionLevelState<BitMask<unsigned long long, 64> >&, unsigned long) + 7092
9   libpanda.1.11.dylib           	       0x105a755ec CollisionTraverser::traverse(NodePath const&) + 616
10  core.cpython-39-darwin.so     	       0x104cac358 Dtool_CollisionTraverser_traverse_115(_object*, _object*) + 184
11  python3.9                     	       0x1028eb0ac method_vectorcall_O + 168
12  python3.9                     	       0x1029eaa50 call_function + 372
13  python3.9                     	       0x1029e7514 _PyEval_EvalFrameDefault + 28884
14  python3.9                     	       0x1029dfd50 _PyEval_EvalCode + 3076
15  python3.9                     	       0x1028de134 _PyFunction_Vectorcall + 244
16  python3.9                     	       0x1029eaa50 call_function + 372
17  python3.9                     	       0x1029e7514 _PyEval_EvalFrameDefault + 28884
18  python3.9                     	       0x1029dfd50 _PyEval_EvalCode + 3076
19  python3.9                     	       0x1028de134 _PyFunction_Vectorcall + 244
20  python3.9                     	       0x1028e0e74 method_vectorcall + 516
21  core.cpython-39-darwin.so     	       0x10500ca14 PythonThread::call_python_func(_object*, _object*) + 188
22  core.cpython-39-darwin.so     	       0x105011920 PythonTask::do_python_task() + 256
23  core.cpython-39-darwin.so     	       0x105011804 PythonTask::do_task() + 32
24  libpanda.1.11.dylib           	       0x105b09350 AsyncTask::unlock_and_do_task() + 300
25  libpanda.1.11.dylib           	       0x105b0d0b0 AsyncTaskChain::service_one_task(AsyncTaskChain::AsyncTaskChainThread*) + 504
26  libpanda.1.11.dylib           	       0x105b0c314 AsyncTaskChain::do_poll() + 424
27  libpanda.1.11.dylib           	       0x105b13288 AsyncTaskManager::poll() + 68
28  core.cpython-39-darwin.so     	       0x104d20fcc Dtool_AsyncTaskManager_poll_139(_object*, _object*) + 60
29  python3.9                     	       0x1028eaf4c method_vectorcall_NOARGS + 172
30  python3.9                     	       0x1029eaa50 call_function + 372
31  python3.9                     	       0x1029e7514 _PyEval_EvalFrameDefault + 28884
32  python3.9                     	       0x1028de1b4 function_code_fastcall + 116
33  python3.9                     	       0x1029eaa50 call_function + 372
34  python3.9                     	       0x1029e7514 _PyEval_EvalFrameDefault + 28884
35  python3.9                     	       0x1029dfd50 _PyEval_EvalCode + 3076
36  python3.9                     	       0x1028de134 _PyFunction_Vectorcall + 244
37  python3.9                     	       0x1029eaa50 call_function + 372
38  python3.9                     	       0x1029e7514 _PyEval_EvalFrameDefault + 28884
39  python3.9                     	       0x1028de1b4 function_code_fastcall + 116
40  python3.9                     	       0x1029eaa50 call_function + 372
41  python3.9                     	       0x1029e7514 _PyEval_EvalFrameDefault + 28884
42  python3.9                     	       0x1028de1b4 function_code_fastcall + 116
43  python3.9                     	       0x1028dd8a8 _PyObject_FastCallDictTstate + 280
44  python3.9                     	       0x1028de4b0 _PyObject_Call_Prepend + 164
45  python3.9                     	       0x102957098 slot_tp_init + 380
46  python3.9                     	       0x1029657cc type_call + 344
47  python3.9                     	       0x1028dd670 _PyObject_MakeTpCall + 348
48  python3.9                     	       0x1029eabb0 call_function + 724
49  python3.9                     	       0x1029e75b0 _PyEval_EvalFrameDefault + 29040
50  python3.9                     	       0x1029dfd50 _PyEval_EvalCode + 3076
51  python3.9                     	       0x102a41eac pyrun_file + 376
52  python3.9                     	       0x102a41448 PyRun_SimpleFileExFlags + 788
53  python3.9                     	       0x102a63d40 Py_RunMain + 2788
54  python3.9                     	       0x102a64e00 pymain_main + 1256
55  python3.9                     	       0x102885c9c main + 40
56  dyld                          	       0x102ce5088 start + 516

Thread 1::  Dispatch queue: NSCGSDisableUpdates
0   libsystem_kernel.dylib        	       0x1a6c14924 semaphore_timedwait_trap + 8
1   libdispatch.dylib             	       0x1a6a8e7c8 _dispatch_sema4_timedwait + 64
2   libdispatch.dylib             	       0x1a6a8edbc _dispatch_semaphore_wait_slow + 76
3   SkyLight                      	       0x1abe5b28c CGSUpdateManager::enable_updates_common() + 948
4   SkyLight                      	       0x1abe5bddc SLSReenableUpdateTokenWithSeed + 124
5   libdispatch.dylib             	       0x1a6a8c604 _dispatch_call_block_and_release + 32
6   libdispatch.dylib             	       0x1a6a8e1c8 _dispatch_client_callout + 20
7   libdispatch.dylib             	       0x1a6a958a8 _dispatch_lane_serial_drain + 668
8   libdispatch.dylib             	       0x1a6a96404 _dispatch_lane_invoke + 392
9   libdispatch.dylib             	       0x1a6aa0c98 _dispatch_workloop_worker_thread + 648
10  libsystem_pthread.dylib       	       0x1a6c4e360 _pthread_wqthread + 288
11  libsystem_pthread.dylib       	       0x1a6c4d080 start_wqthread + 8

Thread 2::  Dispatch queue: com.apple.SkyLight.UpdateManager.SerialSema
0   libsystem_kernel.dylib        	       0x1a6c1490c semaphore_wait_trap + 8
1   SkyLight                      	       0x1abe5b45c invocation function for block in (anonymous namespace)::InterprocessSerialSemaphore::asyncWait(void (int) block_pointer) + 40
2   libdispatch.dylib             	       0x1a6a8c604 _dispatch_call_block_and_release + 32
3   libdispatch.dylib             	       0x1a6a8e1c8 _dispatch_client_callout + 20
4   libdispatch.dylib             	       0x1a6a958a8 _dispatch_lane_serial_drain + 668
5   libdispatch.dylib             	       0x1a6a96404 _dispatch_lane_invoke + 392
6   libdispatch.dylib             	       0x1a6aa0c98 _dispatch_workloop_worker_thread + 648
7   libsystem_pthread.dylib       	       0x1a6c4e360 _pthread_wqthread + 288
8   libsystem_pthread.dylib       	       0x1a6c4d080 start_wqthread + 8

Thread 3:: AMCP Logging Spool
0   libsystem_kernel.dylib        	       0x1a6c1490c semaphore_wait_trap + 8
1   caulk                         	       0x1af6a6a2c caulk::mach::semaphore::wait_or_error() + 28
2   caulk                         	       0x1af68a77c caulk::concurrent::details::worker_thread::run() + 56
3   caulk                         	       0x1af68a39c void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*> > >(void*) + 96
4   libsystem_pthread.dylib       	       0x1a6c5226c _pthread_start + 148
5   libsystem_pthread.dylib       	       0x1a6c4d08c thread_start + 8

Thread 4:: com.apple.audio.IOThread.client
0   libsystem_kernel.dylib        	       0x1a6c148d0 mach_msg_trap + 8
1   libsystem_kernel.dylib        	       0x1a6c14d40 mach_msg + 76
2   CoreAudio                     	       0x1a895ea40 HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int) + 104
3   CoreAudio                     	       0x1a87ebcd0 HALC_ProxyIOContext::IOWorkLoop() + 3396
4   CoreAudio                     	       0x1a87ea990 invocation function for block in HALC_ProxyIOContext::HALC_ProxyIOContext(unsigned int, unsigned int) + 100
5   CoreAudio                     	       0x1a89b6e60 HALB_IOThread::Entry(void*) + 88
6   libsystem_pthread.dylib       	       0x1a6c5226c _pthread_start + 148
7   libsystem_pthread.dylib       	       0x1a6c4d08c thread_start + 8

Thread 5:
0   libsystem_kernel.dylib        	       0x1a6c1792c __psynch_mutexdrop + 8
1   libsystem_pthread.dylib       	       0x1a6c4f3f4 _pthread_mutex_firstfit_wake + 28
2   libsystem_pthread.dylib       	       0x1a6c4d000 _pthread_mutex_firstfit_unlock_slow + 252
3   libp3dtoolconfig.1.11.dylib   	       0x1032697cc ConfigVariableBool::reload_value() const + 228
4   libpanda.1.11.dylib           	       0x1058aad14 CullTraverser::set_scene(SceneSetup*, GraphicsStateGuardianBase*, bool) + 536
5   libpanda.1.11.dylib           	       0x105ac4c30 GraphicsEngine::do_cull(CullHandler*, SceneSetup*, GraphicsStateGuardian*, Thread*) + 136
6   libpanda.1.11.dylib           	       0x105ad52e8 GraphicsEngine::cull_to_bins(GraphicsOutput*, GraphicsStateGuardian*, DisplayRegion*, SceneSetup*, CullResult*, Thread*) + 324
7   libpanda.1.11.dylib           	       0x105ad4944 GraphicsEngine::cull_to_bins(ov_set<PointerTo<GraphicsOutput>, IndirectLess<GraphicsOutput>, pvector<PointerTo<GraphicsOutput> > >, Thread*) + 2268
8   libpanda.1.11.dylib           	       0x105acf81c GraphicsEngine::WindowRenderer::do_frame(GraphicsEngine*, Thread*) + 212
9   libpanda.1.11.dylib           	       0x105ad82e4 GraphicsEngine::RenderThread::thread_main() + 236
10  libpanda.1.11.dylib           	       0x105b0432c ThreadPosixImpl::root_func(void*) + 100
11  libsystem_pthread.dylib       	       0x1a6c5226c _pthread_start + 148
12  libsystem_pthread.dylib       	       0x1a6c4d08c thread_start + 8

Thread 6 Crashed:
0   AppKit                        	       0x1a9bc5ae8 -[NSOpenGLContext update] + 480
1   AppKit                        	       0x1a9bc5ae8 -[NSOpenGLContext update] + 480
2   libpandagl.dylib              	       0x1044b28c4 CocoaGraphicsWindow::begin_frame(GraphicsOutput::FrameMode, Thread*) + 436
3   libpanda.1.11.dylib           	       0x105ad57f8 GraphicsEngine::draw_bins(ov_set<PointerTo<GraphicsOutput>, IndirectLess<GraphicsOutput>, pvector<PointerTo<GraphicsOutput> > > const&, Thread*) + 360
4   libpanda.1.11.dylib           	       0x105acf9c8 GraphicsEngine::WindowRenderer::do_frame(GraphicsEngine*, Thread*) + 640
5   libpanda.1.11.dylib           	       0x105ad82e4 GraphicsEngine::RenderThread::thread_main() + 236
6   libpanda.1.11.dylib           	       0x105b0432c ThreadPosixImpl::root_func(void*) + 100
7   libsystem_pthread.dylib       	       0x1a6c5226c _pthread_start + 148
8   libsystem_pthread.dylib       	       0x1a6c4d08c thread_start + 8

Thread 7:: CVDisplayLink
0   libsystem_kernel.dylib        	       0x1a6c18290 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1a6c52868 _pthread_cond_wait + 1280
2   CoreVideo                     	       0x1ae2dfb9c CVDisplayLink::waitUntil(unsigned long long) + 324
3   CoreVideo                     	       0x1ae2deecc CVDisplayLink::runIOThread() + 488
4   libsystem_pthread.dylib       	       0x1a6c5226c _pthread_start + 148
5   libsystem_pthread.dylib       	       0x1a6c4d08c thread_start + 8

Thread 8:
0   libsystem_pthread.dylib       	       0x1a6c4d078 start_wqthread + 0

Thread 9:
0   libsystem_pthread.dylib       	       0x1a6c4d078 start_wqthread + 0

Thread 10:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	       0x1a6c148d0 mach_msg_trap + 8
1   libsystem_kernel.dylib        	       0x1a6c14d40 mach_msg + 76
2   CoreFoundation                	       0x1a6d1ec1c __CFRunLoopServiceMachPort + 372
3   CoreFoundation                	       0x1a6d1d0cc __CFRunLoopRun + 1180
4   CoreFoundation                	       0x1a6d1c490 CFRunLoopRunSpecific + 600
5   AppKit                        	       0x1a99e8794 _NSEventThread + 196
6   libsystem_pthread.dylib       	       0x1a6c5226c _pthread_start + 148
7   libsystem_pthread.dylib       	       0x1a6c4d08c thread_start + 8


Thread 6 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x0000000000000000   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x0000000000000000
    x8: 0x5b8a11f921e70001   x9: 0x5b8a11f921e70001  x10: 0xfffffffe5959f48b  x11: 0x0000000000000000
   x12: 0x000000008520d7fb  x13: 0x000000000520d000  x14: 0x0000000005200000  x15: 0x00000001aa503828
   x16: 0xfffffffffffffff4  x17: 0x0000000200abfed0  x18: 0x0000000000000000  x19: 0x0000600003a2d920
   x20: 0x0000000133f51c80  x21: 0x0000600003a2d928  x22: 0x0000000000000000  x23: 0x0000000134893a10
   x24: 0x00000001044d6000  x25: 0x00000001060b7cf0  x26: 0x00000001060b7030  x27: 0x0000000134893a10
   x28: 0x000000013484d610   fp: 0x000000016dfbec80   lr: 0x51028001a9bc5ae8
    sp: 0x000000016dfbec40   pc: 0x00000001a9bc5ae8 cpsr: 0x60001000
   far: 0x000000010ac3c000  esr: 0xf2000001 (Breakpoint) brk 1

Binary Images:
       0x10316c000 -        0x103197fff libp3dtool.1.11.dylib (*) <17e2f6d5-c086-34ce-b069-4072466787bc> /Users/USER/*/libp3dtool.1.11.dylib
       0x103384000 -        0x103403fff libpandaexpress.1.11.dylib (*) <8f38eb08-c379-311b-a5aa-6656316d35a2> /Users/USER/*/libpandaexpress.1.11.dylib
       0x105818000 -        0x106083fff libpanda.1.11.dylib (*) <c964a632-f805-302f-9a59-9005f012136d> /Users/USER/*/libpanda.1.11.dylib
       0x104aa8000 -        0x10538bfff core.cpython-39-darwin.so (*) <15e27da3-78a7-3b2b-8f40-b66c00276db3> /Users/USER/*/core.cpython-39-darwin.so
       0x102884000 -        0x102b7ffff python3.9 (*) <b27ab15f-6ebb-30fe-be15-749deebbf686> /Users/USER/*/python3.9
       0x102ce0000 -        0x102d3ffff dyld (*) <fbb89662-e6f2-3434-b542-f75185ac5e74> /usr/lib/dyld
       0x1a6c13000 -        0x1a6c4afff libsystem_kernel.dylib (*) <1d7b3b8e-75a1-34ea-aa52-9f7c23155c55> /usr/lib/system/libsystem_kernel.dylib
       0x1a6a8a000 -        0x1a6ad0fff libdispatch.dylib (*) <dc048e3b-e023-3d17-afe5-4ff3dc625608> /usr/lib/system/libdispatch.dylib
       0x1abdf4000 -        0x1ac1c8fff com.apple.SkyLight (1.600.0) <2385383b-3d2c-39c8-b872-2b218b911ad3> /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight
       0x1a6c4b000 -        0x1a6c57fff libsystem_pthread.dylib (*) <cee8bc77-6923-34d9-89a3-6f8f7279605e> /usr/lib/system/libsystem_pthread.dylib
       0x1af688000 -        0x1af6aefff com.apple.audio.caulk (1.0) <23d0d7ce-cb87-35f3-9c15-943bd8f6645a> /System/Library/PrivateFrameworks/caulk.framework/Versions/A/caulk
       0x1a862a000 -        0x1a8d4cfff com.apple.audio.CoreAudio (5.0) <51dd4b50-d2b2-31e7-acae-f662748a2d2b> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
       0x10325c000 -        0x103277fff libp3dtoolconfig.1.11.dylib (*) <e3c2a812-a8ff-352a-a096-3bb8881568e9> /Users/USER/*/libp3dtoolconfig.1.11.dylib
       0x1a983a000 -        0x1aa6f1fff com.apple.AppKit (6.9) <465b9570-6646-31ea-a082-ab0dfa538966> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x10444c000 -        0x1044cffff libpandagl.dylib (*) <8489ae12-3921-39c4-b368-27229aac95c5> /Users/USER/*/libpandagl.dylib
       0x1ae2dc000 -        0x1ae339fff com.apple.CoreVideo (1.8) <f988dbd8-b383-38c8-a141-f80e0252430e> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
       0x1a6c9a000 -        0x1a71dffff com.apple.CoreFoundation (6.9) <8e1809ff-f5b1-3d9e-be15-f2e7b1d8ce51> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)
Writable regions: Total=1.1G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.1G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               256K        2 
Activity Tracing                   256K        1 
CG backing stores                 2560K        4 
CG image                            96K        3 
ColorSync                          576K       25 
CoreAnimation                      160K        8 
CoreGraphics                        32K        2 
CoreUI image data                 1088K        7 
Foundation                          16K        1 
Kernel Alloc Once                   32K        1 
MALLOC                           256.3M       43 
MALLOC guard page                  192K       10 
MALLOC_MEDIUM (reserved)         448.0M        4         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
STACK GUARD                        176K       11 
Stack                             28.3M       11 
VM_ALLOCATE                       14.3M       71 
VM_ALLOCATE (reserved)              32K        1         reserved VM address space (unallocated)
__AUTH                            2473K      277 
__AUTH_CONST                      19.1M      464 
__DATA                            17.1M      491 
__DATA_CONST                      18.2M      502 
__DATA_DIRTY                      1706K      197 
__FONT_DATA                          4K        1 
__GLSLBUILTINS                    5176K        1 
__LINKEDIT                       593.1M       37 
__OBJC_CONST                      3309K      250 
__OBJC_RO                         82.9M        1 
__OBJC_RW                         3152K        1 
__TEXT                           505.7M      520 
__UNICODE                          592K        1 
dyld private memory               1024K        1 
mapped file                       81.6M       21 
shared memory                      880K       15 
===========                     =======  ======= 
TOTAL                              2.4G     2986 
TOTAL, minus reserved VM space     1.6G     2986 



-----------
Full Report
-----------

{"app_name":"python3.9","timestamp":"2022-03-27 17:04:52.00 +0200","app_version":"","slice_uuid":"b27ab15f-6ebb-30fe-be15-749deebbf686","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 12.3 (21E230)","incident_id":"8D7FFF8E-B4B7-40AF-BD1F-F813CFB5DE23","name":"python3.9"}
{
  "uptime" : 40000,
  "procLaunch" : "2022-03-27 17:04:51.8352 +0200",
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookAir10,1",
  "procStartAbsTime" : 965913555391,
  "coalitionID" : 17876,
  "osVersion" : {
    "train" : "macOS 12.3",
    "build" : "21E230",
    "releaseType" : "User"
  },
  "captureTime" : "2022-03-27 17:04:52.1419 +0200",
  "incident" : "8D7FFF8E-B4B7-40AF-BD1F-F813CFB5DE23",
  "bug_type" : "309",
  "pid" : 45831,
  "procExitAbsTime" : 965920889858,
  "translated" : false,
  "cpuType" : "ARM-64",
  "procName" : "python3.9",
  "procPath" : "\/Users\/USER\/*\/python3",
  "parentProc" : "zsh",
  "parentPid" : 28784,
  "coalitionName" : "com.apple.Terminal",
  "crashReporterKey" : "B37431B5-E06C-54D5-08F3-A7B3BDDFCD83",
  "responsiblePid" : 28782,
  "responsibleProc" : "Terminal",
  "wakeTime" : 6775,
  "sleepWakeUUID" : "C341BE7A-A3D4-4B4F-948C-DF350AEC4C13",
  "sip" : "enabled",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000001, 0x00000001a9bc5ae8","rawCodes":[1,7142660840],"type":"EXC_BREAKPOINT","signal":"SIGTRAP"},
  "termination" : {"flags":0,"code":5,"namespace":"SIGNAL","indicator":"Trace\/BPT trap: 5","byProc":"exc handler","byPid":45831},
  "asi" : {"libsystem_c.dylib":["-[NSOpenGLContext update] must be called from the main thread if the context has a view."]},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 6,
  "threads" : [{"id":683120,"queue":"com.apple.main-thread","frames":[{"imageOffset":132712,"symbol":"TypeRegistry::rebuild_derivations()","symbolLocation":176,"imageIndex":0},{"imageOffset":132688,"symbol":"TypeRegistry::rebuild_derivations()","symbolLocation":152,"imageIndex":0},{"imageOffset":128832,"symbol":"TypeRegistry::is_derived_from(TypeHandle, TypeHandle, TypedObject*)","symbolLocation":192,"imageIndex":0},{"imageOffset":109424,"symbol":"_dcast_verify(TypeHandle, unsigned long, TypedObject const*)","symbolLocation":128,"imageIndex":1},{"imageOffset":2523680,"symbol":"CollisionLevelState<BitMask<unsigned long long, 64> >::apply_transform()","symbolLocation":1380,"imageIndex":2},{"imageOffset":2487732,"symbol":"CollisionTraverser::r_traverse_single(CollisionLevelState<BitMask<unsigned long long, 64> >&, unsigned long)","symbolLocation":52,"imageIndex":2},{"imageOffset":2494772,"symbol":"CollisionTraverser::r_traverse_single(CollisionLevelState<BitMask<unsigned long long, 64> >&, unsigned long)","symbolLocation":7092,"imageIndex":2},{"imageOffset":2494772,"symbol":"CollisionTraverser::r_traverse_single(CollisionLevelState<BitMask<unsigned long long, 64> >&, unsigned long)","symbolLocation":7092,"imageIndex":2},{"imageOffset":2494772,"symbol":"CollisionTraverser::r_traverse_single(CollisionLevelState<BitMask<unsigned long long, 64> >&, unsigned long)","symbolLocation":7092,"imageIndex":2},{"imageOffset":2479596,"symbol":"CollisionTraverser::traverse(NodePath const&)","symbolLocation":616,"imageIndex":2},{"imageOffset":2114392,"symbol":"Dtool_CollisionTraverser_traverse_115(_object*, _object*)","symbolLocation":184,"imageIndex":3},{"imageOffset":422060,"symbol":"method_vectorcall_O","symbolLocation":168,"imageIndex":4},{"imageOffset":1469008,"symbol":"call_function","symbolLocation":372,"imageIndex":4},{"imageOffset":1455380,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":28884,"imageIndex":4},{"imageOffset":1424720,"symbol":"_PyEval_EvalCode","symbolLocation":3076,"imageIndex":4},{"imageOffset":368948,"symbol":"_PyFunction_Vectorcall","symbolLocation":244,"imageIndex":4},{"imageOffset":1469008,"symbol":"call_function","symbolLocation":372,"imageIndex":4},{"imageOffset":1455380,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":28884,"imageIndex":4},{"imageOffset":1424720,"symbol":"_PyEval_EvalCode","symbolLocation":3076,"imageIndex":4},{"imageOffset":368948,"symbol":"_PyFunction_Vectorcall","symbolLocation":244,"imageIndex":4},{"imageOffset":380532,"symbol":"method_vectorcall","symbolLocation":516,"imageIndex":4},{"imageOffset":5655060,"symbol":"PythonThread::call_python_func(_object*, _object*)","symbolLocation":188,"imageIndex":3},{"imageOffset":5675296,"symbol":"PythonTask::do_python_task()","symbolLocation":256,"imageIndex":3},{"imageOffset":5675012,"symbol":"PythonTask::do_task()","symbolLocation":32,"imageIndex":3},{"imageOffset":3085136,"symbol":"AsyncTask::unlock_and_do_task()","symbolLocation":300,"imageIndex":2},{"imageOffset":3100848,"symbol":"AsyncTaskChain::service_one_task(AsyncTaskChain::AsyncTaskChainThread*)","symbolLocation":504,"imageIndex":2},{"imageOffset":3097364,"symbol":"AsyncTaskChain::do_poll()","symbolLocation":424,"imageIndex":2},{"imageOffset":3125896,"symbol":"AsyncTaskManager::poll()","symbolLocation":68,"imageIndex":2},{"imageOffset":2592716,"symbol":"Dtool_AsyncTaskManager_poll_139(_object*, _object*)","symbolLocation":60,"imageIndex":3},{"imageOffset":421708,"symbol":"method_vectorcall_NOARGS","symbolLocation":172,"imageIndex":4},{"imageOffset":1469008,"symbol":"call_function","symbolLocation":372,"imageIndex":4},{"imageOffset":1455380,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":28884,"imageIndex":4},{"imageOffset":369076,"symbol":"function_code_fastcall","symbolLocation":116,"imageIndex":4},{"imageOffset":1469008,"symbol":"call_function","symbolLocation":372,"imageIndex":4},{"imageOffset":1455380,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":28884,"imageIndex":4},{"imageOffset":1424720,"symbol":"_PyEval_EvalCode","symbolLocation":3076,"imageIndex":4},{"imageOffset":368948,"symbol":"_PyFunction_Vectorcall","symbolLocation":244,"imageIndex":4},{"imageOffset":1469008,"symbol":"call_function","symbolLocation":372,"imageIndex":4},{"imageOffset":1455380,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":28884,"imageIndex":4},{"imageOffset":369076,"symbol":"function_code_fastcall","symbolLocation":116,"imageIndex":4},{"imageOffset":1469008,"symbol":"call_function","symbolLocation":372,"imageIndex":4},{"imageOffset":1455380,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":28884,"imageIndex":4},{"imageOffset":369076,"symbol":"function_code_fastcall","symbolLocation":116,"imageIndex":4},{"imageOffset":366760,"symbol":"_PyObject_FastCallDictTstate","symbolLocation":280,"imageIndex":4},{"imageOffset":369840,"symbol":"_PyObject_Call_Prepend","symbolLocation":164,"imageIndex":4},{"imageOffset":864408,"symbol":"slot_tp_init","symbolLocation":380,"imageIndex":4},{"imageOffset":923596,"symbol":"type_call","symbolLocation":344,"imageIndex":4},{"imageOffset":366192,"symbol":"_PyObject_MakeTpCall","symbolLocation":348,"imageIndex":4},{"imageOffset":1469360,"symbol":"call_function","symbolLocation":724,"imageIndex":4},{"imageOffset":1455536,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":29040,"imageIndex":4},{"imageOffset":1424720,"symbol":"_PyEval_EvalCode","symbolLocation":3076,"imageIndex":4},{"imageOffset":1826476,"symbol":"pyrun_file","symbolLocation":376,"imageIndex":4},{"imageOffset":1823816,"symbol":"PyRun_SimpleFileExFlags","symbolLocation":788,"imageIndex":4},{"imageOffset":1965376,"symbol":"Py_RunMain","symbolLocation":2788,"imageIndex":4},{"imageOffset":1969664,"symbol":"pymain_main","symbolLocation":1256,"imageIndex":4},{"imageOffset":7324,"symbol":"main","symbolLocation":40,"imageIndex":4},{"imageOffset":20616,"symbol":"start","symbolLocation":516,"imageIndex":5}]},{"id":683129,"queue":"NSCGSDisableUpdates","frames":[{"imageOffset":6436,"symbol":"semaphore_timedwait_trap","symbolLocation":8,"imageIndex":6},{"imageOffset":18376,"symbol":"_dispatch_sema4_timedwait","symbolLocation":64,"imageIndex":7},{"imageOffset":19900,"symbol":"_dispatch_semaphore_wait_slow","symbolLocation":76,"imageIndex":7},{"imageOffset":422540,"symbol":"CGSUpdateManager::enable_updates_common()","symbolLocation":948,"imageIndex":8},{"imageOffset":425436,"symbol":"SLSReenableUpdateTokenWithSeed","symbolLocation":124,"imageIndex":8},{"imageOffset":9732,"symbol":"_dispatch_call_block_and_release","symbolLocation":32,"imageIndex":7},{"imageOffset":16840,"symbol":"_dispatch_client_callout","symbolLocation":20,"imageIndex":7},{"imageOffset":47272,"symbol":"_dispatch_lane_serial_drain","symbolLocation":668,"imageIndex":7},{"imageOffset":50180,"symbol":"_dispatch_lane_invoke","symbolLocation":392,"imageIndex":7},{"imageOffset":93336,"symbol":"_dispatch_workloop_worker_thread","symbolLocation":648,"imageIndex":7},{"imageOffset":13152,"symbol":"_pthread_wqthread","symbolLocation":288,"imageIndex":9},{"imageOffset":8320,"symbol":"start_wqthread","symbolLocation":8,"imageIndex":9}]},{"id":683130,"queue":"com.apple.SkyLight.UpdateManager.SerialSema","frames":[{"imageOffset":6412,"symbol":"semaphore_wait_trap","symbolLocation":8,"imageIndex":6},{"imageOffset":423004,"symbol":"invocation function for block in (anonymous namespace)::InterprocessSerialSemaphore::asyncWait(void (int) block_pointer)","symbolLocation":40,"imageIndex":8},{"imageOffset":9732,"symbol":"_dispatch_call_block_and_release","symbolLocation":32,"imageIndex":7},{"imageOffset":16840,"symbol":"_dispatch_client_callout","symbolLocation":20,"imageIndex":7},{"imageOffset":47272,"symbol":"_dispatch_lane_serial_drain","symbolLocation":668,"imageIndex":7},{"imageOffset":50180,"symbol":"_dispatch_lane_invoke","symbolLocation":392,"imageIndex":7},{"imageOffset":93336,"symbol":"_dispatch_workloop_worker_thread","symbolLocation":648,"imageIndex":7},{"imageOffset":13152,"symbol":"_pthread_wqthread","symbolLocation":288,"imageIndex":9},{"imageOffset":8320,"symbol":"start_wqthread","symbolLocation":8,"imageIndex":9}]},{"id":683131,"name":"AMCP Logging Spool","frames":[{"imageOffset":6412,"symbol":"semaphore_wait_trap","symbolLocation":8,"imageIndex":6},{"imageOffset":125484,"symbol":"caulk::mach::semaphore::wait_or_error()","symbolLocation":28,"imageIndex":10},{"imageOffset":10108,"symbol":"caulk::concurrent::details::worker_thread::run()","symbolLocation":56,"imageIndex":10},{"imageOffset":9116,"symbol":"void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*> > >(void*)","symbolLocation":96,"imageIndex":10},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":9},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":9}]},{"id":683140,"name":"com.apple.audio.IOThread.client","frames":[{"imageOffset":6352,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":6},{"imageOffset":7488,"symbol":"mach_msg","symbolLocation":76,"imageIndex":6},{"imageOffset":3361344,"symbol":"HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int)","symbolLocation":104,"imageIndex":11},{"imageOffset":1842384,"symbol":"HALC_ProxyIOContext::IOWorkLoop()","symbolLocation":3396,"imageIndex":11},{"imageOffset":1837456,"symbol":"invocation function for block in HALC_ProxyIOContext::HALC_ProxyIOContext(unsigned int, unsigned int)","symbolLocation":100,"imageIndex":11},{"imageOffset":3722848,"symbol":"HALB_IOThread::Entry(void*)","symbolLocation":88,"imageIndex":11},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":9},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":9}]},{"id":683174,"frames":[{"imageOffset":18732,"symbol":"__psynch_mutexdrop","symbolLocation":8,"imageIndex":6},{"imageOffset":17396,"symbol":"_pthread_mutex_firstfit_wake","symbolLocation":28,"imageIndex":9},{"imageOffset":8192,"symbol":"_pthread_mutex_firstfit_unlock_slow","symbolLocation":252,"imageIndex":9},{"imageOffset":55244,"symbol":"ConfigVariableBool::reload_value() const","symbolLocation":228,"imageIndex":12},{"imageOffset":601364,"symbol":"CullTraverser::set_scene(SceneSetup*, GraphicsStateGuardianBase*, bool)","symbolLocation":536,"imageIndex":2},{"imageOffset":2804784,"symbol":"GraphicsEngine::do_cull(CullHandler*, SceneSetup*, GraphicsStateGuardian*, Thread*)","symbolLocation":136,"imageIndex":2},{"imageOffset":2872040,"symbol":"GraphicsEngine::cull_to_bins(GraphicsOutput*, GraphicsStateGuardian*, DisplayRegion*, SceneSetup*, CullResult*, Thread*)","symbolLocation":324,"imageIndex":2},{"imageOffset":2869572,"symbol":"GraphicsEngine::cull_to_bins(ov_set<PointerTo<GraphicsOutput>, IndirectLess<GraphicsOutput>, pvector<PointerTo<GraphicsOutput> > >, Thread*)","symbolLocation":2268,"imageIndex":2},{"imageOffset":2848796,"symbol":"GraphicsEngine::WindowRenderer::do_frame(GraphicsEngine*, Thread*)","symbolLocation":212,"imageIndex":2},{"imageOffset":2884324,"symbol":"GraphicsEngine::RenderThread::thread_main()","symbolLocation":236,"imageIndex":2},{"imageOffset":3064620,"symbol":"ThreadPosixImpl::root_func(void*)","symbolLocation":100,"imageIndex":2},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":9},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":9}]},{"triggered":true,"id":683175,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":6596104365950828545},{"value":6596104365950828545},{"value":18446744066618684555},{"value":0},{"value":2233522171},{"value":86036480},{"value":85983232},{"value":7152351272,"symbolLocation":74877,"symbol":"__NSStyleNameIndexTable"},{"value":18446744073709551604},{"value":8601206480},{"value":0},{"value":105553177270560},{"value":5166668928},{"value":105553177270568},{"value":0},{"value":5176375824},{"value":4367147008,"symbolLocation":72,"symbol":"_OBJC_$_PROTOCOL_INSTANCE_METHODS_OPT_NSApplicationDelegate"},{"value":4396383472,"symbolLocation":0,"symbol":"GraphicsOutput::_make_current_pcollector"},{"value":4396380208,"symbolLocation":0,"symbol":"display_cat"},{"value":5176375824},{"value":5176088080}],"flavor":"ARM_THREAD_STATE64","lr":{"value":5837368811656600296},"cpsr":{"value":1610616832},"fp":{"value":6140193920},"sp":{"value":6140193856},"esr":{"value":4060086273,"description":"(Breakpoint) brk 1"},"pc":{"value":7142660840,"matchesCrashFrame":1},"far":{"value":4475568128}},"frames":[{"imageOffset":3717864,"symbol":"-[NSOpenGLContext update]","symbolLocation":480,"imageIndex":13},{"imageOffset":3717864,"symbol":"-[NSOpenGLContext update]","symbolLocation":480,"imageIndex":13},{"imageOffset":420036,"symbol":"CocoaGraphicsWindow::begin_frame(GraphicsOutput::FrameMode, Thread*)","symbolLocation":436,"imageIndex":14},{"imageOffset":2873336,"symbol":"GraphicsEngine::draw_bins(ov_set<PointerTo<GraphicsOutput>, IndirectLess<GraphicsOutput>, pvector<PointerTo<GraphicsOutput> > > const&, Thread*)","symbolLocation":360,"imageIndex":2},{"imageOffset":2849224,"symbol":"GraphicsEngine::WindowRenderer::do_frame(GraphicsEngine*, Thread*)","symbolLocation":640,"imageIndex":2},{"imageOffset":2884324,"symbol":"GraphicsEngine::RenderThread::thread_main()","symbolLocation":236,"imageIndex":2},{"imageOffset":3064620,"symbol":"ThreadPosixImpl::root_func(void*)","symbolLocation":100,"imageIndex":2},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":9},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":9}]},{"id":683179,"name":"CVDisplayLink","frames":[{"imageOffset":21136,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":6},{"imageOffset":30824,"symbol":"_pthread_cond_wait","symbolLocation":1280,"imageIndex":9},{"imageOffset":15260,"symbol":"CVDisplayLink::waitUntil(unsigned long long)","symbolLocation":324,"imageIndex":15},{"imageOffset":11980,"symbol":"CVDisplayLink::runIOThread()","symbolLocation":488,"imageIndex":15},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":9},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":9}]},{"id":683182,"frames":[{"imageOffset":8312,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":9}]},{"id":683184,"frames":[{"imageOffset":8312,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":9}]},{"id":683186,"name":"com.apple.NSEventThread","frames":[{"imageOffset":6352,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":6},{"imageOffset":7488,"symbol":"mach_msg","symbolLocation":76,"imageIndex":6},{"imageOffset":543772,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":372,"imageIndex":16},{"imageOffset":536780,"symbol":"__CFRunLoopRun","symbolLocation":1180,"imageIndex":16},{"imageOffset":533648,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":16},{"imageOffset":1763220,"symbol":"_NSEventThread","symbolLocation":196,"imageIndex":13},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":9},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":9}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4346789888,
    "size" : 180224,
    "uuid" : "17e2f6d5-c086-34ce-b069-4072466787bc",
    "path" : "\/Users\/USER\/*\/libp3dtool.1.11.dylib",
    "name" : "libp3dtool.1.11.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4348985344,
    "size" : 524288,
    "uuid" : "8f38eb08-c379-311b-a5aa-6656316d35a2",
    "path" : "\/Users\/USER\/*\/libpandaexpress.1.11.dylib",
    "name" : "libpandaexpress.1.11.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4387340288,
    "size" : 8830976,
    "uuid" : "c964a632-f805-302f-9a59-9005f012136d",
    "path" : "\/Users\/USER\/*\/libpanda.1.11.dylib",
    "name" : "libpanda.1.11.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4373250048,
    "size" : 9322496,
    "uuid" : "15e27da3-78a7-3b2b-8f40-b66c00276db3",
    "path" : "\/Users\/USER\/*\/core.cpython-39-darwin.so",
    "name" : "core.cpython-39-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4337451008,
    "size" : 3129344,
    "uuid" : "b27ab15f-6ebb-30fe-be15-749deebbf686",
    "path" : "\/Users\/USER\/*\/python3.9",
    "name" : "python3.9"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4342022144,
    "size" : 393216,
    "uuid" : "fbb89662-e6f2-3434-b542-f75185ac5e74",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7092645888,
    "size" : 229376,
    "uuid" : "1d7b3b8e-75a1-34ea-aa52-9f7c23155c55",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7091036160,
    "size" : 290816,
    "uuid" : "dc048e3b-e023-3d17-afe5-4ff3dc625608",
    "path" : "\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7178502144,
    "CFBundleShortVersionString" : "1.600.0",
    "CFBundleIdentifier" : "com.apple.SkyLight",
    "size" : 4018176,
    "uuid" : "2385383b-3d2c-39c8-b872-2b218b911ad3",
    "path" : "\/System\/Library\/PrivateFrameworks\/SkyLight.framework\/Versions\/A\/SkyLight",
    "name" : "SkyLight"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7092875264,
    "size" : 53248,
    "uuid" : "cee8bc77-6923-34d9-89a3-6f8f7279605e",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7237828608,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "com.apple.audio.caulk",
    "size" : 159744,
    "uuid" : "23d0d7ce-cb87-35f3-9c15-943bd8f6645a",
    "path" : "\/System\/Library\/PrivateFrameworks\/caulk.framework\/Versions\/A\/caulk",
    "name" : "caulk"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7120003072,
    "CFBundleShortVersionString" : "5.0",
    "CFBundleIdentifier" : "com.apple.audio.CoreAudio",
    "size" : 7483392,
    "uuid" : "51dd4b50-d2b2-31e7-acae-f662748a2d2b",
    "path" : "\/System\/Library\/Frameworks\/CoreAudio.framework\/Versions\/A\/CoreAudio",
    "name" : "CoreAudio",
    "CFBundleVersion" : "5.0"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4347772928,
    "size" : 114688,
    "uuid" : "e3c2a812-a8ff-352a-a096-3bb8881568e9",
    "path" : "\/Users\/USER\/*\/libp3dtoolconfig.1.11.dylib",
    "name" : "libp3dtoolconfig.1.11.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7138942976,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 15433728,
    "uuid" : "465b9570-6646-31ea-a082-ab0dfa538966",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2113.40.126"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4366581760,
    "size" : 540672,
    "uuid" : "8489ae12-3921-39c4-b368-27229aac95c5",
    "path" : "\/Users\/USER\/*\/libpandagl.dylib",
    "name" : "libpandagl.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7217201152,
    "CFBundleShortVersionString" : "1.8",
    "CFBundleIdentifier" : "com.apple.CoreVideo",
    "size" : 385024,
    "uuid" : "f988dbd8-b383-38c8-a141-f80e0252430e",
    "path" : "\/System\/Library\/Frameworks\/CoreVideo.framework\/Versions\/A\/CoreVideo",
    "name" : "CoreVideo",
    "CFBundleVersion" : "0.0"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7093198848,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5529600,
    "uuid" : "8e1809ff-f5b1-3d9e-be15-f2e7b1d8ce51",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1858.112"
  }
],
  "sharedCache" : {
  "base" : 7089586176,
  "size" : 3136438272,
  "uuid" : "00edbaf8-9281-3f26-b94f-e6a315e3a659"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)\nWritable regions: Total=1.1G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.1G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               256K        2 \nActivity Tracing                   256K        1 \nCG backing stores                 2560K        4 \nCG image                            96K        3 \nColorSync                          576K       25 \nCoreAnimation                      160K        8 \nCoreGraphics                        32K        2 \nCoreUI image data                 1088K        7 \nFoundation                          16K        1 \nKernel Alloc Once                   32K        1 \nMALLOC                           256.3M       43 \nMALLOC guard page                  192K       10 \nMALLOC_MEDIUM (reserved)         448.0M        4         reserved VM address space (unallocated)\nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSTACK GUARD                        176K       11 \nStack                             28.3M       11 \nVM_ALLOCATE                       14.3M       71 \nVM_ALLOCATE (reserved)              32K        1         reserved VM address space (unallocated)\n__AUTH                            2473K      277 \n__AUTH_CONST                      19.1M      464 \n__DATA                            17.1M      491 \n__DATA_CONST                      18.2M      502 \n__DATA_DIRTY                      1706K      197 \n__FONT_DATA                          4K        1 \n__GLSLBUILTINS                    5176K        1 \n__LINKEDIT                       593.1M       37 \n__OBJC_CONST                      3309K      250 \n__OBJC_RO                         82.9M        1 \n__OBJC_RW                         3152K        1 \n__TEXT                           505.7M      520 \n__UNICODE                          592K        1 \ndyld private memory               1024K        1 \nmapped file                       81.6M       21 \nshared memory                      880K       15 \n===========                     =======  ======= \nTOTAL                              2.4G     2986 \nTOTAL, minus reserved VM space     1.6G     2986 \n",
  "legacyInfo" : {
  "threadTriggered" : {

  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "6112e14f37f5d11121dcd519",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "62265b250683fd69cdcf0e26"
      },
      "deploymentId" : 240000068
    },
    {
      "rolloutId" : "60da5e84ab0ca017dace9abf",
      "factorPackIds" : {

      },
      "deploymentId" : 240000008
    }
  ],
  "experiments" : [

  ]
}
}
@rdb rdb added the bug label May 3, 2022
@rdb rdb added this to the 1.10.12 milestone May 3, 2022
@rdb rdb modified the milestones: 1.10.12, 1.10.13 Aug 31, 2022
@rdb
Copy link
Member

rdb commented Oct 26, 2022

I assume that this:

-[NSOpenGLContext update] must be called from the main thread if the context has a view.

is a changed requirement in a newer macOS version.

This sounds like it makes the multi-threaded pipeline impossible. We have to update the context for the thread it's in according to the Apple documentation, but if that must be the main thread, we can't draw on a different thread than the main thread.

I don't have a recent enough mac that is able to run macOS 12.0, my mac is too old to even install the XCode that I need to be able to use the macOS 12 SDK. So there's no way for me to fix this.

Can you use a version of Panda3D built targeting an older macOS version?

@rdb rdb added the macos label Oct 26, 2022
@rdb rdb removed this from the 1.10.13 milestone Oct 26, 2022
@kamgha
Copy link
Contributor Author

kamgha commented Oct 28, 2022

Can you use a version of Panda3D built targeting an older macOS version?

Using the "Installer for OS X 10.9+" from the downloads page https://www.panda3d.org/download/sdk-1-10-12/ works.

I suppose that makepanda targets 10.9 (x86_64) and 11.0 (arm64) https://github.com/panda3d/panda3d/blob/master/makepanda/makepanda.py#L352-L356 .

@rdb
Copy link
Member

rdb commented Oct 28, 2022

So, maybe we can build the arm64 build with target 10.9 and also activate the old Cocoa behaviour?

@rdb rdb added this to the 1.10.13 milestone Oct 29, 2022
@rdb
Copy link
Member

rdb commented Oct 29, 2022

It looks like we can get away with updating the context in another thread just fine. So, going to check in a fix that updates the context on the main thread.

@rdb rdb closed this as completed in 4cf8187 Oct 31, 2022
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