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

iOS Crash #419

Open
7SwordsDev opened this issue Aug 27, 2024 · 9 comments
Open

iOS Crash #419

7SwordsDev opened this issue Aug 27, 2024 · 9 comments
Assignees
Labels
bug Something isn't working stale This isue has been inactive

Comments

@7SwordsDev
Copy link

MAX Plugin Version

6.6.1

Unity Version

2022.3.37

Device/Platform Info

iPhone/Ipad

Current Behavior

__98-[ALMediationAdapterWrapper loadNextAdForAdUnitIdentifier:adapterParameters:mediatedAd:andNotify:]_block_invoke
EXC_BAD_ACCESS (KERN_INVALID_ADDRESS)

Expected Behavior

No response

How to Reproduce

log firebase Crashlytics dashboard

Additional Info

No response

@7SwordsDev 7SwordsDev added the bug Something isn't working label Aug 27, 2024
@santoshbagadi
Copy link
Contributor

santoshbagadi commented Aug 27, 2024

Hi @7SwordsDev , can you share the full stcktrace for the crash. That would help us debug the issue further

@7SwordsDev
Copy link
Author

Hi @7SwordsDev , can you share the full stcktrace for the crash. That would help us debug the issue further

I use applovin and add mediation to use it normally. However, when I put the product on the appstore, firebase crashlytic reported a crash and this message. Besides that, I don't have any further notes.

@santoshbagadi
Copy link
Contributor

You should be able to get the full stacktrace from firebase. There would be a TXT button that you can use to get the text stacktrace.

@7SwordsDev
Copy link
Author

Do you mean this txt is correct?

