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

my app freeze on iOS 13 due to the routes #376

Open
LeeMaZong opened this issue Dec 19, 2019 · 9 comments
Open

my app freeze on iOS 13 due to the routes #376

LeeMaZong opened this issue Dec 19, 2019 · 9 comments

Comments

@LeeMaZong
Copy link

Hello and thanks for your work on TKCustomMap.

I use a TKCustomMap with routes, all is ok on Android and iOS until 12.4 but not on iOS 13 (only the 13 and more) there is a problem.

The problem is when I go in a page with the map and routes, I can open this page go back, open again this page between 5 and 10 times but after that my app freezes.
I give you the error stack of my application output at the end.

I found this on the web witch looks like our issue:
https://forums.xamarin.com/discussion/171095/xamarin-ios-application-freezes-on-ios-13

when I don't show any routes all the application is OK in iOS 13.

=================================================================
Native Crash Reporting

Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.

=================================================================
Native stacktrace:

0x106d88bf5 - /Users/mon_macbook/Library/Developer/CoreSimulator/Devices/0234B296-F0EF-45C9-9A69-1A50AD3D008A/data/Containers/Bundle/Application/DB8BCF18-C830-4953-A333-504017AFF1AF/MasterDetailPageNavigationiOS.app/MasterDetailPageNavigationiOS : mono_dump_native_crash_info
0x106d7cb25 - /Users/mon_macbook/Library/Developer/CoreSimulator/Devices/0234B296-F0EF-45C9-9A69-1A50AD3D008A/data/Containers/Bundle/Application/DB8BCF18-C830-4953-A333-504017AFF1AF/MasterDetailPageNavigationiOS.app/MasterDetailPageNavigationiOS : mono_handle_native_crash
0x106d8fe71 - /Users/mon_macbook/Library/Developer/CoreSimulator/Devices/0234B296-F0EF-45C9-9A69-1A50AD3D008A/data/Containers/Bundle/Application/DB8BCF18-C830-4953-A333-504017AFF1AF/MasterDetailPageNavigationiOS.app/MasterDetailPageNavigationiOS : mono_sigsegv_signal_handler_debug
0x7fff51bf9b1d - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_platform.dylib : _sigtramp
0x7fff89cc9908 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib : _ZN12_GLOBAL__N_113SideTablesMapE
0x7fff48705f0b - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/VectorKit.framework/VectorKit : _ZNSt3__110shared_ptrIN3ggl6BufferEED2Ev
0x7fff4894f487 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/VectorKit.framework/VectorKit : _ZNSt3__110shared_ptrIN3ggl17ConstantDataTypedINS1_12OffsetRibbon5StyleEEEED2Ev
0x7fff48b26dfd - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/VectorKit.framework/VectorKit : _ZNSt3__120__shared_ptr_emplaceIN2md20PolylineOverlayStyleENS_9allocatorIS2_EEE16__on_zero_sharedEv
0x7fff4894f38b - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/VectorKit.framework/VectorKit : _ZNSt3__110shared_ptrIN2md20PolylineOverlayStyleEED2Ev
0x7fff50b96f02 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib : _ZL27object_cxxDestructFromClassP11objc_objectP10objc_class
0x7fff50ba64b3 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib : objc_destructInstance
0x7fff50bac94f - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib : -[NSObject dealloc]
0x7fff48b24f8c - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/VectorKit.framework/VectorKit : -[VKVectorOverlayPolylineGroup dealloc]
0x7fff50bad0d6 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib : _ZN11objc_object17sidetable_releaseEb
0x7fff50b96f02 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib : _ZL27object_cxxDestructFromClassP11objc_objectP10objc_class
0x7fff50ba64b3 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib : objc_destructInstance
0x7fff50bac94f - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib : -[NSObject dealloc]
0x7fff276a847c - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/MapKit.framework/MapKit : -[MKOverlayRenderer dealloc]
0x7fff276a83c5 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/MapKit.framework/MapKit : -[MKOverlayPathRenderer dealloc]
0x7fff50bad0d6 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib : _ZN11objc_object17sidetable_releaseEb
0x106fdf57d - /Users/mon_macbook/Library/Developer/CoreSimulator/Devices/0234B296-F0EF-45C9-9A69-1A50AD3D008A/data/Containers/Bundle/Application/DB8BCF18-C830-4953-A333-504017AFF1AF/MasterDetailPageNavigationiOS.app/MasterDetailPageNavigationiOS : xamarin_release_managed_ref
0x10e8b9a1c - Unknown
0x10f5aefb9 - Unknown
0x106d93255 - /Users/mon_macbook/Library/Developer/CoreSimulator/Devices/0234B296-F0EF-45C9-9A69-1A50AD3D008A/data/Containers/Bundle/Application/DB8BCF18-C830-4953-A333-504017AFF1AF/MasterDetailPageNavigationiOS.app/MasterDetailPageNavigationiOS : mono_jit_runtime_invoke
0x106ec0f8e - /Users/mon_macbook/Library/Developer/CoreSimulator/Devices/0234B296-F0EF-45C9-9A69-1A50AD3D008A/data/Containers/Bundle/Application/DB8BCF18-C830-4953-A333-504017AFF1AF/MasterDetailPageNavigationiOS.app/MasterDetailPageNavigationiOS : mono_runtime_try_invoke
0x106ec2eaf - /Users/mon_macbook/Library/Developer/CoreSimulator/Devices/0234B296-F0EF-45C9-9A69-1A50AD3D008A/data/Containers/Bundle/Application/DB8BCF18-C830-4953-A333-504017AFF1AF/MasterDetailPageNavigationiOS.app/MasterDetailPageNavigationiOS : mono_runtime_invoke
0x106c8a1c0 - /Users/mon_macbook/Library/Developer/CoreSimulator/Devices/0234B296-F0EF-45C9-9A69-1A50AD3D008A/data/Containers/Bundle/Application/DB8BCF18-C830-4953-A333-504017AFF1AF/MasterDetailPageNavigationiOS.app/MasterDetailPageNavigationiOS : _ZL32native_to_managed_trampoline_364P11objc_objectP13objc_selectorPP11_MonoMethodP8NSObjectj
0x106c8a052 - /Users/mon_macbook/Library/Developer/CoreSimulator/Devices/0234B296-F0EF-45C9-9A69-1A50AD3D008A/data/Containers/Bundle/Application/DB8BCF18-C830-4953-A333-504017AFF1AF/MasterDetailPageNavigationiOS.app/MasterDetailPageNavigationiOS : +[__NSObject_Disposer drain:]
0x7fff25761c40 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Foundation : __NSThreadPerformPerform
0x7fff23bb2221 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
0x7fff23bb214c - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : __CFRunLoopDoSource0
0x7fff23bb1924 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : __CFRunLoopDoSources0
0x7fff23bac62f - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : __CFRunLoopRun
0x7fff23babe16 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : CFRunLoopRunSpecific
0x7fff38438bb0 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices : GSEventRunModal
0x7fff4784fb48 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : UIApplicationMain
0x10e838d12 - Unknown
0x10e6dc393 - Unknown
0x10d5cf8e3 - Unknown
0x106d93255 - /Users/mon_macbook/Library/Developer/CoreSimulator/Devices/0234B296-F0EF-45C9-9A69-1A50AD3D008A/data/Containers/Bundle/Application/DB8BCF18-C830-4953-A333-504017AFF1AF/MasterDetailPageNavigationiOS.app/MasterDetailPageNavigationiOS : mono_jit_runtime_invoke
0x106ebf567 - /Users/mon_macbook/Library/Developer/CoreSimulator/Devices/0234B296-F0EF-45C9-9A69-1A50AD3D008A/data/Containers/Bundle/Application/DB8BCF18-C830-4953-A333-504017AFF1AF/MasterDetailPageNavigationiOS.app/MasterDetailPageNavigationiOS : mono_runtime_invoke_checked
0x106ec59ec - /Users/mon_macbook/Library/Developer/CoreSimulator/Devices/0234B296-F0EF-45C9-9A69-1A50AD3D008A/data/Containers/Bundle/Application/DB8BCF18-C830-4953-A333-504017AFF1AF/MasterDetailPageNavigationiOS.app/MasterDetailPageNavigationiOS : mono_runtime_exec_main_checked
0x106cf2d22 - /Users/mon_macbook/Library/Developer/CoreSimulator/Devices/0234B296-F0EF-45C9-9A69-1A50AD3D008A/data/Containers/Bundle/Application/DB8BCF18-C830-4953-A333-504017AFF1AF/MasterDetailPageNavigationiOS.app/MasterDetailPageNavigationiOS : mono_jit_exec
0x106ff09ce - /Users/mon_macbook/Library/Developer/CoreSimulator/Devices/0234B296-F0EF-45C9-9A69-1A50AD3D008A/data/Containers/Bundle/Application/DB8BCF18-C830-4953-A333-504017AFF1AF/MasterDetailPageNavigationiOS.app/MasterDetailPageNavigationiOS : xamarin_main
0x106ca6997 - /Users/mon_macbook/Library/Developer/CoreSimulator/Devices/0234B296-F0EF-45C9-9A69-1A50AD3D008A/data/Containers/Bundle/Application/DB8BCF18-C830-4953-A333-504017AFF1AF/MasterDetailPageNavigationiOS.app/MasterDetailPageNavigationiOS : main
0x7fff51a1dc25 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libdyld.dylib : start
0x3 - Unknown

