Crash occurs when opening the keyboard in landscape mode before portrait
See original GitHub issueShort 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
- Make sure landscape full screen mode is not set to dynamically show or always show.
- Close the Florisboard Beta app.
- Reopen the app.
- Rotate to landscape mode.
- Open the keyboard.
- 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:
- Created a year ago
- Comments:9 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Thanks for testing out, will merge the changes in then and later release 0.3.15-rc02.