Home Game Development __TBB_malloc_safer_free, android free urlConnection could trigger crash – C++

__TBB_malloc_safer_free, android free urlConnection could trigger crash – C++

0
__TBB_malloc_safer_free, android free urlConnection could trigger crash – C++

[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]

LEAVE A REPLY

Please enter your comment!
Please enter your name here