=================================================================
Basic Fault Address Reporting

Memory around native instruction pointer (0x7fff48cab625):0x7fff48cab615 48 8b 7f 08 48 85 ff 74 13 48 8b 73 10 48 8b 07 H...H..t.H.s.H..
0x7fff48cab625 ff 50 10 b8 ad ba ad de 48 89 43 10 48 83 c4 08 .P......H.C.H...
0x7fff48cab635 5b 5d c3 55 48 89 e5 53 50 48 89 fb 48 8d 05 78 [].UH..SPH..H..x
0x7fff48cab645 37 eb 3d 48 89 07 48 8b 7f 08 48 85 ff 74 0a 48 7.=H..H...H..t.H

=================================================================
Managed Stacktrace:

  at <unknown> <0xffffffff>
  at Foundation.NSObject:xamarin_release_managed_ref <0x000cb>
  at Foundation.NSObject:ReleaseManagedRef <0x0007a>
  at NSObject_Disposer:Drain <0x00392>
  at <Module>:runtime_invoke_void_object <0x000e8>
  at <unknown> <0xffffffff>
  at UIKit.UIApplication:UIApplicationMain <0x00251>
  at UIKit.UIApplication:Main <0x000b2>
  at UIKit.UIApplication:Main <0x00132>
  at MyApp.iOS.Application:Main <0x00092>
  at <Module>:runtime_invoke_void_object <0x001a8>

