[ad_1]
cocos creator 3.0.1
NDK 19.2.5345600
targetSdkVersion 29
ABI armeabi-v7a:arm64-v8a
We discovered a crash on android machine.
Trace the log we discovered the crash level is free headers of urlConnection.
char *headers = urlConnection.getResponseHeaders();
if (nullptr != headers) {
writeHeaderData(headers, strlen(headers), response);
}
attempt {
free(headers);
headers = NULL;
} catch (std::exception &e) {
CC_LOG_WARNING("HttpClient exception: %s", e.what());
}
It will not be at all times happen, it appears not have a method to make crash 100%.
I hope there’s a information to assist repair this crash.
Thanks.
[ad_2]