RuntimeError: redex-all crashed with exit code -6! You can re-run it under gdb by running /tmp/redex.beKGO2/redex-gdb-4df9a653.sh or under lldb by running /tmp/redex.beKGO2/redex-lldb-9npd6wlf.sh
who can tell me why? thanks
command:
ANDROID_SDK=/Users/zhangyuehuan/Library/Android/sdk
redex --sign -s /Users/zhangyuehuan/workspace/500w_android/tool/keystore/m2u/release/ -a wanandroid -p wanandroid -c ~/Desktop/interdex_stripdebuginfo.config -P /Users/zhangyuehuan/workspace/500w_android/app/proguard-rules.pro -o ~/Desktop/app-release-proguardwithr8-stripdebuginfo-interdex.apk ~/Desktop/tinyApk/M2U-test-normalrelease-2.7.8.20781_x64-20220107_mr278.apk
outputs:
RACE_CLASS_FILE=
TRACE_CLASS_NAME=
Trace settings:
TRACEFILE=
SHOW_TIMESTAMPS=
SHOW_TRACEMODULE=
TRACE_METHOD_FILTER=
Unimplemented command (skipping): -ignorewarnings at line 1
Unimplemented command (skipping): -renamesourcefileattribute at line 6
Unimplemented command (skipping): -ignorewarnings at line 364
Expecting field or member specification but got synchronized at line 382
Unimplemented command (skipping): -ignorewarnings at line 501
Found 1 parse errors
Parsed ProGuard config file completed in 0.0 seconds
Load classes from dexes completed in 1.4 seconds
Load library jars completed in 0.6 seconds
Deobfuscating dex elements completed in 0.4 seconds
Process keep for whyareyoukeeping completed in 0.0 seconds
Process keep for classes and members completed in 1.7 seconds
Process keep for assumenosideeffects completed in 0.0 seconds
Processing proguard rules completed in 1.8 seconds
No Optimizations Rules completed in 0.0 seconds
Mark keep-methods completed in 0.0 seconds
Computing XML reachability completed in 0.1 seconds
Computing native reachability completed in 0.4 seconds
Analyzing reflection completed in 0.1 seconds
Analyzing Serializable completed in 0.0 seconds
Initializing for json serde completed in 0.0 seconds
Initializing reachable classes completed in 0.6 seconds
Redex_frontend completed in 4.8 seconds
API Level Checker completed in 0.1 seconds
WARNING: No inliner config
Evaluating StripDebugInfoPass...
StripDebugInfoPass (eval) completed in 0.0 seconds
Evaluating InterDexPass...
InterDexPass (eval) completed in 0.0 seconds
Evaluating RegAllocPass...
RegAllocPass (eval) completed in 0.0 seconds
Running IRTypeChecker...
libc++abi: terminating with uncaught exception of type boost::exception_detail::error_info_injector<RedexException>: libredex/PassManager.cpp:275: static boost::optionalstd::string (anonymous namespace)::CheckerConfig::run_verifier(const Scope &, bool, bool, bool, bool, bool): assertion `!exit_on_fail' failed.
Inconsistency found in Dex code for Lcom/yxcorp/gifshow/album/AlbumPerformanceOptOption$c;.createFromParcel:(Landroid/os/Parcel;)Ljava/lang/Object;
Type error in method Lcom/yxcorp/gifshow/album/AlbumPerformanceOptOption$c;.createFromParcel:(Landroid/os/Parcel;)Ljava/lang/Object; at instruction 'INVOKE_DIRECT v0, v1, v4, v5, v2, Lcom/yxcorp/gifshow/album/AlbumPerformanceOptOption;.
0 redex-all 0x000000011033a811 _Z23debug_backtrace_handleri + 81
1 libsystem_platform.dylib 0x00007fff204cdd7d _sigtramp + 29
2 ??? 0x00007ff300000400 0x0 + 140681653781504
3 libsystem_c.dylib 0x00007fff203dd406 abort + 125
4 libc++abi.dylib 0x00007fff2044bef2 abort_message + 241
5 libc++abi.dylib 0x00007fff2043d5e5 _ZL28demangling_terminate_handlerv + 242
6 libobjc.A.dylib 0x00007fff20336595 _ZL15_objc_terminatev + 104
7 libc++abi.dylib 0x00007fff2044b307 _ZSt11__terminatePFvvE + 8
8 libc++abi.dylib 0x00007fff2044dbeb __cxa_get_exception_ptr + 0
9 libc++abi.dylib 0x00007fff2044dbb2 _ZN10__cxxabiv1L22exception_cleanup_funcE19_Unwind_Reason_CodeP17_Unwind_Exception + 0
10 redex-all 0x000000011033ae01 _Z11assert_failPKcS0_jS0_10RedexErrorS0_z + 913
11 redex-all 0x00000001104ac43d _ZN12_GLOBAL__N_113CheckerConfig12run_verifierERKNSt3__16vectorIP8DexClassNS1_9allocatorIS4_EEEEbbbbb + 4221
12 redex-all 0x00000001104a4c58 _ZN11PassManager10run_passesERNSt3__16vectorI8DexStoreNS0_9allocatorIS2_EEEER11ConfigFiles + 6136
13 redex-all 0x00000001102c2984 main + 2852
14 libdyld.dylib 0x00007fff204a3f3d start + 1
Traceback (most recent call last):
File "/tmp/redex.beKGO2/redex.py", line 1262, in
~~The access should be valid. I will commit a fix.~~ I was wrong, it seems that the complain is correct. Do you run other optimizer before which may change the bytecode?
~The access should be valid. I will commit a fix.~ I was wrong, it seems that the complain is correct. Do you run other optimizer before which may change the bytecode?
what do you mean?
https://fbredex.com/docs/installation
I install redex step by step According these tips in this website。 then run command :
ANDROID_SDK=/Users/zhangyuehuan/Library/Android/sdk redex --sign -s /Users/zhangyuehuan/workspace/500w_android/tool/keystore/m2u/release/ -a wanandroid -p wanandroid -c ~/Desktop/interdex_stripdebuginfo.config -P /Users/zhangyuehuan/workspace/500w_android/app/proguard-rules.pro -o ~/Desktop/app-release-proguardwithr8-stripdebuginfo-interdex.apk ~/Desktop/tinyApk/M2U-test-normalrelease-2.7.8.20781_x64-20220107_mr278.apk
then came these errors .
you said that - run other optimizer ---> just R8 optimizer, others not 。
我也遇到相同问题了
你的邮件已收到。
解决了么?
我也遇到相同问题了
你的邮件已收到。