ElderDrivers / EdXposedManager

Companion Android application for EdXposed
https://edxp.meowcat.org/
GNU General Public License v3.0
1.78k stars 247 forks source link

EdXposedManager crash immediately when open #68

Closed shenzhigang closed 4 years ago

shenzhigang commented 4 years ago
Include the following:
Reproduction Steps
  1. Open EdXposedManager
  2. Crash immediately
Logs in logcat
2020-04-02 22:07:08.039 11948-11948/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: org.meowcat.edxposed.manager, PID: 11948
    java.lang.ExceptionInInitializerError
        at org.meowcat.edxposed.manager.repo.RepoDb.beginTransation(RepoDb.java:59)
        at org.meowcat.edxposed.manager.util.ModuleUtil.reloadInstalledModules(ModuleUtil.java:89)
        at org.meowcat.edxposed.manager.util.ModuleUtil.getInstance(ModuleUtil.java:64)
        at org.meowcat.edxposed.manager.XposedApp.onCreate(XposedApp.java:225)
        at org.meowcat.edxposed.manager.MeowCatApplication.onCreate(MeowCatApplication.java:18)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1155)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5994)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.swift.sandhook.SandHook.callOriginMethod(SandHook.java:185)
        at com.swift.sandhook.SandHook.callOriginMethod(SandHook.java:163)
        at com.swift.sandhook.xposedcompat.hookstub.HookStubManager.hookBridge(HookStubManager.java:304)
        at com.swift.sandhook.xposedcompat.hookstub.MethodHookerStubs64.stub_hook_0(MethodHookerStubs64.java:198)
        at android.app.ActivityThread.access$1100(ActivityThread.java:204)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1655)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6820)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:861)
     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.Cursor android.database.sqlite.SQLiteDatabase.query(java.lang.String, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, java.lang.String, java.lang.String)' on a null object reference
        at org.meowcat.edxposed.manager.repo.RepoDb.getRepositories(RepoDb.java:107)
        at org.meowcat.edxposed.manager.util.RepoLoader.refreshRepositories(RepoLoader.java:84)
        at org.meowcat.edxposed.manager.util.RepoLoader.<init>(RepoLoader.java:74)
        at org.meowcat.edxposed.manager.util.RepoLoader.getInstance(RepoLoader.java:79)
        at org.meowcat.edxposed.manager.repo.RepoDb.onCreate(RepoDb.java:450)
        at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:393)
        at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:298)
        at org.meowcat.edxposed.manager.repo.RepoDb.<clinit>(RepoDb.java:44)
        at org.meowcat.edxposed.manager.repo.RepoDb.beginTransation(RepoDb.java:59) 
        at org.meowcat.edxposed.manager.util.ModuleUtil.reloadInstalledModules(ModuleUtil.java:89) 
        at org.meowcat.edxposed.manager.util.ModuleUtil.getInstance(ModuleUtil.java:64) 
        at org.meowcat.edxposed.manager.XposedApp.onCreate(XposedApp.java:225) 
        at org.meowcat.edxposed.manager.MeowCatApplication.onCreate(MeowCatApplication.java:18) 
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1155) 
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5994) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.swift.sandhook.SandHook.callOriginMethod(SandHook.java:185) 
        at com.swift.sandhook.SandHook.callOriginMethod(SandHook.java:163) 
        at com.swift.sandhook.xposedcompat.hookstub.HookStubManager.hookBridge(HookStubManager.java:304) 
        at com.swift.sandhook.xposedcompat.hookstub.MethodHookerStubs64.stub_hook_0(MethodHookerStubs64.java:198) 
        at android.app.ActivityThread.access$1100(ActivityThread.java:204) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1655) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loop(Looper.java:193) 
        at android.app.ActivityThread.main(ActivityThread.java:6820) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:861) 
UltraBlackLinux commented 4 years ago

Its crashing too on Lineageos 17.1 (android 10) Screenshot_20200402_185536 sry for screeenie, but else thee format is broken

always1337 commented 4 years ago

Try installing over the old version, it helped me fix the crashes.

kevin01523 commented 4 years ago

Same it crashes and i cant seem to overwrite the old with the new version

Lvl4Sword commented 4 years ago

Overwriting the previous version ( v4.5.6.0.0 ) with the new version ( v4.5.6.0.1 ) was what fixed the crashing for me.

MlgmXyysd commented 4 years ago

EdXposedManager-4.5.6-45601-org.meowcat.edxposed.manager-debug.zip

Can anyone test this? (Rename .zip to .apk)

do not overwrite previous version, clean install to test

ignore lagggg, cause it's debug version

shenzhigang commented 4 years ago

EdXposedManager-4.5.6-45601-org.meowcat.edxposed.manager-debug.zip

Can anyone test this? (Rename .zip to .apk)

do not overwrite previous version, clean install to test

ignore lagggg, cause it's debug version

It works!

MlgmXyysd commented 4 years ago

EdXposedManager-4.5.6-45601-org.meowcat.edxposed.manager-debug.zip Can anyone test this? (Rename .zip to .apk) do not overwrite previous version, clean install to test ignore lagggg, cause it's debug version

It works!

Well I know, will update in next version, thanks for test