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

Crash when force closing the app and using two different plugins #7

Open
ZhangWei-bi opened this issue Jan 23, 2023 · 0 comments
Open

Comments

@ZhangWei-bi
Copy link

Create two plugins with this, when I close the app by swiping up, I get a crash. Here is the stacktrace, I also attached examples:

I'm using Godot 3.5.1, osx 12.2 m1, iOS 15.7, xcode 13.2.1

#6	0x0000000101e7de68 in Memory::free_static(void*, bool) at /Users/eric/Documents/godot/core/os/memory.cpp:168
#7	0x00000001005d7bdc in godot_ios_plugins_deinitialize() at /Users/eric/Documents/BiAiChat/ios/BiAiChat/dummy.cpp:53
#8	0x0000000100cef4bc in unregister_iphone_api() at /Users/eric/Documents/godot/platform/iphone/api/api.cpp:40
#9	0x0000000100cf395c in unregister_platform_apis() at /Users/eric/Documents/godot/platform/register_platform_apis.gen.cpp:14
#10	0x0000000100612c70 in Main::cleanup(bool) at /Users/eric/Documents/godot/main/main.cpp:2475
#11	0x00000001005d8310 in iphone_finish() at /Users/eric/Documents/godot/platform/iphone/godot_iphone.mm:118
#12	0x00000001005df2bc in -[AppDelegate applicationWillTerminate:] at /Users/eric/Documents/godot/platform/iphone/app_delegate.mm:127
#13	0x00000001005ee004 in -[GodotApplicalitionDelegate applicationWillTerminate:] at /Users/eric/Documents/godot/platform/iphone/godot_app_delegate.m:173
#14	0x00000001837ac5f8 in -[UIApplication _terminateWithStatus:] ()


2023-01-22 20:29:11.639177-0500 plugin1[20629:8244878] deinitialize object
plugin1(20629,0x1044b0580) malloc: *** error for object 0x104735980: pointer being freed was not allocated
plugin1(20629,0x1044b0580) malloc: *** set a breakpoint in malloc_error_break to debug
dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib:/Developer/Library/PrivateFrameworks/GPUTools.framework/libglInterpose.dylib
(lldb) 

godotProject.zip
plugin1.zip
plugin2.zip

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

No branches or pull requests

1 participant