hi folks,
I was asked to take up a fairly old corona app for a friend of mine (still uses director and v1 graphics) and helped him upgrade it to latest solar2d version including plugins.
Most things are ok, but I faced 2 errors which I’ve not been able to figure out so was hoping if anyone else had already found a solution or had knowledge about could help me out, as these were causing large number of crashes in production.
Also thankful to the thread on this forum around crashlytics and debugging for helping me find bugsnag (kudos agramonte for the plugin) in addition to firebase crashlytics as tools to diagnose crash related issues on live user devices remotely, that was a major help
Both these issues are not locally reproducible which is part of the challenge,
1st one is,
Attempted to dereference garbage pointer
and 2nd one was something I raised with Scott already, I was using his ironSource plugin along side the admob native plugin by solar2d just for banner ads, see below bugsnag output/similar to crashlytics,
CrashReporter Key: -
Hardware Model: iPhone13,4
Process: -
Identifier: -
Version: -
Role: Foreground
OS Version: iOS 18.2
NSGenericException: Unable to activate constraint with anchors <NSLayoutXAxisAnchor:0x30075e000 “GADBannerView:0x10e6ee000.centerX”> and <NSLayoutXAxisAnchor:0x300753580 “CoronaView:0x102c92200.centerX”> because they have no common ancestor. Does the constraint or its anchors reference items in different view hierarchies? That’s illegal.
0 CoreFoundation +0x2d5e8 ___exceptionPreprocess
1 libobjc.A.dylib +0x31240 _objc_exception_throw
2 CoreAutoLayout +0xbb58 -[NSLayoutConstraint _setActive:mutuallyExclusiveConstraints:]
3 CoreAutoLayout +0xb278 ___55+[NSLayoutConstraint _addOrRemoveConstraints:activate:]_block_invoke
4 CoreAutoLayout +0xc548 -[NSISEngine withBehaviors:performModifications:]
5 CoreAutoLayout +0xb94c +[NSLayoutConstraint _addOrRemoveConstraints:activate:]
6 myAPP +0xb07b6c -[CoronaAdMobAdInstance positionBannerViewInsideSafeAreaiOS9Plus:withYAlign:withYOffset:] (AdMobPlugin.mm)
7 libdispatch.dylib +0x2244 __dispatch_call_block_and_release
8 libdispatch.dylib +0x3fa4 __dispatch_client_callout
9 libdispatch.dylib +0x12a30 __dispatch_main_queue_drain
10 libdispatch.dylib +0x12648 __dispatch_main_queue_callback_4CF
11 CoreFoundation +0x79bb8 _CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
12 CoreFoundation +0x761ac ___CFRunLoopRun
13 CoreFoundation +0xc8270 _CFRunLoopRunSpecific
14 GraphicsServices +0x14bc _GSEventRunModal
15 UIKitCore +0x3ee778 -[UIApplication _run]
16 UIKitCore +0x14e60 _UIApplicationMain
I will try remove admobplugin and try use ironSource banner instead as an alternative, but wanted to hear if anyone else faced above and was able to resolve them. Thanks