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

Example app is crashing in IOS when tabs except full Map option #1004

Closed
arslankaleem7229 opened this issue Apr 12, 2022 · 15 comments
Closed

Comments

@arslankaleem7229
Copy link

I am trying to run the example app but it is crashing when I open some page like place symbol etc.. It only don't crash on Full screen map... For other tabs it crashed and generate some IOS report which is mentioned below

Launching lib[/main.dart]() on iPhone 13 Pro Max in debug mode...
lib/main.dart:1
Xcode build done.                                            6.2s
Connecting to VM Service at ws://127.0.0.1:52413[/nYzS0kx0pEg]()=[/ws]()
Lost connection to device.
Exited (sigterm)
Crash Report

Translated Report (Full Report Below)

Incident Identifier: 366CFAE2-8C7D-47AA-87B6-23C6C28B6516
CrashReporter Key: C2625859-C29D-296C-0325-FBBC37D0BAF8
Hardware Model: MacBookPro18,1
Process: Runner [11763]
Path: /Users/USER/Library/Developer/CoreSimulator/Devices/1CEC861A-08EF-4271-8DF5-632DCCBA0F36/data/Containers/Bundle/Application/81017AF3-1622-4540-8366-01B4A9E16787/Runner.app/Runner
Identifier: com.mapbox.mapboxGlExample
Version: 1.0.0 (1)
Code Type: X86-64 (Native)
Role: Foreground
Parent Process: launchd_sim [3499]
Coalition: com.apple.CoreSimulator.SimDevice.1CEC861A-08EF-4271-8DF5-632DCCBA0F36 [1736]
Responsible Process: SimulatorTrampoline [1122]

Date/Time: 2022-04-12 17:35:07.1748 +0500
Launch Time: 2022-04-12 17:34:58.7728 +0500
OS Version: macOS 12.3 (21E230)
Release Type: User
Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00007fabe849fe90
Exception Codes: 0x0000000000000001, 0x00007fabe849fe90
VM Region Info: 0x7fabe849fe90 is not in any region. Bytes after previous region: 4253482641 Bytes before following region: 326811816304
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_LARGE 7faaeac20000-7faaeac30000 [ 64K] rw-/rwx SM=PRV
---> GAP OF 0x4d15079000 BYTES
mapped file 7ff7ffca9000-7ff7ffcd9000 [ 192K] r-x/r-x SM=COW ...t_id=b429170d
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [11763]

Triggered by Thread: 0

Application Specific Information:
CoreSimulator 802.6 - Device: iPhone 13 Pro Max (1CEC861A-08EF-4271-8DF5-632DCCBA0F36) - Runtime: iOS 15.4 (19E240) - DeviceType: iPhone 13 Pro Max
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot

@orourkedd
Copy link

I'm experiencing the same issue

@amaurySaugrain
Copy link

Hi all! I am experiencing the same issue with the latest xcode running my app on a simulator (iOS 15.4). Same crash report. Any news on this?

@crysthyano-fd
Copy link

Hello, I have the same problem around the mapbox example, and in a private project in the iOS simulator in version 15.4, but if I run in the simulator in version 15.2 everything works fine, any predictions to fix?

@royer
Copy link

royer commented May 2, 2022

yes. same problem. example was doing well until upgrade cocoapods to 1.11.3 today.

@FogNature
Copy link

Same problem on production app after upgrade to CocoaPods 1.11.2

@aardrop
Copy link
Contributor

aardrop commented Jun 1, 2022

I'm thrashing with this same error and finally at least got an error message through xcode when running on my actual device.

[general] NSPredicate: Use of 'mgl_does:have:' as an NSExpression function is forbidden.

Terminating app due to uncaught exception 'MGLRedundantLayerIdentifierException', reason: 'Layer XofwXyVZJb_0 already exists'

Any idea how to fix this?

@aardrop
Copy link
Contributor

aardrop commented Jun 1, 2022

Additionally, I found that this issue seems to only persist for me on iOS 15.4 and 15.5, it works on 15.2.

@felix-ht
Copy link
Collaborator

felix-ht commented Jun 2, 2022

can you try removing all annotation layers and check if the problem persists?

annotationOrder: []

@felix-ht
Copy link
Collaborator

felix-ht commented Jun 2, 2022

@arkeri - it would also be great if you could post what kind of data you set to your symbol (assuming this is related to the crash)

@aardrop
Copy link
Contributor

aardrop commented Jun 2, 2022

That's the weird thing. I tried everything and the base MapboxMap is crashing the app on those new versions without any layers or symbols applies.

@m0nac0
Copy link
Collaborator

m0nac0 commented Jun 28, 2022

Related upstream bug report: mapbox/mapbox-gl-native-ios#650

@themumy10
Copy link

Anyone found any fixes?

@yacineblr
Copy link

I have same issue, any news about this ?

@vgabaj
Copy link

vgabaj commented Jul 26, 2022

We had the similar problem with the app crashing on launch. The solution was to add location usage descriptions to the Info.plist. Now it works on both simulator (iOS 15.5) and the real device iPad 12.9 (iOS 13.7).

<key>NSLocationAlwaysUsageDescription</key>
<string>Your location is required for xyz benefits for you</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Your location is required for xyz benefits for you</string>

@aardrop
Copy link
Contributor

aardrop commented Jul 26, 2022

@arkeri - it would also be great if you could post what kind of data you set to your symbol (assuming this is related to the crash)

Yes but can you elaborate? Our symbols are just basic point locations of a single lat lng point set through the package.

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