KeyMapper icon indicating copy to clipboard operation
KeyMapper copied to clipboard

Crashing After UI7 Update

Open githubsterer opened this issue 8 months ago • 23 comments

Developer TODO (don't remove)

  • [ ] update documentation

Been getting this error message continually after updating to UI7 with latest update of Key Mapper. No idea why this is happening.

Needless to say that clearing the cache doesn't help.

Screenshot_20250515_145749_Device care.png

githubsterer avatar May 15 '25 19:05 githubsterer

What device model are you using? And when did this first occur?

jambl3r avatar May 15 '25 20:05 jambl3r

S22 Ultra. Definitely a brand new issue since the the phone updated last week to UI7 and Key Mapper updated just the other day to 3.1.2. Massive crashing, accessibility keeps turning off even as I turn it back on each time. Something's definitely up. Also never saw this system dialog in all my previous testing ever.

githubsterer avatar May 15 '25 20:05 githubsterer

I would also just add that for 90% of Galaxy users other than the latest model, the UI7 update has really just started to roll out, which might explain why others haven't yet reported anything, I'm thinking.

Also to be clear, it's not just UI7 but also Android 15 that got pushed to the phone for everyone last week as well.

githubsterer avatar May 15 '25 21:05 githubsterer

@sds100 the only thing I could find

Image

jambl3r avatar May 15 '25 22:05 jambl3r

I'm getting this error dialog every 10-15 minutes, as if it's trying to recover and then repeatedly fails.

githubsterer avatar May 15 '25 22:05 githubsterer

It would help us if you could get a logcat using ADB. Do you know how to set up Android Debug Bridge on a PC?

jambl3r avatar May 15 '25 22:05 jambl3r

I have it already set up and can do it now. Walk me through it.

githubsterer avatar May 15 '25 22:05 githubsterer

Starting with plugging in the phone and opening Mac Terminal.

githubsterer avatar May 15 '25 22:05 githubsterer

One more factoid. These error messages are coming even with the app paused.

githubsterer avatar May 15 '25 22:05 githubsterer

Sorry, super late here in UK. I'll be back online tomorrow if you're available then.

jambl3r avatar May 15 '25 23:05 jambl3r

No problem. Have a great night.

githubsterer avatar May 15 '25 23:05 githubsterer

I imagine you'll find the issue easily because the app is literally freaking out like never before.

githubsterer avatar May 15 '25 23:05 githubsterer

Starting with plugging in the phone and opening Mac Terminal.

If everything is set up, you should be able to type 'adb devices' and see that your device is connected. If it says 'unauthorised' you will need to open your phone and accept the debugging prompt.

Once you are connected please can you enter adb logcat | grep -i keymapper into the terminal and then open the app. Once the app crashes you can copy the log from the mac terminal and paste it here.

jambl3r avatar May 16 '25 11:05 jambl3r

@githubsterer If you delete the quick settings tile does it stop happening?

sds100 avatar May 16 '25 14:05 sds100

Do I need to keep the phone plugged in and Terminal running until it crashes next?

Also, overnight the phone performed an "optimizing apps" routine on its own and I haven't seen it crash yet today. Wonder if that fixed it?

githubsterer avatar May 16 '25 14:05 githubsterer

Yes, please use the app until it crashes after running the command in the terminal.

jambl3r avatar May 16 '25 15:05 jambl3r

Alas, this issue has not gone away but was masked by another less obvious symptom that I did not realize until now due to being busy on other things. Before, the problem was a nearly constant error dialog telling me Key Mapper crashed after updating to UI7 and then 3.1.2.

Then, the messages went away after clicking Clear Cache in the error dialog and it optimized the apps.

But, unbeknownst to me until now, what's been consistently happening after that is that app's accessibility keeps shutting itself off (not working) which forces me to manually turn it back on, when it works for a while, and then shuts back off. No idea why this is happening, and it's not practical for me to be tethered to ADB over long stretches of time, so not sure how to best help you debug this. Also never see this behavior before.

githubsterer avatar May 19 '25 19:05 githubsterer

Now that the app is able to run for a while, could you turn on 'extra logging' in the settings and leave it on for a couple days. Once you notice the accessibility service crashing could you send over the log?

jambl3r avatar May 20 '25 20:05 jambl3r

Okay, that I can do.

githubsterer avatar May 20 '25 20:05 githubsterer

Actually noticed now that accessibility had turned off, so I turned on extra logging and reset the accessibility and will check back and send the log in a couple of days.

githubsterer avatar May 20 '25 20:05 githubsterer

Crashing constantly, see attached log.

key_mapper_log_20250520-205428.txt

githubsterer avatar May 21 '25 00:05 githubsterer

Excellent log, thank you. Will investigate

jambl3r avatar May 21 '25 09:05 jambl3r

Ok good because the entire app is in a constant state of crashing at this point. Kind of surprised nobody else is having this issue.

githubsterer avatar May 21 '25 13:05 githubsterer

fixed

sds100 avatar Jul 05 '25 12:07 sds100