question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash occurs when opening the keyboard in landscape mode before portrait

See original GitHub issue

Short description

If I initally open the keyboard in landscape mode it crashes. The crash doesn’t occur if I have opened in portrait mode first. It also doesn’t happen if landscape full screen input is set to never show.

Steps to reproduce

  1. Make sure landscape full screen mode is not set to dynamically show or always show.
  2. Close the Florisboard Beta app.
  3. Reopen the app.
  4. Rotate to landscape mode.
  5. Open the keyboard.
  6. See crash.

Environment information

  • FlorisBoard Version: 0.3.15-rc01 (78)
  • Device: HMD Global Nokia 7.1
  • Android: 10 (cn=Q sdk=29)

Features enabled

smartbar = true
suggestions = false
suggestions_clipboard = true
suggestions_next_word = true
glide = false
clipboard_internal = false
clipboard_history = true

Attached stacktrace files

1649217207271.stacktrace
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.inputmethodservice.ExtractEditText.setIME(android.inputmethodservice.InputMethodService)' on a null object reference
	at android.inputmethodservice.InputMethodService.setExtractView(InputMethodService.java:1638)
	at android.inputmethodservice.InputMethodService.updateFullscreenMode(InputMethodService.java:1330)
	at dev.patrickgold.florisboard.FlorisImeService.updateFullscreenMode(FlorisImeService.kt:397)
	at android.inputmethodservice.InputMethodService.prepareWindow(InputMethodService.java:1934)
	at android.inputmethodservice.InputMethodService.showWindow(InputMethodService.java:1884)
	at android.inputmethodservice.InputMethodService$InputMethodImpl.showSoftInput(InputMethodService.java:638)
	at android.inputmethodservice.IInputMethodWrapper.executeMessage(IInputMethodWrapper.java:220)
	at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:44)
	at android.os.Handler.dispatchMessage(Handler.java:107)
	at android.os.Looper.loop(Looper.java:214)
	at android.app.ActivityThread.main(ActivityThread.java:7397)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
whatevenisthatcommented, Apr 7, 2022

It looks like it’s fixed. I’ve set it to always use extracted text view, opened and closed the Florisboard debug app and tried it in a bunch of different apps and text fields and I haven’t experienced the crash at all.

0reactions
patrickgoldcommented, Apr 8, 2022

Thanks for testing out, will merge the changes in then and later release 0.3.15-rc02.

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - Is disabling landscape mode unforgivable? - Stack Overflow
Our application could support landscape mode without any problem, but it is such a pain that we are thinking about forcing portrait mode....
Read more >
iOS16 autofill causes crash while … | Apple Developer Forums
Allowing portrait and landscape mode solves the issue (although, of course, there are reasons for us to restrict it to landscape mode in...
Read more >
Fixed issues in InDesign - Adobe Support
Crash when opening a document in high quality display mode. ... with iPad Landscape and Portrait presets have incorrect orientation.
Read more >
What's new in the iOS client | Microsoft Learn
The biggest change in this release is that you can now dynamically change the orientation of the remote session to either landscape or...
Read more >
OmniFocus Release Notes - The Omni Group
OmniFocus 1.7.2 fixes a crash on iOS 3.0/3.1 encountered in 1.7.1 when showing ... items until you rotated the device between portrait and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found