googleads / googleads-mobile-unity

Official Unity Plugin for the Google Mobile Ads SDK
https://developers.google.com/admob/unity
Apache License 2.0
1.36k stars 1.08k forks source link

Plugin v6.1.2 crashes Unity 2021.2 (Mac M1) #1818

Closed mjshin82 closed 1 year ago

mjshin82 commented 2 years ago

[REQUIRED] Step 1: Describe your environment

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

When I try to update the plugin from 6.1.0 to 6.1.2, it crashes every time. Here is the crash log

Process:               Unity [1950]
Path:                  /Applications/Unity/Unity.app/Contents/MacOS/Unity
Identifier:            com.unity3d.UnityEditor5.x
Version:               Unity version 2021.2.0b16 (2021.2.0b16)
Code Type:             ARM-64 (Native)
Parent Process:        Unity Hub [627]
Responsible:           Unity Hub [627]
User ID:               501

Date/Time:             2021-10-21 00:23:33.739 +0900
OS Version:            macOS 11.6 (20G165)
Report Version:        12
Anonymous UUID:        AA7DF76D-A63F-3726-16F0-7270314E11E6

Time Awake Since Boot: 610 seconds

System Integrity Protection: enabled

Crashed Thread:        0  tid_103  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called

Thread 0 Crashed:: tid_103  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x0000000187378e68 __pthread_kill + 8
1   libsystem_pthread.dylib         0x00000001873ab43c pthread_kill + 292
2   libsystem_c.dylib               0x00000001872f3454 abort + 124
3   libmonobdwgc-2.0.dylib          0x0000000153c60290 monoeg_assert_abort + 32
4   libmonobdwgc-2.0.dylib          0x0000000153c456a8 mono_log_write_logfile + 312
5   libmonobdwgc-2.0.dylib          0x0000000153c604a8 monoeg_g_logv_nofree + 172
6   libmonobdwgc-2.0.dylib          0x0000000153c60564 monoeg_assertion_message + 40
7   libmonobdwgc-2.0.dylib          0x0000000153baa440 mono_field_from_token + 104
8   com.unity3d.UnityEditor5.x      0x000000010147d6f8 ScanAssemblyForAttributesAndInterfaceImplementations(MonoManager&, int, core::hash_map<ScriptingClassPtr, dynamic_array<ScriptingClassPtr, 0ul>, core::hash<ScriptingClassPtr>, std::__1::equal_to<ScriptingClassPtr> >&) + 672
9   com.unity3d.UnityEditor5.x      0x000000010147ea44 ScanForAttributesAndInterfaceImplementations() + 552
10  com.unity3d.UnityEditor5.x      0x00000001014a8260 MonoManager::SetupTypeCache() + 44
11  com.unity3d.UnityEditor5.x      0x00000001014aa934 MonoManager::EndReloadAssembly(DomainReloadingData&, dynamic_bitset) + 432
12  com.unity3d.UnityEditor5.x      0x00000001014a8f1c MonoManager::ReloadAssembly() + 324
13  com.unity3d.UnityEditor5.x      0x0000000101fda120 Internal_ADB_Only_ReloadAllUsedAssemblies() + 168
14  com.unity3d.UnityEditor5.x      0x000000010279b0c0 RefreshInternalV2(AssetDatabase::UpdateAssetOptions, ScanFilter const&, InternalRefreshFlagsV2) + 15000
15  com.unity3d.UnityEditor5.x      0x0000000102776d34 StopAssetImportingV2Internal(AssetDatabase::UpdateAssetOptions, InternalRefreshFlagsV2, ScanFilter const*, char const*) + 1584
16  com.unity3d.UnityEditor5.x      0x00000001027788e4 RefreshV2(AssetDatabase::UpdateAssetOptions) + 160
17  com.unity3d.UnityEditor5.x      0x0000000102830868 AssetDatabase::Refresh(AssetDatabase::UpdateAssetOptions) + 80
18  com.unity3d.UnityEditor5.x      0x0000000102372a40 Application::AutoRefresh() + 112
19  com.unity3d.UnityEditor5.x      0x00000001030cb930 -[EditorApplication applicationDidBecomeActive:] + 20
20  com.apple.CoreFoundation        0x000000018749df08 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 28
21  com.apple.CoreFoundation        0x000000018753fe5c ___CFXRegistrationPost_block_invoke + 52
22  com.apple.CoreFoundation        0x000000018753fdc8 _CFXRegistrationPost + 456
23  com.apple.CoreFoundation        0x000000018746c9d8 _CFXNotificationPost + 720
24  com.apple.Foundation            0x00000001881f83c0 -[NSNotificationCenter postNotificationName:object:userInfo:] + 64
25  com.apple.AppKit                0x0000000189e4a15c -[NSApplication _handleActivatedEvent:] + 1756
26  com.apple.AppKit                0x0000000189e1a810 -[NSApplication(NSEvent) sendEvent:] + 3060
27  com.unity3d.UnityEditor5.x      0x00000001030c94c0 -[EditorApplicationPrincipalClass sendEvent:] + 184
28  com.apple.AppKit                0x0000000189eac2fc _NXFinishActivation + 156
29  com.apple.AppKit                0x0000000189eab520 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 3244
30  com.apple.AppKit                0x0000000189e1c344 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2444
31  com.apple.AppKit                0x0000000189e1b74c -[NSWindow(NSEventRouting) sendEvent:] + 352
32  com.apple.AppKit                0x0000000189e1a624 -[NSApplication(NSEvent) sendEvent:] + 2568
33  com.unity3d.UnityEditor5.x      0x00000001030c94c0 -[EditorApplicationPrincipalClass sendEvent:] + 184
34  com.apple.AppKit                0x000000018a0e77a8 -[NSApplication _handleEvent:] + 76
35  com.apple.AppKit                0x0000000189c89e74 -[NSApplication run] + 636
36  com.apple.AppKit                0x0000000189c5b878 NSApplicationMain + 1064
37  com.unity3d.UnityEditor5.x      0x00000001030c9bd4 EditorMain(int, char const**) + 896
38  com.unity3d.UnityEditor5.x      0x00000001030c9f0c main + 12
39  libdyld.dylib                   0x00000001873c9430 start + 4

