AppLovin / AppLovin-MAX-SDK-Android

Other
233 stars 104 forks source link

Fatal Exception: java.nio.channels.OverlappingFileLockException #670

Closed V-Beyond closed 2 weeks ago

V-Beyond commented 6 months ago

MAX SDK Version

12.4.3

Device/Platform Info

Galaxy A50,Android 11

Current Behavior

After I connected to the Applovin SDK, the online version without the Applovin SDK did not throw this exception. The online version with Applovin started throwing Fatal Exception: java. nio. channels OverlappingFileLockException.

This is the specific log: Fatal Exception: java.nio.channels.OverlappingFileLockException: at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255) at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152) at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1174) at java.nio.channels.FileChannel.tryLock(FileChannel.java:1155) at org.chromium.android_webview.AwDataDirLock.b(chromium-TrichromeWebViewGoogle6432.aab-stable-636717933:84) at org.chromium.android_webview.AwBrowserProcess.j(chromium-TrichromeWebViewGoogle6432.aab-stable-636717933:16) at com.android.webview.chromium.L.d(chromium-TrichromeWebViewGoogle6432.aab-stable-636717933:203) at WV.QY.run(chromium-TrichromeWebViewGoogle6432.aab-stable-636717933:8) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:246) at android.app.ActivityThread.main(ActivityThread.java:8653) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

Expected Behavior

No response

How to Reproduce

Occurred under normal use by online users

Additional Info

No response

thomasmso commented 6 months ago

@V-Beyond - Thanks for reporting this issue. How do you know it is derived from AppLovin SDK and not another SDK? What % of DAUs is crashing? Is it only on Galaxy A50, Android 11 (and thus, reproducible)?

V-Beyond commented 6 months ago

What I am certain of is that this issue occurred after I connected to the Applovin SDK, which was originally connected to Applovin, AdMob,pangle,inmobi, Xiaomi, OPPO, Other Samsung models also have this issue, occurring hundreds of times, with Samsung accounting for 43%.

thomasmso commented 6 months ago

@V-Beyond - Could you enable a potential fix in our SDK, via the following code snippet and report back?

AppLovinSdk sdk = AppLovinSdk.getInstance( context );
sdk.getSettings().setExtraParameter( "disable_set_data_dir_suffix", "true" );
...
V-Beyond commented 6 months ago

Thank you very much. In the next version, I will add this code and see the results of the online version to give you feedback.

jokhjheds commented 5 months ago

@V-Beyond Is this problem solved?

V-Beyond commented 5 months ago

I'm sorry that I didn't give you feedback in time. I added sdk.getSettings().setExtraParameter( "disable_set_data_dir_suffix", "true" ) to the code, but the online feedback still shows the problem reported. But I'm sure this problem only appeared after adding the advertising SDK, so I don't know how to solve this problem now. Can you give me some other solutions?

thomasmso commented 5 months ago

@V-Beyond - my solution above should solve it for crashes originating from AppLovin SDK / network, are you able to re-confirm the source of the crash?

V-Beyond commented 5 months ago

ltd.love8.couples.relationship_issue_e81c114afc5794ec5194406dbe8090a7_crash_session_6668F05701E400013AC16133DCC8EE9E_DNE_0_v2_stacktrace.txt I uploaded the crash log file, that's all the information, could you take a look at it, please?

github-actions[bot] commented 3 weeks ago

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

github-actions[bot] commented 2 weeks ago

This issue was closed because it has been inactive for 5 days since being marked as stale.