=================================================================

@ChaseFlorell
Copy link
Collaborator

I've also seen this, but am not yet sure what the solution is. I don't know if it's in MapKit or TK. I will continue to monitor

@ChaseFlorell
Copy link
Collaborator

ChaseFlorell commented Dec 19, 2019

Could you please try build 2.1.96 and get back to me?

<PackageReference Include="TK.CustomMap" Version="2.1.96" />

@LeeMaZong
Copy link
Author

Hello thanks a lot for your feedback, unfortunatly I still have the issue :(

@ChaseFlorell
Copy link
Collaborator

oh balls.
well I did what I could think of for disposing those renderers, I guess there's more to do. Unfortunately I suck at reading those shitty iOS crash logs 😭
We'll keep this issue open and try to get to the bottom of it.
Note, we're more than happy to accept a PR if you can find the issue and solve it 😉

@ChaseFlorell
Copy link
Collaborator

well @LeeMaZong I did yet another round of disposal work

<PackageReference Include="TK.CustomMap" Version="2.1.97" />

@ChaseFlorell
Copy link
Collaborator

nevermind, I'm still seeing it under certain scenarios

@yogandher
Copy link

i'm facing exact issue on version 2.1.97 in iOS 13 & above . Any updated please let me know

@Alex-Wang08
Copy link

@ChaseFlorell Hope everything works well! We are having some users complaining about this freeze too when they go back and forth around the field details/edit page. Any update on this?

@ChaseFlorell
Copy link
Collaborator

@Alex-Wang08 no update yet, feel free to fork and PR a fix, I'm happy to merge your pr.

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

4 participants