Relevant Code:

// TODO(you): code here to reproduce the problem
mjshin82 commented 2 years ago

It still crashes on Unity 2021.2f1 Apple silicon version. image

stickylabdev commented 2 years ago

dang

kyungtai-nam commented 2 years ago

This is what I did

at terminal

sudo gem install cocoapods

go to build folder at terminal

pod install

and run Unity-iPhone.xcworkspace

mjshin82 commented 2 years ago

I found the steps to reproduce and a workaround.

steps to reproduce

workaround

I think ExternalDependencyManager within the Firebase plugin have some problem while using with the Admob plugin.

stickylabdev commented 2 years ago

Don't use 2021 ... Try 2019 .. Auto crash

Pada tanggal Rab, 1 Des 2021 10.21, mj.shin @.***> menulis:

I found the steps to reproduce and a workaround. steps to reproduce

  • create empty project with Unity2021.2
  • Import google admob plugin => OK
  • import firebase plugin => It crashes

workaround

  • create empty project with Unity2021.2
  • Import the Admob plugin => OK
  • import the Firebase plugin WITHOUT ExternalDependencyManager
  • It's OK

I think ExternalDependencyManager within the Firebase plugin have some problem while using with the Admob plugin.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/googleads/googleads-mobile-unity/issues/1818#issuecomment-983249076, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADDY6YMLJMQLI7KSBFTTFOTUOWIENANCNFSM5GL6EOCA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

kunny commented 1 year ago

Since there were no recent activities for this issue, we are therefore reluctantly going to close this bug for now.

If you are still experiencing the problem, please file a new issue with the same description, what happens and system / network tracing / Charles logs.

All system setups can be slightly different, so it's always better to open new issues and reference the related ones. Thanks for your contribution.