Crashed: com.apple.main-thread
0  libswiftCore.dylib             0x2a6fb4 swift::TargetProtocolConformanceDescriptor<swift::InProcess>::getCanonicalTypeMetadata() const + 148
1  libswiftCore.dylib             0x2a8098 swift_conformsToSwiftProtocolImpl(swift::TargetMetadata<swift::InProcess> const*, swift::TargetProtocolDescriptor<swift::InProcess> const*, llvm::StringRef) + 312
2  libswiftCore.dylib             0x2a8098 swift_conformsToSwiftProtocolImpl(swift::TargetMetadata<swift::InProcess> const*, swift::TargetProtocolDescriptor<swift::InProcess> const*, llvm::StringRef) + 312
3  libswiftCore.dylib             0x2a7e38 swift_conformsToProtocol + 188
4  libswiftCore.dylib             0x281a58 swift::_conformsToProtocol(swift::OpaqueValue const*, swift::TargetMetadata<swift::InProcess> const*, swift::TargetProtocolDescriptorRef<swift::InProcess>, swift::TargetWitnessTable<swift::InProcess> const**) + 44
5  libswiftCore.dylib             0x2a76fc swift::_checkGenericRequirements(llvm::ArrayRef<swift::TargetGenericRequirementDescriptor<swift::InProcess> >, std::__1::vector<void const*, std::__1::allocator<void const*> >&, std::__1::function<swift::TargetMetadata<swift::InProcess> const* (unsigned int, unsigned int)>, std::__1::function<swift::TargetWitnessTable<swift::InProcess> const* (swift::TargetMetadata<swift::InProcess> const*, unsigned int)>) + 1160
6  libswiftCore.dylib             0x2a71b0 swift::TargetProtocolConformanceDescriptor<swift::InProcess>::getWitnessTable(swift::TargetMetadata<swift::InProcess> const*) const + 372
7  libswiftFoundation.dylib       0x823ac __JSONDecoder.unbox_(_:as:) + 332
8  libswiftFoundation.dylib       0x7652c _JSONKeyedDecodingContainer.decode<A>(_:forKey:) + 784
9  libswiftFoundation.dylib       0xc8fc8 protocol witness for KeyedDecodingContainerProtocol.decode<A>(_:forKey:) in conformance _JSONKeyedDecodingContainer<A> + 36
10 libswiftFoundation.dylib       0x78d44 protocol witness for KeyedDecodingContainerProtocol.decode<A>(_:forKey:) in conformance _JSONKeyedDecodingContainer<A> + 20
11 libswiftCore.dylib             0x36ce4 KeyedDecodingContainerProtocol.decodeIfPresent<A>(_:forKey:) + 208
12 libswiftFoundation.dylib       0x78fdc protocol witness for KeyedDecodingContainerProtocol.decodeIfPresent<A>(_:forKey:) in conformance _JSONKeyedDecodingContainer<A> + 32
13 libswiftCore.dylib             0x3f840 _KeyedDecodingContainerBox.decodeIfPresent<A>(_:forKey:) + 152
14 libswiftCore.dylib             0x37b00 KeyedDecodingContainer.decodeIfPresent<A>(_:forKey:) + 80
15 UnityFramework                 0x3a22828 specialized TemplateSettings.init(from:) + 1169180
16 UnityFramework                 0x3a22714 protocol witness for Decodable.init(from:) in conformance TemplateSettings + 1168904
17 libswiftCore.dylib             0x25feec dispatch thunk of Decodable.init(from:) + 16
18 libswiftFoundation.dylib       0x82fa4 __JSONDecoder.unbox_(_:as:) + 3396
19 libswiftFoundation.dylib       0x7652c _JSONKeyedDecodingContainer.decode<A>(_:forKey:) + 784
20 libswiftFoundation.dylib       0xc8fc8 protocol witness for KeyedDecodingContainerProtocol.decode<A>(_:forKey:) in conformance _JSONKeyedDecodingContainer<A> + 36
21 libswiftFoundation.dylib       0x78d44 protocol witness for KeyedDecodingContainerProtocol.decode<A>(_:forKey:) in conformance _JSONKeyedDecodingContainer<A> + 20
22 libswiftCore.dylib             0x36ce4 KeyedDecodingContainerProtocol.decodeIfPresent<A>(_:forKey:) + 208
23 libswiftFoundation.dylib       0x78fdc protocol witness for KeyedDecodingContainerProtocol.decodeIfPresent<A>(_:forKey:) in conformance _JSONKeyedDecodingContainer<A> + 32
24 libswiftCore.dylib             0x3f840 _KeyedDecodingContainerBox.decodeIfPresent<A>(_:forKey:) + 152
25 libswiftCore.dylib             0x37b00 KeyedDecodingContainer.decodeIfPresent<A>(_:forKey:) + 80
26 UnityFramework                 0x39f3280 specialized AdUnit.init(from:) + 975220
27 UnityFramework                 0x39f20fc protocol witness for Decodable.init(from:) in conformance AdUnit + 970736
28 libswiftCore.dylib             0x25feec dispatch thunk of Decodable.init(from:) + 16
29 libswiftFoundation.dylib       0x82fa4 __JSONDecoder.unbox_(_:as:) + 3396
30 libswiftFoundation.dylib       0x7652c _JSONKeyedDecodingContainer.decode<A>(_:forKey:) + 784
31 libswiftFoundation.dylib       0xc8fc8 protocol witness for KeyedDecodingContainerProtocol.decode<A>(_:forKey:) in conformance _JSONKeyedDecodingContainer<A> + 36
32 libswiftFoundation.dylib       0x78d44 protocol witness for KeyedDecodingContainerProtocol.decode<A>(_:forKey:) in conformance _JSONKeyedDecodingContainer<A> + 20
33 libswiftCore.dylib             0x36ce4 KeyedDecodingContainerProtocol.decodeIfPresent<A>(_:forKey:) + 208
34 libswiftFoundation.dylib       0x78fdc protocol witness for KeyedDecodingContainerProtocol.decodeIfPresent<A>(_:forKey:) in conformance _JSONKeyedDecodingContainer<A> + 32
35 libswiftCore.dylib             0x3f840 _KeyedDecodingContainerBox.decodeIfPresent<A>(_:forKey:) + 152
36 libswiftCore.dylib             0x37b00 KeyedDecodingContainer.decodeIfPresent<A>(_:forKey:) + 80
37 UnityFramework                 0x39a5fac specialized PlacementAdUnit.init(from:) + 659104
38 UnityFramework                 0x399f8c4 protocol witness for Decodable.init(from:) in conformance PlacementAdUnit + 632760
39 libswiftCore.dylib             0x25feec dispatch thunk of Decodable.init(from:) + 16
40 libswiftFoundation.dylib       0x82fa4 __JSONDecoder.unbox_(_:as:) + 3396
41 libswiftFoundation.dylib       0x797e8 _JSONUnkeyedDecodingContainer.decode<A>(_:) + 712
42 libswiftFoundation.dylib       0xcc308 protocol witness for UnkeyedDecodingContainer.decode<A>(_:) in conformance _JSONUnkeyedDecodingContainer + 12
43 libswiftFoundation.dylib       0x7c230 protocol witness for UnkeyedDecodingContainer.decode<A>(_:) in conformance _JSONUnkeyedDecodingContainer + 20
44 libswiftCore.dylib             0x474e8 Array<A>.init(from:) + 352
45 libswiftCore.dylib             0x47c14 protocol witness for Decodable.init(from:) in conformance <A> [A] + 28
46 libswiftCore.dylib             0x47694 protocol witness for Decodable.init(from:) in conformance <A> [A] + 20
47 libswiftCore.dylib             0x25feec dispatch thunk of Decodable.init(from:) + 16
48 libswiftFoundation.dylib       0x82fa4 __JSONDecoder.unbox_(_:as:) + 3396
49 libswiftFoundation.dylib       0x7652c _JSONKeyedDecodingContainer.decode<A>(_:forKey:) + 784
50 libswiftFoundation.dylib       0xc8fc8 protocol witness for KeyedDecodingContainerProtocol.decode<A>(_:forKey:) in conformance _JSONKeyedDecodingContainer<A> + 36
51 libswiftFoundation.dylib       0x78d44 protocol witness for KeyedDecodingContainerProtocol.decode<A>(_:forKey:) in conformance _JSONKeyedDecodingContainer<A> + 20
52 libswiftCore.dylib             0x36ce4 KeyedDecodingContainerProtocol.decodeIfPresent<A>(_:forKey:) + 208
53 libswiftFoundation.dylib       0x78fdc protocol witness for KeyedDecodingContainerProtocol.decodeIfPresent<A>(_:forKey:) in conformance _JSONKeyedDecodingContainer<A> + 32
54 libswiftCore.dylib             0x3f840 _KeyedDecodingContainerBox.decodeIfPresent<A>(_:forKey:) + 152
55 libswiftCore.dylib             0x37b00 KeyedDecodingContainer.decodeIfPresent<A>(_:forKey:) + 80
56 UnityFramework                 0x3a44394 specialized AdsResponse.init(from:) + 1307272
57 UnityFramework                 0x3a441a8 protocol witness for Decodable.init(from:) in conformance AdsResponse + 1306780
58 libswiftCore.dylib             0x25feec dispatch thunk of Decodable.init(from:) + 16
59 libswiftFoundation.dylib       0x82fa4 __JSONDecoder.unbox_(_:as:) + 3396
60 libswiftFoundation.dylib       0x69210 JSONDecoder.decode<A>(_:from:) + 1108
61 libswiftFoundation.dylib       0x145db0 dispatch thunk of JSONDecoder.decode<A>(_:from:) + 20
62 UnityFramework                 0x3a074a0 specialized AdLoader.loadAd(from:completion:) + 1057684
63 UnityFramework                 0x39bc820 BasePublicAd.load(_:) + 751380
64 UnityFramework                 0x39bdf58 @objc BasePublicAd.load(_:) + 757324
65 UnityFramework                 0x2755b88 -[ALVungleMediationAdapter loadRewardedAdForParameters:andNotify:] + 4366244744
66 AppLovinSDK                    0x17297c __98-[ALMediationAdapterWrapper loadNextAdForAdUnitIdentifier:adapterParameters:mediatedAd:andNotify:]_block_invoke_2 + 76
67 AppLovinSDK                    0x172b48 __98-[ALMediationAdapterWrapper loadNextAdForAdUnitIdentifier:adapterParameters:mediatedAd:andNotify:]_block_invoke.57 + 112
68 AppLovinSDK                    0x175064 __67-[ALMediationAdapterWrapper runOperationWithTag:forAdFormat:block:]_block_invoke + 152
69 Foundation                     0x112cf4 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
70 Foundation                     0x1ed90 -[NSBlockOperation main] + 72
71 Foundation                     0x1e278 -[__NSOperationInternal _start:] + 740
72 Foundation                     0x114a78 __NSOQSchedule_f + 272
73 libdispatch.dylib              0xe7f4 _dispatch_block_async_invoke2 + 104
74 libdispatch.dylib              0x607d4 _dispatch_client_callout + 16
75 libdispatch.dylib              0xe008 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1068
76 CoreFoundation                 0xaab20 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
77 CoreFoundation                 0xa5a58 __CFRunLoopRun + 1924
78 CoreFoundation                 0xa4fb4 CFRunLoopRunSpecific + 436
79 GraphicsServices               0xa79c GSEventRunModal + 104
80 UIKitCore                      0x8bcc38 UIApplicationMain + 212
81 UnityFramework                 0x26e8adc -[UnityFramework runUIApplicationMainWithArgc:argv:] + 96 (main.mm:96)
82 FishMergeMasterBallDrop        0x412c main + 28 (main.mm:28)
83 libdyld.dylib                  0x18e0 start + 4

