Comments (10)
Ouch, looks like a nasty bug. Would you be able to share your APK with us to make debugging easier? In the meantime, you can disable the offending pass by creating a config file. If you follow the "Selecting Optimization Passes" section from our config how-to and remove SynthPass from the list, that'll get past the error.
from redex.
I encountered the same problem, how can I get around this problem
subprocess.CalledProcessError: Command 'redex-all --apkdir /tmp/tmpitct8vym.redex_extracted_apk --outdir /tmp/tmpwvwxmixk.redex_dexen /tmp/tmpwvwxmixk.redex_dexen/dex0/classes.dex /tmp/tmpwvwxmixk.redex_dexen/dex1/classes2.dex /tmp/tmpwvwxmixk.redex_dexen/dex2/classes3.dex' returned non-zero exit status 134
from redex.
@dssljt If you're seeing the same assertion failure, you can try my suggestion above (create a configuration file that removes SynthPass).
from redex.
i had remove SynthPass from he "Selecting Optimization Passes" section ,but can not get around this problem
opt/bridge/Bridge.cpp:292: void BridgeRemover::delete_unused_bridgees(): assertion `bridge->is_virtual()' failed.
bridge: public static com.alibaba.fastjson.parser.JavaBeanMapping.getGlobalInstance()Lcom/alibaba/fastjson/parser/ParserConfig;
bridgee: public static com.alibaba.fastjson.parser.JavaBeanMapping.getGlobalInstance()Lcom/alibaba/fastjson/parser/JavaBeanMapping;
redex-all[0x4150fa]
/lib/x86_64-linux-gnu/libc.so.6(+0x352f0)[0x7f8ad270b2f0]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37)[0x7f8ad270b267]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f8ad270ceca]
redex-all[0x4150c6]
redex-all[0x49fe3f]
redex-all[0x4412b8]
redex-all[0x40ad83]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f8ad26f6a40]
redex-all[0x40bdc9]
Aborted (core dumped)
Traceback (most recent call last):
File "./redex", line 779, in
run_redex(args)
File "./redex", line 735, in run_redex
dexen)
File "./redex", line 110, in run_pass
subprocess.check_call(args, shell=True)
File "/usr/lib/python3.4/subprocess.py", line 561, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'redex-all --apkdir /tmp/tmpe1aygv1h.redex_extracted_apk --outdir /tmp/tmp4829hc0y.redex_dexen /tmp/tmp4829hc0y.redex_dexen/dex0/classes.dex /tmp/tmp4829hc0y.redex_dexen/dex1/classes2.dex /tmp/tmp4829hc0y.redex_dexen/dex2/classes3.dex' returned non-zero exit status 134
from redex.
That's an interesting one... you can disable BridgePass too to get past that failure, but I might be able to debug that one in short order. I'll take a deeper look tomorrow.
from redex.
Hey @247687009, I've been trying to repro that crash but have had no luck -- it's a scenario that "should be" impossible (but clearly isn't). Would you be willing to share your APK? If not, would you mind setting TRACE=SYNT:5 TRACEFILE=/tmp/trace in your environment and pasting the contents of /tmp/trace somewhere I can have a look? That would be an immense help in debugging. Thanks!
from redex.
I am getting similar error
Assertion failed: (ssms.wrapped.find(callee) == ssms.wrapped.end()), function replace_wrappers, file opt/synth/Synth.cpp, line 560.
0 redex-all 0x0000000109e2a604 _Z15crash_backtracei + 52
1 libsystem_platform.dylib 0x00007fff9bac752a _sigtramp + 26
2 libsystem_malloc.dylib 0x00007fff938cbb10 szone_free_definite_size + 1938
3 libsystem_c.dylib 0x00007fff8c0436e7 abort + 129
4 libsystem_c.dylib 0x00007fff8c00adf8 basename + 0
5 redex-all 0x0000000109ed47bd _Z16replace_wrappersP9DexMethodP7DexCodeR14WrapperMethods + 1325
6 redex-all 0x0000000109ed5e52 _Z9transformRKNSt3__16vectorIP8DexClassNS_9allocatorIS2_EEEER14WrapperMethodsRK11SynthConfig + 130
7 redex-all 0x0000000109ed68d7 _ZN9SynthPass8run_passERNSt3__16vectorI10DexClassesNS0_9allocatorIS2_EEEER11ConfigFiles + 247
8 redex-all 0x0000000109e4963a _ZN11PassManager10run_passesERNSt3__16vectorI10DexClassesNS0_9allocatorIS2_EEEER11ConfigFiles + 378
9 redex-all 0x0000000109e1c287 main + 2263
10 libdyld.dylib 0x00007fff93d765ad start + 1
11 ??? 0x0000000000000006 0x0 + 6
Traceback (most recent call last):
File "/usr/local/bin/redex", line 788, in
run_redex(args)
File "/usr/local/bin/redex", line 744, in run_redex
dexen)
File "/usr/local/bin/redex", line 115, in run_pass
subprocess.check_call(args, shell=True)
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 584, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/usr/local/bin/redex-all --apkdir /var/folders/87/7jw0ppy107n580fkz6rtfpyx0wy7h2/T/tmpsvxztm_d.redex_extracted_apk --outdir /var/folders/87/7jw0ppy107n580fkz6rtfpyx0wy7h2/T/tmpvrz5newg.redex_dexen /var/folders/87/7jw0ppy107n580fkz6rtfpyx0wy7h2/T/tmpvrz5newg.redex_dexen/dex0/classes.dex' returned non-zero exit status -6
from redex.
@ankurgupta001 , can you share the APK that exhibits this? I could solve this very quickly if I had a repro.
from redex.
Please use the below link to download the apk.
https://drive.google.com/folderview?id=0B5oRvQlns1LvLW5nVVA1ckxWeVk&usp=sharing
from redex.
Sweet, thanks, that repros for me. I'll work on it tomorrow morning!
from redex.
Related Issues (20)
- run autoreconf -ivf && ./configure && make failed HOT 3
- run autoreconf -ivf && ./configure && make failed HOT 5
- ExitCode::exception /redex/libredex/ControlFlow.h:1375 HOT 2
- 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
- Is there any advice to recover crash stack trace line number in android firebase platform after use "StripDebugInfoPass"? HOT 2
- 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.
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.