Comments (3)
@agampe Hey any comment on this one?
from redex.
Unlikely, you should have considered the likelihood of your APK being broken before shipping an APK without debug info.
Redex is deterministic. You can try to recompile the exact source for the crashing APK, disabling the strip pass, then look at the output. If the dex bytecode is the same, you have a starting point.
If the Android version this is crashing on is new enough, in the absence of debug information the Android Runtime will print bytecode offsets. If method names are unique, or if you have multiple but only one has said offset be an instruction, then you can map back.
In general, how about you try IODI? We do not have good documentation, but there's tests that show the config, e.g., here.
When you output with IODI, debug info is indirected and shared between buckets of methods. The Play Console won't be very helpful, you will have to use the symbolicator provided with Redex to use the stack, APK and debug metadata from build time to get things like line numbers.
from redex.
Hello there @agampe , current i use iodi2 for debug_info_kind and try to recover the stack trace with "redex/tools/python/symbolicator/symbolicator.py". i find the line number is a little bit after the right place which cause crash.
Am i config right? or iodi2 debug info could be inaccurate in some cases?
the config i use:
"redex": {
"passes": [
"RegAllocPass",
"ReduceGotosPass"
]
},
"StripDebugInfoPass": {
"drop_all_dbg_info": false,
"drop_local_variables": true,
"drop_line_numbers": false,
"drop_src_files": false,
"use_allowlist": false,
"cls_allowlist": [
],
"drop_synth_aggressive": false,
"drop_synth_conservative": true,
"method_allowlist": [
],
"drop_prologue_end": true,
"drop_epilogue_begin": true,
"drop_all_dbg_info_if_empty": true
},
"debug_info_kind": "iodi2",
the correct stack :
java.lang.NullPointerException: Attempt to invoke interface method 'xxx.save(java.lang.Object)' on a null object reference
at xxx.save(Utils.java:969) <-- correct place
at xxx.Utils.lambda$xxx$1(Utils.java:263) <-- correct place
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
inaccurate stack trace i recovered is below, and i saw some weired string like "1a1c664416c38a8f31a661730f9fc0ba1e9f297230aed0cd05f2de4cd4225afa$0.run$bridge", there is no such string when i recover the stack with r8retrace from aab that is not be redexed.
java.lang.NullPointerException: Attempt to invoke interface method 'xxx.save(java.lang.Object)' on a null object reference
at xxx.Utils.save(Utils.java:971) <-- the line num is after the right place
at xxxx.Utils.lambda$xxx$1(Utils.java:269) <-- the line num is after the right place
at xxx.Utils$$InternalSyntheticLambda$1$1a1c664416c38a8f31a661730f9fc0ba1e9f297230aed0cd05f2de4cd4225afa$0.run$bridge(Utils$$InternalSyntheticLambda$1$1a1c664416c38a8f31a661730f9fc0ba1e9f297230aed0cd05f2de4cd4225afa.java:56)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
from redex.
Related Issues (20)
- run autoreconf -ivf && ./configure && make error on mac os HOT 2
- run IRTypeChecker (run_verifier) failed HOT 4
- run IRTypeChecker (run_verifier) failed #808 HOT 3
- Mac OS M1 Build failed. HOT 1
- run IRTypeChecker failed HOT 1
- run pass after apk become larger 2.7M
- make failed. HOT 2
- Evaluate Profile-Guided Optimization (PGO) and LLVM BOLT
- Sample Android Redex APK Crashing: android.view.InflateException: Error inflating class com.google.android.material.textfield.TextInputLayout HOT 3
- how to write a pass
- is there any plan support dex 39 HOT 1
- AAB release error: [DexMember = DexClass]: assertion `elems.size() == 1' failed HOT 1
- ZipManager did not unpack expected number of files; is this a case insensitive file system? Potentially conflicting files HOT 1
- UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 1374: illegal multibyte sequence HOT 1
- 037 for support_dex_version 35 HOT 1
- VirtualScope.cpp:893: void virt_scope::ClassScopes::build_interface_scopes(): assertion `!scopes.empty()' failed.
- Found duplicate class(classes from android.jar) in two different files HOT 2
- when using debug_info_kind iodi2๏ผline number from retrace stack is inaccurate. HOT 1
- redex build failed HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redex.