Skip to content
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

table.move 在安卓真机上crash #31

Open
uncleciba opened this issue Oct 5, 2020 · 1 comment
Open

table.move 在安卓真机上crash #31

uncleciba opened this issue Oct 5, 2020 · 1 comment

Comments

@uncleciba
Copy link

uncleciba commented Oct 5, 2020

测试代码:
function ArrayTest(obj1, obj2)
Debugger.Log("table.move test")
local a1 = {}
a1[1] = obj1
a1[2] = obj2
a2 = {}
table.move(a1, 1, #a1, 1, a2)
Debugger.Log("table.move test end:" .. #a2)
end
ArrayTest({ a = 1, b = 1 }, { a = 2, b = 2 })

在UnityEditor可以,安卓真机crash,log如下:
image

2020-10-05 09:55:04.547 26052-26111/? I/Unity: 09:55:04.544-342: table.move test

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)

2020-10-05 09:55:04.642 26052-26111/? E/CRASH: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000010
2020-10-05 09:55:04.642 26052-26111/? E/CRASH: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2020-10-05 09:55:04.642 26052-26111/? E/CRASH: Build type 'Release', Scripting Backend 'mono', CPU 'armeabi-v7a'
2020-10-05 09:55:04.643 26052-26111/? E/CRASH: Build fingerprint: 'OnePlus/OnePlus3/OnePlus3T:8.0.0/OPR1.170623.032/1809142043:user/release-keys'
2020-10-05 09:55:04.643 26052-26111/? E/CRASH: Revision: '0'
2020-10-05 09:55:04.643 26052-26111/? E/CRASH: pid: 26052, tid: 26111, name: UnityMain >>> com.uncleciba.spacevs2 <<<
2020-10-05 09:55:04.643 26052-26111/? E/CRASH: r0 00000008 r1 00000000 r2 00000000 r3 00000018
2020-10-05 09:55:04.643 26052-26111/? E/CRASH: r4 00000003 r5 a473b7b8 r6 00000008 r7 00000000
2020-10-05 09:55:04.643 26052-26111/? E/CRASH: r8 00000008 r9 a4763658 sl 00000000 fp b658e280
2020-10-05 09:55:04.643 26052-26111/? E/CRASH: ip 00000000 sp cbcf9640 lr aaae1604 pc aaadf0f8 cpsr 000065ff
2020-10-05 09:55:04.643 26052-26111/? E/CRASH: backtrace:
2020-10-05 09:55:04.645 26052-26111/? E/CRASH: #00 pc 0001e0f8 /data/app/com.uncleciba.spacevs2-VOvzyKKvv-pZMJyezTmoYg==/lib/arm/libtolua.so
2020-10-05 09:55:04.645 26052-26111/? E/CRASH: #1 pc 00020600 /data/app/com.uncleciba.spacevs2-VOvzyKKvv-pZMJyezTmoYg==/lib/arm/libtolua.so
2020-10-05 09:55:04.646 26052-26111/? E/CRASH: #2 il ........ at (wrapper managed-to-native) LuaInterface.LuaDLL.lua_pcall (intptr,int,int,int) <0xffffffff>
2020-10-05 09:55:04.646 26052-26111/? E/CRASH: #3 il 00000038 at LuaInterface.LuaStatePtr.LuaPCall (int,int,int) <0x00038>
2020-10-05 09:55:04.646 26052-26111/? E/CRASH: #4 il 00000067 at LuaInterface.LuaState.LuaLoadBuffer (byte[],string) <0x00067>
2020-10-05 09:55:04.646 26052-26111/? E/CRASH: #5 il 00000047 at LuaInterface.LuaState.DoFile (string) <0x00047>

@LBCross
Copy link

LBCross commented Sep 6, 2022

手机的lua版本跟windows版本不一样把,比如手机是5.1,但是windows是5.3
直接 table.move = nil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants