PhotoPhase icon indicating copy to clipboard operation
PhotoPhase copied to clipboard

PhotoPhase v 2.7.0 crashes when screen orientation in Android 7.0

Open ammarraisafti opened this issue 6 years ago • 0 comments

Expected behavior

After disabling the Sepia, Sobel, and Swirl features in Types settings or in the Effects menu section. The ability to switch to landscape display mode should be possible.

Actual behavior

After disabling the Sepia, Sobel, and Swirl features in Types settings or in the Effects menu section. I accidentally switched to landscape view mode, suddenly the app stopped.

How to reproduce

  • Launch app.
  • Go to the General settings, then select and open the Types feature under the Effects menu.
  • Enable features Sepia, Sobel, and Swirl. Then click Ok to save it.
  • Go back to the Types feature, then disable the Sepia, Sobel, and Swirl features. Next you have to switch to landscape display mode. Then you will find the problem as I have explained.
Browser: Samsung Galaxy S6 edge Operating system: Nougat 7.0 App version: 2.7.0

Recording Of The Bug

https://youtu.be/sqW0GA-mxGk

Logcat

--------- beginning of crash 05-28 21:43:34.104 16295 16295 E AndroidRuntime: FATAL EXCEPTION: main 05-28 21:43:34.104 16295 16295 E AndroidRuntime: Process: com.ruesga.android.wallpapers.photophase, PID: 16295 05-28 21:43:34.104 16295 16295 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference 05-28 21:43:34.104 16295 16295 E AndroidRuntime: at com.ruesga.android.wallpapers.photophase.preferences.c$a$b$d.b(SourceFile:261) 05-28 21:43:34.104 16295 16295 E AndroidRuntime: at com.ruesga.android.wallpapers.photophase.preferences.GeneralPreferenceFragment$1.onPreferenceChange(SourceFile:104) 05-28 21:43:34.104 16295 16295 E AndroidRuntime: at android.preference.Preference.callChangeListener(Preference.java:1128) 05-28 21:43:34.104 16295 16295 E AndroidRuntime: at android.preference.MultiSelectListPreference.onDialogClosed(MultiSelectListPreference.java:213) 05-28 21:43:34.104 16295 16295 E AndroidRuntime: at com.ruesga.android.wallpapers.photophase.preferences.MultiSelectListPreferenceCompat.onDialogClosed(SourceFile:114) 05-28 21:43:34.104 16295 16295 E AndroidRuntime: at android.preference.DialogPreference.onDismiss(DialogPreference.java:400) 05-28 21:43:34.104 16295 16295 E AndroidRuntime: at android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1632) 05-28 21:43:34.104 16295 16295 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 05-28 21:43:34.104 16295 16295 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154) 05-28 21:43:34.104 16295 16295 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6682) 05-28 21:43:34.104 16295 16295 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 05-28 21:43:34.104 16295 16295 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520) 05-28 21:43:34.104 16295 16295 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410) 05-28 21:43:34.109 4675 4675 V StatusBar.BrightnessController: updateMode autobrightness is false 05-28 21:43:34.110 4675 4675 V StatusBar.BrightnessController: updateSlider = 64 05-28 21:43:34.111 4675 4675 D ToggleSlider: setOutdoorMode false 05-28 21:43:34.111 4675 4675 D QSBrightnessView: QSBrightnessView 05-28 21:43:34.117 3710 6252 D Debug : !@DumpState : SHIP 05-28 21:43:34.118 3710 6252 D Debug : !@DumpState : debug level:0x4f4c 05-28 21:43:34.118 3710 6252 D Debug : !@Dumpstate : Finally, system will skip dumpstate 05-28 21:43:34.121 3710 6252 W ActivityManager: Force finishing activity

ammarraisafti avatar May 28 '18 14:05 ammarraisafti