-
Notifications
You must be signed in to change notification settings - Fork 115
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
实例化对象的时候报错 #26
Comments
感谢您的反馈,我这边先检查一下问题 |
您好,问题已经修复并推送到master上了,再次感谢您的反馈😊 |
请问是什么原因呢? |
这个是之前调整了TypeDescription后,Object对象没有调整引起的,还是测试覆盖不全面导致,实在不好意思🤦♂️ |
大佬客气了。最近因为操3端,发现同样的代码,3个地方都得写。还容易错,一改需求3端都得改。本来想用js找了半天没有落地。偶然发现大佬的lua方案,简直像发现新大陆,最近还在验证可行性和稳定性,准备3端都把压力转到lua上。谢谢大佬的分享和维护。 |
客气了,感谢关注和使用LSC,有什么问题可以随时向我反馈😊 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Build fingerprint: 'google/sdk_gphone_x86/generic_x86:10/QSR1.190920.001/5891938:user/release-keys'
Revision: '0'
ABI: 'x86'
Timestamp: 2020-05-06 09:23:19+0000
pid: 24117, tid: 24117, name: com.abb.news >>> com.abb.news <<<
uid: 10137
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x24
Cause: null pointer dereference
eax 00000024 ebx c4f75c00 ecx 00000024 edx ffcd7ca0
edi 00000024 esi ffcd7dd8
ebp ffcd7cc8 esp ffcd7c20 eip c4d36ea4
backtrace:
#00 pc 00071ea4 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator>::basic_string(std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator<c
#1 pc 0016314b /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (cn::vimfung::luascriptcore::LuaExportTypeDescriptor::prototypeTypeName()+59) (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#2 pc 0015c2d5 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#3 pc 0015bf51 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#4 pc 0015bd14 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#5 pc 001baf9b /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (std::__ndk1::function<void ()>::operator()() const+203) (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#6 pc 001baea2 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (cn::vimfung::luascriptcore::LuaOperationQueue::performAction(std::__ndk1::function<void ()> const&)+82) (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#7 pc 00148295 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (cn::vimfung::luascriptcore::LuaExportsTypeManager::_bindLuaInstance(cn::vimfung::luascriptcore::LuaObjectDescriptor*)+149) (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#8 pc 0015aefe /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#9 pc 0015ae71 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#10 pc 0015ac34 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#11 pc 001baf9b /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (std::__ndk1::function<void ()>::operator()() const+203) (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#12 pc 001baea2 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (cn::vimfung::luascriptcore::LuaOperationQueue::performAction(std::__ndk1::function<void ()> const&)+82) (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#13 pc 00147f15 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (cn::vimfung::luascriptcore::LuaExportsTypeManager::_initLuaObject(cn::vimfung::luascriptcore::LuaObjectDescriptor*)+149) (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#14 pc 00150a0e /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#15 pc 000affd6 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#16 pc 000b02fd /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#17 pc 000dfb2c /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#18 pc 000b06b2 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#19 pc 000b07bc /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#20 pc 0009e46e /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#21 pc 000af2d0 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#22 pc 000b10b8 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#23 pc 0009e2eb /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (lua_pcallk+267) (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#24 pc 00143bc3 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (cn::vimfung::luascriptcore::LuaEngineAdapter::pCall(lua_State*, int, int, int)+147) (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#25 pc 000f67d1 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#26 pc 000f6601 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#27 pc 000f63c4 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#28 pc 001baf9b /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (std::__ndk1::function<void ()>::operator()() const+203) (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#29 pc 001baea2 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (cn::vimfung::luascriptcore::LuaOperationQueue::performAction(std::__ndk1::function<void ()> const&)+82) (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#30 pc 000e41f7 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (cn::vimfung::luascriptcore::LuaContext::evalScriptFromFile(std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator> const&)+151) (BuildId: 6e4b68972a19f3381f95
#31 pc 0006dea0 /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/lib/x86/libLuaScriptCore.so (Java_cn_vimfung_luascriptcore_LuaNativeUtil_evalScriptFromFile+304) (BuildId: 6e4b68972a19f3381f9560965048049d62ea2f11)
#32 pc 00144f67 /apex/com.android.runtime/lib/libart.so (art_quick_generic_jni_trampoline+71) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#33 pc 0013e9a2 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_static_stub+418) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#34 pc 00149a7a /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+298) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#35 pc 00332502 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+386) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#36 pc 0032c19c /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+988) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#37 pc 00684d03 /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+643) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#38 pc 001389a1 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#39 pc 00197722 [anon:dalvik-classes.dex extracted in memory from /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/base.apk] (cn.vimfung.luascriptcore.LuaContext.evalScriptFromFile+122)
#40 pc 00681adc /apex/com.android.runtime/lib/libart.so (MterpInvokeVirtual+1612) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#41 pc 00138821 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#42 pc 0001c650 [anon:dalvik-classes2.dex extracted in memory from /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/base.apk!classes2.dex] (com.cqaibeibei.android.luobokandian.app.MainAppActivity.initLua+32)
#43 pc 006845ac /apex/com.android.runtime/lib/libart.so (MterpInvokeDirect+1324) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#44 pc 00138921 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_direct+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#45 pc 0001c5b4 [anon:dalvik-classes2.dex extracted in memory from /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/base.apk!classes2.dex] (com.cqaibeibei.android.luobokandian.app.MainAppActivity.access$200)
#46 pc 00684f6c /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+1260) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#47 pc 001389a1 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#48 pc 0001c464 [anon:dalvik-classes2.dex extracted in memory from /data/app/com.abb.news-EQk9JoOW3zTFc7puuqvbig==/base.apk!classes2.dex] (com.cqaibeibei.android.luobokandian.app.MainAppActivity$1$1.run+180)
#49 pc 006837bc /apex/com.android.runtime/lib/libart.so (MterpInvokeInterface+1980) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#50 pc 00138a21 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_interface+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#51 pc 002f5918 /system/framework/framework.jar (android.os.Handler.handleCallback+4)
#52 pc 00684f6c /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+1260) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#53 pc 001389a1 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#54 pc 002f5784 /system/framework/framework.jar (android.os.Handler.dispatchMessage+8)
#55 pc 00681adc /apex/com.android.runtime/lib/libart.so (MterpInvokeVirtual+1612) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#56 pc 00138821 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#57 pc 00319eda /system/framework/framework.jar (android.os.Looper.loop+466)
#58 pc 00684f6c /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+1260) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#59 pc 001389a1 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#60 pc 0018945e /system/framework/framework.jar (android.app.ActivityThread.main+194)
#61 pc 002f8e0a /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.12194892193087984976+298) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#62 pc 002ffcc5 /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+181) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#63 pc 0066fbd9 /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+1209) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#64 pc 0014503d /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+77) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#65 pc 0013e9a2 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_static_stub+418) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#66 pc 00149a7a /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+298) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#67 pc 0055a513 /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+99) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#68 pc 0055c32f /apex/com.android.runtime/lib/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned int)+1327) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#69 pc 004c9153 /apex/com.android.runtime/lib/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+83) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#70 pc 000c6bf8 /system/framework/x86/boot.oat (art_jni_trampoline+168) (BuildId: 7913dbaef2e8d9971cb7619ef0d566987f8326a7)
#71 pc 0013e7d2 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+338) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#72 pc 00149a69 /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+281) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#73 pc 00332502 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+386) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#74 pc 0032c19c /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+988) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#75 pc 0068186d /apex/com.android.runtime/lib/libart.so (MterpInvokeVirtual+989) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#76 pc 00138821 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#77 pc 0034cd36 /system/framework/framework.jar (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+22)
#78 pc 002f8e0a /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.12194892193087984976+298) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#79 pc 002ffcc5 /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+181) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#80 pc 0066fbd9 /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+1209) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#81 pc 0014503d /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+77) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#82 pc 00998b08 /system/framework/x86/boot-framework.oat (com.android.internal.os.ZygoteInit.main+1816) (BuildId: ff6ec03dd8445d20788424c92ba8ea28ad0f54f4)
#83 pc 0013e9a2 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_static_stub+418) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#84 pc 00149a7a /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+298) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#85 pc 0055a513 /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+99) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#86 pc 0055a1ae /apex/com.android.runtime/lib/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, char*)+430) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#87 pc 004305cd /apex/com.android.runtime/lib/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, char*)+893) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#88 pc 003d93bf /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::CheckJNI::CallMethodV(char const*, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, char*, art::Primitive::Type, art::InvokeType)+2847) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#89 pc 003c7509 /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::CheckJNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, char*)+73) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
#90 pc 000b25fe /system/lib/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+62) (BuildId: 6ceb9761bceb97a18c92f8a4b7072247)
#91 pc 000b628a /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vectorandroid::String8 const&, bool)+794) (BuildId: 6ceb9761bceb97a18c92f8a4b7072247)
#92 pc 00003632 /system/bin/app_process32 (main+1490) (BuildId: b7a60bc7d078521421fd5a8d201915ae)
#93 pc 000898e8 /apex/com.android.runtime/lib/bionic/libc.so (__libc_init+120) (BuildId: 76290498408016ad14f4b98c3ab6c65c)
s.Debug: failed to get memory consumption info: -1
main.lua
local obj = Object();
function init()
log("asdfasdf")
end
The text was updated successfully, but these errors were encountered: