question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ios app crash when using addMarkerCluster

See original GitHub issue

I’m submitting a … (check one with “x”) [ ] question [x ] any problem or bug report [ ] feature request

If you choose ‘problem or bug report’, please select OS: (check one with “x”) [ ] Android [x ] iOS

cordova information: (run $> cordova plugin list)

com.googlemaps.ios 2.5.0 "Google Maps SDK for iOS"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-facebook4 1.9.1 "Facebook Connect"
cordova-plugin-google-analytics 1.8.3 "Google Universal Analytics Plugin"
cordova-plugin-googlemaps 2.1.2-beta-20171122-1040 "cordova-plugin-googlemaps"
cordova-plugin-googleplus 5.1.1 "Google SignIn"
cordova-plugin-ionic-webview 1.1.16 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.3.0 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
ionic-plugin-keyboard 2.2.1 "Keyboard"

If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)@ionic-native/core”: “^4.3.3”, “@ionic-native/google-maps”: “^4.3.3”,

Current behavior:

Hello, I have an error. when I use addMarkerCluster. It draws markers but when I use a custom image for a marker at that time app crash with below error. it happens only ios. somebody can help this issue??

Expected behavior:

Screen capture or video record:

Related code, data or error log (please format your code or data):


*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCache setObject:forKey:cost:]: attempt to insert nil value (key: http:/localhost:8080/var/containers/Bundle/Application/1E01FEE3-8DDB-4796-8CB6-196E881CA368/udc2.app/www/index.html#/menu/./assets/img/map/m1.png)'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:20 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
antoine92190commented, Nov 25, 2017

You need to set url like this: www/assets/icons/cluster_icons/blue.png

1reaction
daniefvhcommented, Sep 21, 2020

Just if it helps someone. You get the same behavior on ios if you don’t specify the marker at all. i.e. if you leave our the icon property out all together. Just adding icon: 'red' fixed it for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

App crash with entitlements | Apple Developer Forums
I have a python app for MacOS that I am deploying with pyinstaller (thus I am NOT using Xcode). The app is to...
Read more >
app crash on iOS 16.1(beta) when u… - Apple Developer
My app was built with XCode13 and we are now seeing occasional crashes on iOS16.1 (beta). This exception occurs when using the method:....
Read more >
App Crash when using print of UIPrintInteractionController
Using the latest Xcode 13 Beta 5 and try to print a PDF document on a predefined printer the App Crashes. I created...
Read more >
In iOS 15, when the app is restarted, it immediately crashes.
It has not been modified. It happens with all apps sold on the App Store. The model I am using is iPhone 12...
Read more >
Maps App crash after update to iOS… | Apple Developer Forums
I've got some problem with Maps app. After Update it crashes instantly. I tried to delete the app and reinstall it from AppStore...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found