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

文本延迟计算fit-content时发生crash #139

Closed
WattledGnata opened this issue Jul 8, 2022 · 2 comments
Closed

文本延迟计算fit-content时发生crash #139

WattledGnata opened this issue Jul 8, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@WattledGnata
Copy link
Collaborator

WattledGnata commented Jul 8, 2022

描述这个问题

文本延迟计算fit-content时发生crash

复现步骤

预期正确的结果

截图

客户端 (请填写如下信息) :

  • GaiaX SDK版本 0.2.4
  • Gaia Studio版本
  • GaiaX 模板文件和模板数据

zhihu_hotRank_ideaCard.zip

崩溃日志


2022-07-08 10:22:15.160 7515-7515/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
2022-07-08 10:22:15.160 7515-7515/? A/DEBUG: Cause: null pointer dereference
2022-07-08 10:22:15.161 7515-7515/? A/DEBUG:     x0  0000000000000000  x1  0000000000000000  x2  0000007812c00000  x3  0000000000000000
2022-07-08 10:22:15.161 7515-7515/? A/DEBUG:     x4  0000000000000000  x5  0000000014e478cc  x6  0000000014e478c0  x7  0000000000000010
2022-07-08 10:22:15.161 7515-7515/? A/DEBUG:     x8  0101010101010101  x9  aa3c8aacf8187d51  x10 0000000000430000  x11 00000079083d5000
2022-07-08 10:22:15.161 7515-7515/? A/DEBUG:     x12 000000789afbee08  x13 0000000000000000  x14 0000000000000002  x15 000000798da3a110
2022-07-08 10:22:15.161 7515-7515/? A/DEBUG:     x16 00000078f8198ee0  x17 000000798a13e2e0  x18 00000000000000a1  x19 0000007fe065c098
2022-07-08 10:22:15.161 7515-7515/? A/DEBUG:     x20 0000000000000000  x21 0000000000000101  x22 00000000000000f9  x23 0000000000000111
2022-07-08 10:22:15.161 7515-7515/? A/DEBUG:     x24 0000007812c0f348  x25 0000000000000000  x26 0000000000000000  x27 0000000000000043
2022-07-08 10:22:15.161 7515-7515/? A/DEBUG:     x28 0000007fe065c140  x29 0000007fe065c030
2022-07-08 10:22:15.161 7515-7515/? A/DEBUG:     sp  0000007fe065c010  lr  00000078f818f838  pc  000000798a13e2f0
2022-07-08 10:22:15.235 32699-1193/com.zhihu.android.alpha E/NetProfiler: Recording request error, request: Request{method=POST, url=https://datahub.zhihu.com/collector/zlab, tags={}}, response: Response{protocol=http/1.1, code=422, message=Unprocessable Entity, url=https://datahub.zhihu.com/collector/zlab}, exception: null
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG: backtrace:
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #00 pc 000000000006c2f0  /apex/com.android.runtime/lib64/bionic/libc.so (strlen+16) (BuildId: b91c775ccc9b0556e91bc575a2511cd0)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #01 pc 0000000000002834  /data/app/com.zhihu.android.alpha-DHGSU3313NUc0FM6_y0DHQ==/lib/arm64/libGXAnalyzeAndroid.so (_ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2IDnEEPKc+36) (BuildId: 2b0650114f739efd096ace77035d9d8f082ee034)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #02 pc 000000000000270c  /data/app/com.zhihu.android.alpha-DHGSU3313NUc0FM6_y0DHQ==/lib/arm64/libGXAnalyzeAndroid.so (jstring2str(_JNIEnv*, _jstring*)+288) (BuildId: 2b0650114f739efd096ace77035d9d8f082ee034)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #03 pc 0000000000002fa4  /data/app/com.zhihu.android.alpha-DHGSU3313NUc0FM6_y0DHQ==/lib/arm64/libGXAnalyzeAndroid.so (Java_com_alibaba_gaiax_analyze_GXAnalyze_00024Companion_createValueString+72) (BuildId: 2b0650114f739efd096ace77035d9d8f082ee034)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #04 pc 0000000000150350  /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #05 pc 00000000024e6a90  /memfd:/jit-cache (deleted) (com.zhihu.android.register.GXExtensionExpression$GXAnalyzeWrapper$Companion$1.computeValueExpression+1472)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #06 pc 0000000000147334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #07 pc 00000000001561b4  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+252) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #08 pc 00000000004d8834  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #09 pc 00000000004d9b84  /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+424) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #10 pc 00000000003af4d0  /apex/com.android.runtime/lib64/libart.so (art::JNI::CallLongMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+656) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #11 pc 00000000000037ec  /data/app/com.zhihu.android.alpha-DHGSU3313NUc0FM6_y0DHQ==/lib/arm64/libGXAnalyzeAndroid.so (_JNIEnv::CallLongMethod(_jobject*, _jmethodID*, ...)+116) (BuildId: 2b0650114f739efd096ace77035d9d8f082ee034)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #12 pc 0000000000003308  /data/app/com.zhihu.android.alpha-DHGSU3313NUc0FM6_y0DHQ==/lib/arm64/libGXAnalyzeAndroid.so (GXJniAnalyze::getSourceValue(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>>, void*)+308) (BuildId: 2b0650114f739efd096ace77035d9d8f082ee034)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #13 pc 0000000000059da4  /data/app/com.zhihu.android.alpha-DHGSU3313NUc0FM6_y0DHQ==/lib/arm64/libGXAnalyzeCore.so (GXAnalyze::check(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>>, std::__ndk1::vector<GXATSNode, std::__ndk1::allocator<GXATSNode>>, void*, void*)+5200) (BuildId: 9323f07de8a57c4af16f5a09e7e516985bc99bf0)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #14 pc 0000000000058380  /data/app/com.zhihu.android.alpha-DHGSU3313NUc0FM6_y0DHQ==/lib/arm64/libGXAnalyzeCore.so (GXAnalyze::getValue(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>>, void*)+864) (BuildId: 9323f07de8a57c4af16f5a09e7e516985bc99bf0)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #15 pc 0000000000002bc0  /data/app/com.zhihu.android.alpha-DHGSU3313NUc0FM6_y0DHQ==/lib/arm64/libGXAnalyzeAndroid.so (Java_com_alibaba_gaiax_analyze_GXAnalyze_getResultNative+224) (BuildId: 2b0650114f739efd096ace77035d9d8f082ee034)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #16 pc 0000000000150350  /apex/com.android.runti
me/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #17 pc 00000000024d4830  /memfd:/jit-cache (deleted) (com.alibaba.gaiax.analyze.GXAnalyze.getResult+560)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #18 pc 00000000021777cc  /memfd:/jit-cache (deleted) (com.zhihu.android.register.GXExtensionExpression$GXAnalyzeWrapper.value+108)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #19 pc 000000000222e558  /memfd:/jit-cache (deleted) (com.alibaba.gaiax.template.GXDataBinding.getData+120)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #20 pc 00000000020d55bc  /memfd:/jit-cache (deleted) (com.alibaba.gaiax.render.node.GXTemplateNode.getData+124)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #21 pc 0000000002482408  /memfd:/jit-cache (deleted) (com.alibaba.gaiax.render.node.text.GXFitContentUtils.getMeasureContent+88)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #22 pc 00000000024f322c  /memfd:/jit-cache (deleted) (com.alibaba.gaiax.render.node.text.GXFitContentUtils.fitContent+636)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #23 pc 000000000211a1b4  /memfd:/jit-cache (deleted) (com.alibaba.gaiax.render.node.GXStretchNode.updateLayoutByFitContent+116)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #24 pc 00000000024f3ff0  /memfd:/jit-cache (deleted) (com.alibaba.gaiax.render.node.GXStretchNode.updateTextLayoutByFitContent+320)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #25 pc 00000000024ee8e4  /memfd:/jit-cache (deleted) (com.alibaba.gaiax.render.node.GXNodeTreeUpdater.updateNodeTreeLayoutByDirtyText+900)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #26 pc 0000000000147334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #27 pc 00000000001561b4  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+252) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #28 pc 00000000002fd900  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #29 pc 00000000002f8bd0  /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+912) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #30 pc 00000000005cd910  /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+400) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #31 pc 0000000000141914  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #32 pc 0000000000007eec  [anon:dalvik-classes12.dex extracted in memory from /data/app/com.zhihu.android.alpha-DHGSU3313NUc0FM6_y0DHQ==/base.apk!classes12.dex] (com.alibaba.gaiax.render.node.GXNodeTreeUpdater.buildNodeLayout+100)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #33 pc 00000000005cb874  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1432) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #34 pc 0000000000141814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #35 pc 000000000000721c  [anon:dalvik-classes12.dex extracted in memory from /data/app/com.zhihu.android.alpha-DHGSU3313NUc0FM6_y0DHQ==/base.apk!classes12.dex] (com.alibaba.gaiax.render.GXRenderImpl.bindViewDataOnlyNodeTree+28)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #36 pc 00000000005cb874  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1432) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #37 pc 0000000000141814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #38 pc 0000000000009e80  [anon:dalvik-classes17.dex extracted in memory from /data/app/com.zhihu.android.alpha-DHGSU3313NUc0FM6_y0DHQ==/base.apk!classes17.dex] (com.alibaba.gaiax.GXTemplateEngine.internalBindData+40)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #39 pc 00000000005cdc10  /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+1168) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #40 pc 0000000000141914  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #41 pc 0000000000009d2a  [anon:dalvik-classes17.dex extracted in memory from /data/app/com.zhihu.android.alpha-DHGSU3313NUc0FM6_y0DHQ==/base.apk!classes17.dex] (com.alibaba.gaiax.GXTemplateEngine.bindData+22)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #42 pc 00000000005cb874  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1432) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #43 pc 0000000000141814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #44 pc 0000000000009cfa  [anon:dalvik-classes17.dex extracted in memory from /data/app/com.zhihu.android.alpha-DHGSU3313NUc0FM6_y0DHQ==/base.apk!classes17.dex] (com.alibaba.gaiax.GXTemplateEngine.bindData$default+14)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #45 pc 00000000005d1188  /apex/com.android.runtime/lib64/libart.so (MterpInvokeStaticRange+768) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #46 pc 0000000000141c94  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static_range+20) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #47 pc 000000000001281a  [anon:dalvik-classes14.dex extracted in memory from /data/app/com.zhihu.android.alpha-DHGSU3313NUc0FM6_y0DHQ==/base.apk!classes14.dex] (com.zhihu.android.baseview.ZHTemplateView.bindData+142)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #48 pc 00000000002ce22c  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.1772238600391939451+320) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #49 pc 00000000005bc0a4  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1012) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #50 pc 0000000000150468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #51 pc 0000000002467100  /memfd:/jit-cache (deleted) (com.zhihu.android.app.feed.ui.holder.pin.FeedHotPinTrendTemplateHolder.onBindData+656)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #52 pc 0000000000147334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #53 pc 00000000001561b4  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+252) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #54 pc 00000000002fd900  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #55 pc 00000000002f8bd0  /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+912) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #56 pc 00000000005cb564  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+648) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #57 pc 0000000000141814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #58 pc 0000000000078030  [anon:dalvik-classes8.dex extracted in memory from /data/app/com.zhihu.android.alpha-DHGSU3313NUc0FM6_y0DHQ==/base.apk!classes8.dex] (com.zhihu.android.app.feed.ui.holder.pin.FeedHotPinTrendTemplateHolder.onBindData+4)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #59 pc 00000000002ce22c  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.1772238600391939451+320) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #60 pc 00000000005bc0a4  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1012) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #61 pc 0000000000150468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #62 pc 0000000002525374  /memfd:/jit-cache (deleted) (com.zhihu.android.sugaradapter.SugarHolder.onBindData+52)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #63 pc 0000000002434d10  /memfd:/jit-cache (deleted) (com.zhihu.android.sugaradapter.SugarAdapter.onBindViewHolderInternal+240)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #64 pc 000000000251b248  /memfd:/jit-cache (deleted) (com.zhihu.android.sugaradapter.SugarAdapter.onBindViewHolder+56)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #65 pc 0000000002506d74  /memfd:/jit-cache (deleted) (com.zhihu.android.sugaradapter.SugarAdapter.onBindViewHolder+100)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #66 pc 00000000024ba338  /memfd:/jit-cache (deleted) (androidx.recyclerview.widget.RecyclerView$Adapter.bindViewHolder+280)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #67 pc 0000000002435eac  /memfd:/jit-cache (deleted) (androidx.recyclerview.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline+300)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #68 pc 00000000022c31f8  /memfd:/jit-cache (deleted) (androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline+2984)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #69 pc 00000000024a71ec  /memfd:/jit-cache (deleted) (androidx.recyclerview.widget.GapWorker.prefetchPositionWithDeadline+156)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #70 pc 00000000024df134  /memfd:/jit-cache (deleted) (androidx.recyclerview.widget.GapWorker.flushTaskWithDeadline+100)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #71 pc 00000000021f2ee0  /memfd:/jit-cache (deleted) (androidx.recyclerview.widget.GapWorker.flushTasksWithDeadline+208)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #72 pc 0000000002151460  /memfd:/jit-cache (deleted) (androidx.recyclerview.widget.GapWorker.prefetch+64)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #73 pc 000000000206bdf4  /memfd:/jit-cache (deleted) (androidx.recyclerview.widget.GapWorker.run+452)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #74 pc 000000000224c6f4  /memfd:/jit-cache (deleted) (android.os.Handler.handleCallback+68)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #75 pc 00000000021f4fd0  /memfd:/jit-cache (deleted) (android.os.Handler.dispatchMessage+64)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #76 pc 000000000225b850  /memfd:/jit-cache (deleted) (android.os.Looper.loop+1264)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #77 pc 000000000014763c  /apex/com.android.runtime/lib64/libart.so (art_quick_osr_stub+60) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #78 pc 00000000003522d8  /apex/com.android.runtime/lib64/libart.so (art::jit::Jit::MaybeDoOnStackReplacement(art::Thread*, art::ArtMethod*, unsigned int, int, art::JValue*)+1660) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.391 7515-7515/? A/DEBUG:       #79 pc 00000000005d6448  /apex/com.android.runtime/lib64/libart.so (MterpMaybeDoOnStackReplacement+212) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #80 pc 0000000000146350  /apex/com.android.runtime/lib64/libart.so (MterpHelpers+240) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #81 pc 0000000000338374  /system/framework/framework.jar (android.os.Looper.loop+1096)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #82 pc 00000000005ce41c  /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1136) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #83 pc 0000000000141994  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #84 pc 00000000001ac28c  /system/framework/framework.jar (android.app.ActivityThread.main+1372)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #85 pc 00000000002ce22c  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.1772238600391939451+320) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #86 pc 00000000005bc0a4  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1012) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #87 pc 0000000000150468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #88 pc 00000000001475b8  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #89 pc 00000000001561d4  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+284) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #90 pc 00000000004d8834  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #91 pc 00000000004da25c  /apex/com.android.runtime/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1476) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #92 pc 0000000000464140  /apex/com.android.runtime/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #93 pc 00000000000f8c34  /system/framework/arm64/boot.oat (art_jni_trampoline+180) (BuildId: 768feb95dda67c14bbc292716a53edbcf032c348)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #94 pc 0000000000147334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #95 pc 00000000001561b4  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+252) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #96 pc 00000000002fd900  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #97 pc 00000000002f8bd0  /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+912) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #98 pc 00000000005cb564  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+648) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #99 pc 0000000000141814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #100 pc 0000000000400f9a  /system/framework/framework.jar (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+22)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #101 pc 00000000002ce22c  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.1772238600391939451+320) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #102 pc 00000000005bc0a4  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1012) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #103 pc 0000000000150468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #104 pc 0000000000b257fc  /system/framework/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+3660) (BuildId: b89901c9780567a8e2663ffdf5cbfc24f2dffc4a)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #105 pc 00000000001475b8  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #106 pc 00000000001561d4  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+284) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #107 pc 00000000004d8834  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #108 pc 00000000004d84a0  /apex/com.android.runtime/lib64/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+408) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #109 pc 00000000003d7cf8  /apex/com.android.runtime/lib64/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+660) (BuildId: 762960c75ada06c48e438df6df29b0a1)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #110 pc 00000000001015c4  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+116) (BuildId: e99b2e2e44982c12a4dc2e20fbdbab43)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #111 pc 0000000000104c48  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+1248) (BuildId: e99b2e2e44982c12a4dc2e20fbdbab43)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #112 pc 00000000000034e0  /system/bin/app_process64 (main+1168) (BuildId: e844be217eb39b34490d3798328d1f12)
2022-07-08 10:22:15.392 7515-7515/? A/DEBUG:       #113 pc 000000000006b108  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108) (BuildId: b91c775ccc9b0556e91bc575a2511cd0)

附加信息

为了适配SP,本次需求临时解决方案,在bindData之后,给文本框重新设置了字体大小(使用SP)
image

@biezhihua
Copy link
Collaborator

除了Crash。在优酷的使用经验中,使用SP适配文字好像是有瑕疵的,所以我们这边用的都是DP做的文字适配。

@biezhihua
Copy link
Collaborator

https://stackoverflow.com/questions/2025282/what-is-the-difference-between-px-dip-dp-and-sp

SP和DP类似,都会受到屏幕像素密度的影响,此外SP还会收到用户字体的影响。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants