-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[3.8.2] Android WebSocket 崩溃 [Java_com_cocos_lib_websocket_CocosWebSocket_nativeOnError] #18324
Comments
I tested some models yesterday and clicking on in-game ads did not turn them off. After 5 minutes, I did not notice any crashes, so I am temporarily unable to reproduce these crash errors |
Try to merge the latest two commits for WebSocket-okhttp.cpp file. https://github.com/cocos/cocos-engine/commits/3.8.5/native/cocos/network/WebSocket-okhttp.cpp |
Thank you. After reviewing the latest update instructions in 3.8.6 that you mentioned, it seems that the relevant bugs have been fixed. I have replaced the relevant files and repackaged them for testing. I will submit them to the Google Play Store for further review in the next few days |
pid: 0, tid: 17857 >>> com.capetown.ccgcapetown.gb.gp <<< backtrace: I merged the two latest versions of the files over the past week, but the problem still hasn't been resolved |
@TorrentialNight , you may need one more patch: #18351 because #17609 break something. |
@dumganhar I replaced the file on # 18351 on top of the two okhttp files that have already been replaced, right |
@dumganhar The current version is 3.8.2, Is there a problem with directly replacing the files mentioned in # 18351 |
I think you could replace this 3 files from https://github.com/dumganhar/cocos-engine/tree/386-fix-websocket-crash native/cocos/network/WebSocket-okhttp.cpp and cherrypick changes in Engine.h/.cpp in my PR #18351 |
Thank you, I will give it a try and upload it to the Google Play store to continue trying |
@TorrentialNight Any results? |
@dumganhar Not yet ,we are preparing game updates which may take some time. Once we have the results on the Google Play Store, we will update you promptly |
Cocos Creator version
3.8.2
System information
android机
Issue description
split_config.arm64_v8a.apk!libcocos.so
Google backend crash analysis:
Java_com_cocos_lib_websocket_CocosWebSocket_nativeOnError,Java_com_cocos_lib_CocosAudioFocusManager_nativeSetAudioVolumeFactor
The collapse rate is very high, It has affected the online data of Google applications
this #14730
At present, version 3.8.2 seems to have encountered this issue again
Relevant error log output
pid: 0, tid: 21665 >>>packagename <<<
backtrace:
#00 pc 0x00000000005f4fa4 /data/app/~~DpliaYxr5qata55ZYDXeGA==/packagename-rEm0Biy3yli6L8Kpp8rnRA==/split_config.arm64_v8a.apk!libcocos.so (BuildId: 64e11e7ffef09019b52165ffdc5df30e572c7b46)
#1 pc 0x000000000072dc80 /data/app/~~DpliaYxr5qata55ZYDXeGA==/packagename-rEm0Biy3yli6L8Kpp8rnRA==/split_config.arm64_v8a.apk!libcocos.so (BuildId: 64e11e7ffef09019b52165ffdc5df30e572c7b46)
#2 pc 0x000000000029e700 /data/app/~~DpliaYxr5qata55ZYDXeGA==/packagename-rEm0Biy3yli6L8Kpp8rnRA==/split_config.arm64_v8a.apk!libcocos.so (BuildId: 64e11e7ffef09019b52165ffdc5df30e572c7b46)
#3 pc 0x00000000005efbdc /data/app/~~DpliaYxr5qata55ZYDXeGA==/packagename-rEm0Biy3yli6L8Kpp8rnRA==/split_config.arm64_v8a.apk!libcocos.so (BuildId: 64e11e7ffef09019b52165ffdc5df30e572c7b46)
#4 pc 0x00000000002fd5fc /data/app/~~DpliaYxr5qata55ZYDXeGA==/packagename-rEm0Biy3yli6L8Kpp8rnRA==/split_config.arm64_v8a.apk!libcocos.so (BuildId: 64e11e7ffef09019b52165ffdc5df30e572c7b46)
#5 pc 0x000000000000f824 /data/app/~~DpliaYxr5qata55ZYDXeGA==/packagename-rEm0Biy3yli6L8Kpp8rnRA==/split_config.arm64_v8a.apk
Steps to reproduce
It has not been reproduced, and it is speculated that the direction may be due to the long background time of cocos activity after clicking on the advertisement, which caused the connection to be interrupted
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: