brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.85k stars 2.34k forks source link

GPS crash for change in configuration #30337

Open deeppandya opened 1 year ago

deeppandya commented 1 year ago

We have many portrait forced UI i.e privacy hub. and This issue could be related to that. When user is in landscape mode and app tries to show forced portrait UI, some of the resources could be null.

Below is the stack trace : Exception java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.dispatchConfigurationChanged(android.content.res.Configuration)' on a null object reference at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1523) at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1523) at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1523) at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1523) at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1523) at android.view.ViewRootImpl.updateConfiguration (ViewRootImpl.java:4401) at android.app.ActivityThread.handleActivityConfigurationChanged (ActivityThread.java:5469) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1866) at android.os.Handler.dispatchMessage (Handler.java:106) at android.os.Looper.loop (Looper.java:164) at android.app.ActivityThread.main (ActivityThread.java:7000) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:441) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1408)

iefremov commented 5 months ago

@deeppandya is it still relevant?