lz233 / Tarnhelm

The magic to clean sharing links up.
https://tarnhelm.project.ac.cn
GNU General Public License v3.0
422 stars 17 forks source link

Crash when running in background #12

Closed JohnsonRan closed 2 years ago

JohnsonRan commented 2 years ago

https://nekobin.com/vipipedaca

lz233 commented 2 years ago

@qqlittleice233

lz233 commented 2 years ago

cloud you catch some logs?

JohnsonRan commented 2 years ago

LSPosed_2022-08-18T14_23_10.769.zip Here's LSPosed log if needed

lz233 commented 2 years ago
Caused by: java.lang.IllegalStateException: Not allowed to start service Intent { act=cn.ac.lz233.tarnhelm.bridge pkg=cn.ac.lz233.tarnhelm }: app is in background uid UidRecord{28415e3 u0a73 SVC  idle change:idle|uncached procs:1 seq(0,0,0)}
        at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1525)
        at android.app.ContextImpl.startService(ContextImpl.java:1481)
        at android.content.ContextWrapper.startService(ContextWrapper.java:650)
        at cn.ac.lz233.tarnhelm.App.onCreate(App.kt:54)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1119)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5781)
        at android.app.ActivityThread.-wrap1(Unknown Source:0) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1690) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loop(Looper.java:164) 
        at android.app.ActivityThread.main(ActivityThread.java:6548) 
        at java.lang.reflect.Method.invoke(Native Method)
JohnsonRan commented 2 years ago

cloud you catch some logs?

Eh,i think i already attached them?

lz233 commented 2 years ago

cloud you catch some logs?

Eh,i think i already attached them?

yep

JohnsonRan commented 2 years ago

https://nekobin.com/pojevoyamo Crash when using Tarnhelm Copy🤣

qqlittleice233 commented 2 years ago

@JohnsonRan app-debug.zip try this

JohnsonRan commented 2 years ago

@JohnsonRan app-debug.zip try this

Same

qqlittleice233 commented 2 years ago

@JohnsonRan app-debug.zip try this

Same

log pls

JohnsonRan commented 2 years ago

@JohnsonRan app-debug.zip try this

Same

log pls

https://nekobin.com/mitigusoqi

lz233 commented 2 years ago

https://nekobin.com/pojevoyamo

Caused by: java.lang.Throwable: non-standard array

So this one is in charge of you. Make sure regex and replacement have the same number of lines.

JohnsonRan commented 2 years ago

https://nekobin.com/pojevoyamo

Caused by: java.lang.Throwable: non-standard array

So this one is in charge of you. Make sure regex and replacement have the same number of lines.

Yea,i just figured out