AppLovin / AppLovin-MAX-Unity-Plugin

110 stars 31 forks source link

Crash in Mediation Debugger #356

Closed wojciech-juszczynski closed 1 month ago

wojciech-juszczynski commented 1 month ago

MAX Plugin Version

6.4.2 / 12.4.1 iOS

Unity Version

2022.3.14f

Device/Platform Info

iOS

Current Behavior

Mediation Debugger crashes few seconds after open

Expected Behavior

No response

How to Reproduce

  1. Open Mediation Debugger
  2. Wait few seconds

Additional Info

2024-04-09 16:31:25.040222+0200 Solitaire[812:62008] [AppLovinSdk] DEBUG [MAAdView] Pinning ad view to MAX ad view with width: -1.000000 and height: 50.000000.\
2024-04-09 16:31:25.041593+0200 Solitaire[812:62008] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Unable to activate constraint with anchors <NSLayoutYAxisAnchor:0x281916000 "MAAdView:0x142b23bf0.top"> and <NSLayoutYAxisAnchor:0x28191eec0 "UILayoutGuide:0x283bcd5e0'UIViewSafeAreaLayoutGuide'.top"> because they have no common ancestor.  Does the constraint or its anchors reference items in different view hierarchies?  That's illegal.'\
...
2024-04-09 16:31:25.054988+0200 Solitaire[812:62008] [AppLovinSdk] DEBUG [ALErrorReporter] Reporting crash with extra parameters \{\
    "top_main_method" = "NSGenericException Unable to activate constraint with anchors <NSLayoutYAxisAnchor:0x281916000 \\"MAAdView:0x142b23bf0.top\\"> and <NSLayoutYAxisAnchor:0x28191eec0 \\"UILayoutGuide:0x283bcd5e0'UIViewSafeAreaLayoutGuide'.top\\"> because they have no common ancestor.  Does the constraint or its anchors reference items in different view hierarchies?  That's illegal.";\
\}\
2024-04-09 16:31:25.055913+0200 Solitaire[812:62008] [AppLovinSdk] ERROR [ALExceptionHandler] Detected unhandled exception\
2024-04-09 16:31:25.056013+0200 Solitaire[812:62570] [AppLovinSdk] DEBUG [ALEventService] Tracking event: "paused"\
2024-04-09 16:31:25.337922+0200 Solitaire[812:62410] [AppLovinSdk] DEBUG [ALErrorReporter] crash reported with code 200 and extra parameters \{\
    "top_main_method" = "NSGenericException Unable to activate constraint with anchors <NSLayoutYAxisAnchor:0x281916000 \\"MAAdView:0x142b23bf0.top\\"> and <NSLayoutYAxisAnchor:0x28191eec0 \\"UILayoutGuide:0x283bcd5e0'UIViewSafeAreaLayoutGuide'.top\\"> because they have no common ancestor.  Does the constraint or its anchors reference items in different view hierarchies?  That's illegal.";\
\}\
2024-04-09 16:31:25.607183+0200 Solitaire[812:62008] Uncaught exception: NSGenericException: Unable to activate constraint with anchors <NSLayoutYAxisAnchor:0x281916000 "MAAdView:0x142b23bf0.top"> and <NSLayoutYAxisAnchor:0x28191eec0 "UILayoutGuide:0x283bcd5e0'UIViewSafeAreaLayoutGuide'.top"> because they have no common ancestor.  Does the constraint or its anchors reference items in different view hierarchies?  That's illegal.\
(\
    0   CoreFoundation                      0x00000001a2388cc0 4230C122-42E8-383B-BEEC-EE7B61F8BB61 + 40128\
    1   libobjc.A.dylib                     0x000000019b4303d0 objc_exception_throw + 60\
    2   CoreAutoLayout                      0x00000001bf81cd94 NSLayoutConstraintIsPotentiallyDanglyInContainer + 0\
    3   CoreAutoLayout                      0x00000001bf820bf8 7777F1A9-2B61-332F-84D9-75B3A9DCB5C4 + 23544\
    4   CoreAutoLayout                      0x00000001bf81fe70 7777F1A9-2B61-332F-84D9-75B3A9DCB5C4 + 20080\
    5   CoreAutoLayout                      0x00000001bf81cb90 7777F1A9-2B61-332F-84D9-75B3A9DCB5C4 + 7056\
    6   UnityFramework                      0x0000000115cbda58 __63-[MAUnityAdManager positionAdViewForAdUnitIdentifier:adFormat:]_block_invoke + 11336\
    7   libdispatch.dylib                   0x00000001a984d320 BB347F0E-F21C-3607-82E6-C8D750FDBF8C + 8992\
    8   libdispatch.dylib                   0x00000001a984eeac BB347F0E-F21C-3607-82E6-C8D750FDBF8C + 16044\
    9   libdispatch.dylib                   0x00000001a985d6a4 BB347F0E-F21C-3607-82E6-C8D750FDBF8C + 75428\
    10  libdispatch.dylib                   0x00000001a985d2f4 _dispatch_main_queue_callback_4CF + 44\
    11  CoreFoundation                      0x00000001a2417c28 4230C122-42E8-383B-BEEC-EE7B61F8BB61 + 625704\
    12  CoreFoundation                      0x00000001a23f9560 4230C122-42E8-383B-BEEC-EE7B61F8BB61 + 501088\
    13  CoreFoundation                      0x00000001a23fe3ec CFRunLoopRunSpecific + 612\
    14  GraphicsServices                    0x00000001dd8c335c GSEventRunModal + 164\
    15  UIKitCore                           0x00000001a478b6e8 B3834960-244B-34E4-9EA0-CA4BB44EF0F3 + 3790568\
    16  UIKitCore                           0x00000001a478b34c UIApplicationMain + 340\
    17  UnityFramework                      0x0000000115ca2308 -[UnityFramework runUIApplicationMainWithArgc:argv:] + 136\
    18  Solitaire                           0x0000000102eb41d0 main + 76\
    19  dyld                                0x00000001c18fedec 8A423F3F-B318-315E-99C7-05EE532E9C0D + 89580\
)\
libc++abi: terminating due to uncaught exception of type NSException}
nguyenanhtien2606 commented 1 month ago

same problem

santoshbagadi commented 1 month ago

Closing this as a duplicate of: https://github.com/AppLovin/AppLovin-MAX-Unity-Plugin/issues/354

More context on the fix here: https://github.com/AppLovin/AppLovin-MAX-Unity-Plugin/issues/354#issuecomment-2047716677