@santoshbagadi
Copy link
Contributor

Yes, this is helpful. Could you also share the list of all the adapters included in the project (a screenshot of our Integration Manager).

@7SwordsDev
Copy link
Author

Below is the list of adapters that I have integrated.

Screenshot 2024-09-06 at 19 13 27

@guowei0306
Copy link

Hi, we got the same report from other developers and they noticed this started when they added Moloco. At the moment we have a theory that Moloco introduces something into the build that ends up breaking JSON in some way and leads to the crash.

Given the above integration manager screenshot, you integrated Moloco in this affected build as well. Would you mind trying uninstalling Moloco and see if the crashes still persist?

In the meantime, we're investigating together with Moloco and I'll let you know if/when we find the underlying issue.

@7SwordsDev
Copy link
Author

Hi, we got the same report from other developers and they noticed this started when they added Moloco. At the moment we have a theory that Moloco introduces something into the build that ends up breaking JSON in some way and leads to the crash.

Given the above integration manager screenshot, you integrated Moloco in this affected build as well. Would you mind trying uninstalling Moloco and see if the crashes still persist?

In the meantime, we're investigating together with Moloco and I'll let you know if/when we find the underlying issue.

I will try this. Thanks!

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale This isue has been inactive label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale This isue has been inactive
Projects
None yet
Development

No branches or pull requests

3 participants