Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AntennaPod crashed on Android 5.1.1 #1073

Closed
waylife opened this issue Aug 9, 2015 · 16 comments
Closed

AntennaPod crashed on Android 5.1.1 #1073

waylife opened this issue Aug 9, 2015 · 16 comments

Comments

@waylife
Copy link
Contributor

waylife commented Aug 9, 2015

When starting it from launcher, it crashes.
Below are some of the logs.

D/StatusBar.MSimNetworkController( 4212): refreshViews phoneId =0mMSimDataConnected =false
D/StatusBar.MSimNetworkController( 4212): refreshViews mMSimDataActivity =0
D/StatusBar.MSimNetworkController( 4212): refreshViews: Data not connected!! Set no data type icon / Roaming for phoneId: 0
D/StatusBar.MSimNetworkController( 4212): getPhoneId phoneId: 0
D/StatusBar.MSimNetworkController( 4212): getPhoneId phoneId: 0
D/StatusBar.MSimNetworkController( 4212): updateIconSet, phoneId = 0
D/StatusBar.MSimNetworkController( 4212): updateIconSet, voice network type is: 13/LTE, data network type is: 13/LTE
D/StatusBar.MSimNetworkController( 4212): updateIconSet, chosenNetworkType=13 hspaDataDistinguishable=true hspapDistinguishable=false showAtLeastThreeGees=false
D/TelephonyIcons( 4212): updateDataType sub=0, type=13, inetCondition=1 showAtLeast3G=false show4GforLte=false hspaDistinguishable=true
D/TelephonyIcons( 4212): data type item name: array/telephony_data_type_sim1
D/TelephonyIcons( 4212): data type item id: 2131165188
D/TelephonyIcons( 4212): updateDataType mSelectedDataTypeIcon[0]=2130837850, mSelectedDataActivityIndex=9
D/StatusBar.MSimNetworkController( 4212): getPhoneId phoneId: 0
D/StatusBar.MSimNetworkController( 4212): updateTelephonySignalStrength: phoneId =0
D/TelephonyIcons( 4212): getSignalStrengthIcon: sub=0, inetCondition=1, level=2 isRoaming=false
D/TelephonyIcons( 4212): signalStrengthArray.length = 9
D/TelephonyIcons( 4212): selectedTypeArray.length = 2
D/TelephonyIcons( 4212): inetArray.length = 5
D/StatusBar.MSimNetworkController( 4212): getPhoneId phoneId: 0
D/StatusBar.MSimNetworkController( 4212): refreshViews phoneId =0mMSimDataConnected =false
D/StatusBar.MSimNetworkController( 4212): refreshViews mMSimDataActivity =0
D/StatusBar.MSimNetworkController( 4212): refreshViews: Data not connected!! Set no data type icon / Roaming for phoneId: 0
I/Timeline( 4972): Timeline: Activity_launch_request id:de.danoeh.antennapod time:7479914
I/ActivityManager( 1090): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=de.danoeh.antennapod/.activity.MainActivity bnds=[276,611][540,943] (has extras)} from uid 1000 on display 0
V/WindowManager( 1090): addAppToken: AppWindowToken{2d1902b5 token=Token{379edeec ActivityRecord{5543d9f u0 de.danoeh.antennapod/.activity.MainActivity t825}}} to stack=1 task=825 at 0
W/ContextImpl( 4972): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1362 android.content.ContextWrapper.sendBroadcast:382 com.android.launcher3.Stats.recordLaunch:202 com.android.launcher3.Launcher.startAppShortcutOrInfoActivity:2957 com.android.launcher3.Launcher.onClickAppShortcut:2930
W/BroadcastQueue( 1090): Permission Denial: receiving Intent { act=com.android.launcher3.action.LAUNCH flg=0x10 (has extras) } to com.google.android.googlequicksearchbox/com.google.android.search.core.icingsync.ApplicationLaunchReceiver requires com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS due to sender com.android.launcher3 (uid 1000)
V/WindowManager( 1090): Adding window Window{22841f84 u0 Starting de.danoeh.antennapod} at 4 of 9 (after Window{5a3ea70 u0 com.android.settings/com.android.settings.Settings})
I/MSM-irqbalance(  808): Decided to move IRQ51 from CPU1 to CPU0
W/ActivityManager( 1090): getTasks: caller 10108 does not hold GET_TASKS; limiting output
W/ActivityManager( 1090): Activity pause timeout for ActivityRecord{3dab9f86 u0 com.android.launcher3/.Launcher t801}
D/StatusBar.MSimNetworkController( 4212): refreshViews phoneId =0mMSimDataConnected =false
D/StatusBar.MSimNetworkController( 4212): refreshViews mMSimDataActivity =0
D/StatusBar.MSimNetworkController( 4212): refreshViews: Data not connected!! Set no data type icon / Roaming for phoneId: 0
I/ActivityManager( 1090): Start proc 17282:de.danoeh.antennapod/u0a100 for activity de.danoeh.antennapod/.activity.MainActivity
I/Choreographer( 4972): Skipped 39 frames!  The application may be doing too much work on its main thread.
D/AppTracker( 4972): AppTracker onEvent: stop
W/Settings(17282): Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
D/AbstractTracker( 4972): Insert Complete
D/AndroidRuntime(17282): Shutting down VM
E/AndroidRuntime(17282): FATAL EXCEPTION: main
E/AndroidRuntime(17282): Process: de.danoeh.antennapod, PID: 17282
E/AndroidRuntime(17282): java.lang.RuntimeException: Unable to start activity ComponentInfo{de.danoeh.antennapod/de.danoeh.antennapod.activity.MainActivity}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
E/AndroidRuntime(17282):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2354)
E/AndroidRuntime(17282):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2416)
E/AndroidRuntime(17282):    at android.app.ActivityThread.access$900(ActivityThread.java:154)
E/AndroidRuntime(17282):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1322)
E/AndroidRuntime(17282):    at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(17282):    at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(17282):    at android.app.ActivityThread.main(ActivityThread.java:5290)
E/AndroidRuntime(17282):    at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(17282):    at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(17282):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
E/AndroidRuntime(17282):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
E/AndroidRuntime(17282): Caused by: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
E/AndroidRuntime(17282):    at android.support.v7.app.ActionBarActivityDelegateBase.setSupportActionBar(ActionBarActivityDelegateBase.java:165)
E/AndroidRuntime(17282):    at android.support.v7.app.ActionBarActivity.setSupportActionBar(ActionBarActivity.java:92)
E/AndroidRuntime(17282):    at de.danoeh.antennapod.activity.MainActivity.onCreate(MainActivity.java:107)
E/AndroidRuntime(17282):    at android.app.Activity.performCreate(Activity.java:6084)
E/AndroidRuntime(17282):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
E/AndroidRuntime(17282):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2307)
E/AndroidRuntime(17282):    ... 10 more
D/AppTracker(17282): AppTracker onEvent: crash
D/DropBoxManagerService( 1090): file :: /data/system/dropbox/data_app_crash@1439121274832.txt
W/ActivityManager( 1090):   Force finishing activity 1 de.danoeh.antennapod/.activity.MainActivity
I/WindowManager( 1090): Screenshot max retries 4 of Token{379edeec ActivityRecord{5543d9f u0 de.danoeh.antennapod/.activity.MainActivity t825 f}} appWin=Window{22841f84 u0 Starting de.danoeh.antennapod} drawState=4
D/OpenGLRenderer( 1090): Use EGL_SWAP_BEHAVIOR_PRESERVED: true
D/Atlas   ( 1090): Validating map...
I/OpenGLRenderer( 1090): Initialized EGL, version 1.4
D/OpenGLRenderer( 1090): Enabling debug mode 0
D/StatusBar.MSimNetworkController( 4212): refreshViews phoneId =0mMSimDataConnected =false
D/StatusBar.MSimNetworkController( 4212): refreshViews mMSimDataActivity =0
D/StatusBar.MSimNetworkController( 4212): refreshViews: Data not connected!! Set no data type icon / Roaming for phoneId: 0
W/ResourceType( 4212): No package identifier when getting value for resource number 0x00000000
W/PackageManager( 4212): Failure retrieving resources for de.danoeh.antennapod: Resource ID #0x0
W/ActivityManager( 1090): Activity pause timeout for ActivityRecord{5543d9f u0 de.danoeh.antennapod/.activity.MainActivity t825 f}
D/AppTracker( 4972): AppTracker onEvent: start
D/AbstractTracker( 4972): Insert Complete
I/Timeline( 4972): Timeline: Activity_idle id: android.os.BinderProxy@1365acc3 time:7481830
I/ActivityManager( 1090): Killing 12293:com.android.chrome/u0a34 (adj 15): empty #17
V/ActivityManager( 1090): killProcessGroupAsync took 0 ms for PID 12293 on thread 16
W/ActivityManager( 1090): getTasks: caller 10108 does not hold GET_TASKS; limiting output
I/Timeline( 1090): Timeline: Activity_windows_visible id: ActivityRecord{3dab9f86 u0 com.android.launcher3/.Launcher t801} time:7482120
W/OpenGLRenderer( 4972): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
D/KeyguardUpdateMonitor( 4212): received broadcast android.intent.action.BATTERY_CHANGED
D/KeyguardUpdateMonitor( 4212): handleBatteryUpdate
D/StatusBar.MSimNetworkController( 4212): getPhoneId phoneId: 0
D/StatusBar.MSimNetworkController( 4212): getPhoneId phoneId: 0
D/StatusBar.MSimNetworkController( 4212): updateIconSet, phoneId = 0
D/StatusBar.MSimNetworkController( 4212): updateIconSet, voice network type is: 13/LTE, data network type is: 13/LTE
@waylife
Copy link
Contributor Author

waylife commented Aug 9, 2015

Device information
image

@mfietz
Copy link
Contributor

mfietz commented Aug 9, 2015

Which APod version are you running? Latest stable (1.2.x)?

@waylife
Copy link
Contributor Author

waylife commented Aug 9, 2015

v1.2.2. the latest version on Google Play. https://play.google.com/store/apps/details?id=de.danoeh.antennapod

@TomHennen
Copy link
Contributor

If you'd like you can try the version 1.3 which is currently in beta/alpha testing.

https://github.com/AntennaPod/AntennaPod#alpha-testing

@waylife
Copy link
Contributor Author

waylife commented Aug 9, 2015

Thx. I have joined the Alpha testing. Now I am waiting for the Alpha version updating notification.
So 1.3 solved this issue?
I downloaded the source and then compiled it using the develop branch.
But I encountered the same issue.

@mfietz
Copy link
Contributor

mfietz commented Aug 9, 2015

If you ask me, the issue is - again - the custom rom

When googling for the exception, one finds only "solutions" that are already implemented in APod. So far, Oxygen 2.x seems to be the only rom affected, so I would look for the error there.
I could not find a bug tracker or anything alike...

@waylife
Copy link
Contributor Author

waylife commented Aug 9, 2015

It seems you are right, I downloaded the 1.3 from Dropbox. I wished it will work, but It crashed again.
If you don't mind, I wish to try to fix this, as I get the device.

@mfietz
Copy link
Contributor

mfietz commented Aug 9, 2015

You may want to consider switching to a stable Cyanogen OS release. From what I find on the net, OxygenOS seems to be notorious for being riddled with bugs. It seems to be based on Cyanogen, anyway.

@waylife
Copy link
Contributor Author

waylife commented Aug 9, 2015

@mfietz thx a lot for your advice. I will try it later.
Later I searched Cyanogen, but no roms are available for my phone.
Maybe I have to wait.

@TomHennen
Copy link
Contributor

Let us know if you find there's something we can do.

@waylife
Copy link
Contributor Author

waylife commented Aug 9, 2015

@mfietz @TomHennen With hours of work, I eventually find a way out.
The solution is simple: Just remove the android:theme attribute.
image

Seems the ActionBarActivity load the default theme of the Application node first, which will load a default ActionBar(WindowDecorActionBar), then In the de.danoeh.antennapod.activity.MainActivity onCreate method, it invoke setSupportActionBar method, and this method will check wether it has load a WindowDecorActionBar or not, if yes, it will throw a exception.
image

Help this will fix in the new version. Thx in advance.

@waylife
Copy link
Contributor Author

waylife commented Aug 9, 2015

Currently no side effect have been found.

@TomHennen
Copy link
Contributor

OK, cool. Have you tested it with both themes?

Would you be willing to submit a pull request?

On Sun, Aug 9, 2015, 11:43 AM RxRead notifications@github.com wrote:

Currently no side effect have been found.


Reply to this email directly or view it on GitHub
#1073 (comment)
.

@mfietz
Copy link
Contributor

mfietz commented Aug 9, 2015

If so, please make sure that every activity calls setTheme().
For example, AboutActivity currently does not, but this might be on purpose

@waylife
Copy link
Contributor Author

waylife commented Aug 10, 2015

@TomHennen both theme work fine. I will submit a pull request after work.
@mfietz I will check all the activity.

@waylife
Copy link
Contributor Author

waylife commented Aug 10, 2015

@mfietz @TomHennen Things done.

TomHennen added a commit that referenced this issue Aug 15, 2015
fix issue #1073. crash on oneplus two(Android 5.1.1, Oxygen 2.0.0).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants