Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Occasional crash #385

Closed
maverick74 opened this issue Oct 28, 2023 · 5 comments · Fixed by #401
Closed

Occasional crash #385

maverick74 opened this issue Oct 28, 2023 · 5 comments · Fixed by #401
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@maverick74
Copy link

I'm experiencing occasional crashes!
But it does not happen very often! They are actually somewhat rare.

They tend to happen when I focus some field. When the crash happens it usually happens 3 or 4 times one after the other for everytime I try to focus the field!!!

(sorry if I could not find a reason or a way to replicate yet...)

@sspanak
Copy link
Owner

sspanak commented Nov 1, 2023

This may be related to #364. Unfortunately, I will not be able to investigate it anytime soon. In the meantime, could you please collect the logs when a crash occurs? First, go to Settings, then scroll down to the "About" section and tap on the version number. Then enable "Detailed Debug Logs". Use your phone a while until TT9 crashes again. Try making it crash several times in a row, if possible. After that, come back to the developer screen and check the logs. If you see "no logs", enable the system logs. Once they appear, you can tap on the text to copy it and then you can paste it here. I'll try to find out what is wrong when I have free time again.

Have in mind enabling the debug logs may make your phone a bit laggy. Make sure to disable it after copying the logs.

@sspanak sspanak added bug Something isn't working help wanted Extra attention is needed more info needed Further information is requested and removed help wanted Extra attention is needed labels Nov 1, 2023
@maverick74
Copy link
Author

I'll try to catch it and post it here!

Thanks for the instructions!

@maverick74
Copy link
Author

maverick74 commented Nov 15, 2023

Here we go!

It happened while on Firefox i tapped the DuckDuckGo search field!

TT9 LOG:

11-15 20:24:05.083 3523 3523 D tt9/KeyPadHandler: ===> Start Up; packageName: org.mozilla.firefox inputType: 0 fieldId: -1 fieldName: null privateImeOptions: null imeOptions: 1 extras: null

11-15 20:30:18.877 8381 8381 D tt9/KeyPadHandler: ===> Start Up; packageName: app.varlorg.unote inputType: 131073 fieldId: 2130968578 fieldName: null privateImeOptions: null imeOptions: 1140850691 extras: null

11-15 20:30:22.289 8381 8381 D tt9/onBackspace: backspace handled

11-15 20:30:28.560 8381 8381 D tt9/KeyPadHandler: ===> Start Up; packageName: app.varlorg.unote inputType: 0 fieldId: 2130968595 fieldName: null privateImeOptions: null imeOptions: 0 extras: null

11-15 20:30:32.690 8381 8381 D tt9/KeyPadHandler: ===> Start Up; packageName: com.android.systemui inputType: 0 fieldId: -1 fieldName: null privateImeOptions: null imeOptions: 0 extras: null

11-15 20:30:34.068 8381 8381 D tt9/KeyPadHandler: ===> Start Up; packageName: org.mozilla.firefox inputType: 0 fieldId: -1 fieldName: null privateImeOptions: null imeOptions: 0 extras: null

11-15 20:30:36.130 8381 8381 D tt9/KeyPadHandler: ===> Start Up; packageName: org.mozilla.firefox inputType: 294913 fieldId: -1 fieldName: null privateImeOptions: null imeOptions: 301989890 extras: null

11-15 20:30:40.990 8381 8381 D tt9/KeyPadHandler: ===> Start Up; packageName: io.github.sspanak.tt9 inputType: 0 fieldId: 2131230858 fieldName: null privateImeOptions: null imeOptions: 0 extras: null

11-15 20:30:41.866 8381 8991 D tt9/db.normalizeWordFrequencies: Normalized 0 words in: 1157 ms


ANDROID LOG:

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean p0.a.p()' on a null object reference
at io.github.sspanak.tt9.ime.TraditionalT9.w(Unknown Source:2)
at io.github.sspanak.tt9.ime.a.onEvaluateInputViewShown(Unknown Source:10)
at io.github.sspanak.tt9.ime.TraditionalT9.onEvaluateInputViewShown(Unknown Source:0)
at android.inputmethodservice.InputMethodService.onShowInputRequested(InputMethodService.java:1672)
at android.inputmethodservice.InputMethodService.dispatchOnShowInputRequested(InputMethodService.java:1709)
at android.inputmethodservice.InputMethodService.-wrap0(Unknown Source:0)
at android.inputmethodservice.InputMethodService$InputMethodImpl.showSoftInput(InputMethodService.java:482)
at android.inputmethodservice.IInputMethodWrapper.executeMessage(IInputMethodWrapper.java:196)
at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:37)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:6651)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)

@maverick74
Copy link
Author

@sspanak is this enough?

I have disabled the log generation but if you need more data i can re-enable it again!!!

@sspanak
Copy link
Owner

sspanak commented Dec 9, 2023

@maverick74, sorry for the delayed response. I've been quite busy with personal stuff lately.

The problem is exactly the same as the one mentioned in #364. It will be fixed in the next release.

@sspanak sspanak added duplicate This issue or pull request already exists and removed more info needed Further information is requested labels Dec 9, 2023
@sspanak sspanak mentioned this issue Dec 9, 2023
sspanak added a commit that referenced this issue Dec 21, 2023
* removed isActive and fixed a startup crash in onEvaluateInputViewShown() (#364, #385, #389)

* fixed the MainView is visible in dropdowns or other non-text inputs (#367)

* fixed logging settings not being applied at startup sometimes

* code cleanup: remove using isThereText (#347)

* removed the Messenger Lite hacks, since the app has been discontinued and no longer works

---------

Co-authored-by: alexknop <knopalex@msu.edu>
Co-authored-by: Alex Knop <alexknoptech@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants