Skip to content

App crashes when trying to access settings menu on A7 #67

Closed
@marek26340

Description

@marek26340

Hi! I'm Marcus and I really like using your app. It has already proven it's usefulness in a couple of power outages, when I could not use a regular computer to check the remaining time on my UPS I use for my network equipment. Thanks for making it!
Unfortunately, my newer-ish phone, an Honor 8X with Android 10, broke. Now I'm back at my older Huawei P9 Lite, which stopped at Android 7. Can't say it's unusable, it is actually better in some ways than the newer phones.

I've started to have this issue on a previous version of this app and the issue still persists with the newest version.
Whenever I tap onto the gear icon in the top right corner of the main screen in your app, it is supposed to take me to the settings menu. Instead, the screen goes black for a sec and then the app closes by itself.
Just to clarify, I installed your app onto my older phone just not too long ago, so I can't really confirm if this issue didn't occur in an older version of the app.

I should be able to send you a logcat (debug level, my device is rooted) from my device when this issue occurs. For now, I'm finally going to get that log and try to find out what's going on.

Edit: got the crash!

AndroidRuntime
FATAL EXCEPTION: main
Process: com.nitramite.apcupsdmonitor, PID: 19324
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nitramite.apcupsdmonitor/com.nitramite.apcupsdmonitor.Preferences}: java.lang.IllegalArgumentException: AppCompat does not support the current theme features: { windowActionBar: false, windowActionBarOverlay: false, android:windowIsFloating: false, windowActionModeOverlay: false, windowNoTitle: false }
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2793)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6517)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)
Caused by: java.lang.IllegalArgumentException: AppCompat does not support the current theme features: { windowActionBar: false, windowActionBarOverlay: false, android:windowIsFloating: false, windowActionModeOverlay: false, windowNoTitle: false }
at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:928)
at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:809)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:696)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:195)
at com.nitramite.apcupsdmonitor.Preferences.onCreate(Preferences.java:70)
at android.app.Activity.performCreate(Activity.java:6915)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2746)
... 9 more

Edit 2: There's many warnings occuring right before the app crashes that read:

ResourceType
For resource 0x7f110242, entry index(578) is beyond type entryCount(182)

Each warning contains different hex values and numbers.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions