-
-
Notifications
You must be signed in to change notification settings - Fork 23.8k
Open
Labels
Description
Tested versions
4.5 - but the bug is present in master
System information
iOS
Issue description
iOS, happens during engine shutdown sometimes.
Steps to reproduce
Hard to reproduce, this comes from aggregated crashes in the wild.
Stack
Crashed: Godot Main Thread [instance #2]
0 Xogot 0x7382f54 RendererCanvasRenderRD::_canvas_texture_invalidation_callback(bool, void*) + 2983 (renderer_canvas_render_rd.cpp:2983)
1 Xogot 0x7382f40 RendererCanvasRenderRD::_canvas_texture_invalidation_callback(bool, void*) + 150 (local_vector.h:150)
2 Xogot 0x75ccdcc RID_Alloc<RendererRD::TextureStorage::CanvasTexture, true>::~RID_Alloc() + 4459335116
3 Xogot 0x75bbea8 RendererRD::TextureStorage::~TextureStorage() + 4459265704
4 Xogot 0x738e554 RendererCompositorRD::finalize() + 143 (memory.h:143)
5 Xogot 0x722f830 RenderingServerDefault::_finish() + 355 (instance_state.h:355)
6 Xogot 0x12a5690 finalize_display() + 355 (instance_state.h:355)
7 Xogot 0x12df3d8 Main::cleanup(bool) + 355 (instance_state.h:355)
8 Xogot 0x129de0c std::__1::__function::__func<libgodot_destroy_godot_instance::$_0, std::__1::allocator<libgodot_destroy_godot_instance::$_0>, void ()>::operator()() + 204 (libgodot_ios.mm:204)
9 Xogot 0x816a024 TaskExecutor::invokeCallback(void*) + 395 (function.h:395)
10 Xogot 0x277d44 ThreadExecutor.main() + 170 (GodotAppView.swift:170)
11 Xogot 0x277e64 @objc ThreadExecutor.main() + 4338400868 (<compiler-generated>:4338400868)
12 Foundation 0x61d3c __NSThread__start__ + 732
13 libsystem_pthread.dylib 0x444c _pthread_start + 136
14 libsystem_pthread.dylib 0x8cc thread_start + 8
Minimal reproduction project (MRP)
No repro, just repeated open/close.