arm64机器跑arm64so崩溃

2021-01-18 09:52:05.140 9173-9173/? A/DEBUG: Build fingerprint: ‘HUAWEI/TAS-AN00/HWTAS:10/HUAWEITAS-AN00/11.0.0.165C00:user/release-keys’
2021-01-18 09:52:05.140 9173-9173/? A/DEBUG: Revision: ‘0’
2021-01-18 09:52:05.140 9173-9173/? A/DEBUG: ABI: ‘arm64’
2021-01-18 09:52:05.145 9173-9173/? A/DEBUG: SYSVMTYPE: Maple
APPVMTYPE: Art
2021-01-18 09:52:05.145 9173-9173/? A/DEBUG: Timestamp: 2021-01-18 09:52:05+0800
2021-01-18 09:52:05.145 9173-9173/? A/DEBUG: pid: 8601, tid: 9100, name: AgoraEvent >>> com.yoka.sgs <<<
2021-01-18 09:52:05.145 9173-9173/? A/DEBUG: uid: 10838
2021-01-18 09:52:05.145 9173-9173/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x38
2021-01-18 09:52:05.145 9173-9173/? A/DEBUG: Cause: null pointer dereference
2021-01-18 09:52:05.145 9173-9173/? A/DEBUG: x0 0000000000000000 x1 0000000000000009 x2 0000000000000000 x3 0000000000001604
2021-01-18 09:52:05.145 9173-9173/? A/DEBUG: x4 676e697070616d5f x5 5f6d617070696e67 x6 676e697070616d5f x7 7f7f7f7f7f7f7f7f
2021-01-18 09:52:05.145 9173-9173/? A/DEBUG: x8 0101010101010101 x9 000000000000001e x10 0000007718b25af0 x11 0000000000000002
2021-01-18 09:52:05.145 9173-9173/? A/DEBUG: x12 222c22726f727265 x13 7d38313a22727265 x14 ffffffffff000000 x15 ffffffffffffffff
2021-01-18 09:52:05.145 9173-9173/? A/DEBUG: x16 000000772548a540 x17 00000078306b38c0 x18 00000076ce7d2000 x19 00000077245bf978
2021-01-18 09:52:05.145 9173-9173/? A/DEBUG: x20 0000000000000000 x21 00000076fcc0e048 x22 0000007718bb93e1 x23 0000000000000001
2021-01-18 09:52:05.145 9173-9173/? A/DEBUG: x24 0000007714095c10 x25 0000007718bb93e1 x26 0000000000000000 x27 0000000000000000
2021-01-18 09:52:05.145 9173-9173/? A/DEBUG: x28 00000077261ea000 x29 000000770ec9b6f0
2021-01-18 09:52:05.145 9173-9173/? A/DEBUG: sp 000000770ec9b6f0 lr 0000007724afee10 pc 0000007724afec20
2021-01-18 09:52:05.164 9173-9173/? A/DEBUG: backtrace:
2021-01-18 09:52:05.164 9173-9173/? A/DEBUG: #00 pc 0000000000cf9c20 /data/app/com.yoka.sgs-Bb_peRSVbXvZSNr29p9HvA==/lib/arm64/libsgs.so
2021-01-18 09:52:05.164 9173-9173/? A/DEBUG: #01 pc 0000000000cf9e0c /data/app/com.yoka.sgs-Bb_peRSVbXvZSNr29p9HvA==/lib/arm64/libsgs.so
2021-01-18 09:52:05.164 9173-9173/? A/DEBUG: #02 pc 0000000000ce2790 /data/app/com.yoka.sgs-Bb_peRSVbXvZSNr29p9HvA==/lib/arm64/libsgs.so (lua_rawget+60)
2021-01-18 09:52:05.164 9173-9173/? A/DEBUG: #03 pc 00000000008fb7f0 /data/app/com.yoka.sgs-Bb_peRSVbXvZSNr29p9HvA==/lib/arm64/libsgs.so (toluafix_get_function_by_refid(lua_State*, int)+64)
2021-01-18 09:52:05.164 9173-9173/? A/DEBUG: #04 pc 00000000007badb0 /data/app/com.yoka.sgs-Bb_peRSVbXvZSNr29p9HvA==/lib/arm64/libsgs.so (cocos2d::LuaStack::pushFunctionByHandler(int)+28)
2021-01-18 09:52:05.164 9173-9173/? A/DEBUG: #05 pc 00000000007bb08c /data/app/com.yoka.sgs-Bb_peRSVbXvZSNr29p9HvA==/lib/arm64/libsgs.so (cocos2d::LuaStack::executeFunctionByHandler(int, int)+48)
2021-01-18 09:52:05.164 9173-9173/? A/DEBUG: #06 pc 0000000000776510 /data/app/com.yoka.sgs-Bb_peRSVbXvZSNr29p9HvA==/lib/arm64/libsgs.so (SdkManager::onExecuteResult(SdkManager::ScriptHandlerType, char const*)+160)
2021-01-18 09:52:05.164 9173-9173/? A/DEBUG: #07 pc 0000000000776554 /data/app/com.yoka.sgs-Bb_peRSVbXvZSNr29p9HvA==/lib/arm64/libsgs.so (SdkManager::onExecuteResult(char const*)+28)
2021-01-18 09:52:05.164 9173-9173/? A/DEBUG: #08 pc 000000000077e654 /data/app/com.yoka.sgs-Bb_peRSVbXvZSNr29p9HvA==/lib/arm64/libsgs.so (MyIGamingRtcEngineEventHandler::executeResult(rapidjson::GenericDocument<rapidjson::UTF8, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator, rapidjson::CrtAllocator>)+152)
2021-01-18 09:52:05.164 9173-9173/? A/DEBUG: #09 pc 000000000077f228 /data/app/com.yoka.sgs-Bb_peRSVbXvZSNr29p9HvA==/lib/arm64/libsgs.so (MyIGamingRtcEngineEventHandler::onError(int, char const
)+212)
2021-01-18 09:52:05.164 9173-9173/? A/DEBUG: #10 pc 000000000016442c /data/app/com.yoka.sgs-Bb_peRSVbXvZSNr29p9HvA==/lib/arm64/libagora-rtc-sdk.so (BuildId: 11b38a0ec2598dcc2f94e69d73cf1586d03e8bc1)
2021-01-18 09:52:05.172 3922-4040/? E/BoosterUtil: convertSubIdToSlotId failed, subId:7, slotId:-1
2021-01-18 09:52:05.172 3922-4040/? E/BoosterUtil: getDefaultDataSlotId failed, invalid slotId:-1, subId:7
2021-01-18 09:52:05.172 3922-4040/? E/NrSmartCure: onNetworkQoeUpdate failed, invalid defaultDataSlotId=-1

是在华为的板子上运行的吗?

在华为mate 30的机子上

在华为mate 30的机子上

https://docs.agora.io/cn/Video/start_call_android?platform=Android#集成-sdk可以照这个集成流程检查下,SDK包里的lib有没有放到example下的lib里,include文件也要放置

已经对照过了,arm64 机器跑armeabi-v7a 是可以的,同样的代码,同样的工程

最好的方法是除了模拟器架构,sdk包内的几个so都放置进项目里

armebi armebi-v7a arm64-v8a 都放了
android 只配置了两个
packagingOptions {
doNotStrip “/arm64-v8a/.so”
doNotStrip “armeabi.so”
}

麻烦提供下目前使用的SDK版本,最好包含build号,我解一下堆栈

cocod2d-x 3.2.0