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

Podcast Episode List hangs On Force Close #1227

Closed
ydinath opened this issue Sep 26, 2015 · 10 comments
Closed

Podcast Episode List hangs On Force Close #1227

ydinath opened this issue Sep 26, 2015 · 10 comments

Comments

@ydinath
Copy link
Contributor

ydinath commented Sep 26, 2015

I just build AntennaPod on my device using the latest Develop branch (an hour old), and found a situation in which the app hangs.

  1. Add a podcast
  2. Navigate to the episode list
  3. Open Android recent app list, and swipe away AntennaPod
  4. Open the app, and it should try to open the podcast episode list you were just in, but instead it will hang.

Note: this doesn't happen with the Play Store release of this app. I am also using Android M P3 on Nexus 5.

Edit: Just downloaded the new PlayStore release and am experiencing the same issue.

@mfietz
Copy link
Contributor

mfietz commented Sep 26, 2015

Can you check the logcat, please? Is it throwing an exception?

@ydinath
Copy link
Contributor Author

ydinath commented Sep 26, 2015

09-26 17:21:24.682  31880-31880/? I/art﹕ Late-enabling -Xcheck:jni
09-26 17:21:24.758  31880-31880 W/System﹕ ClassLoader referenced unknown path: /data/app-2/lib/arm
09-26 17:21:24.783  31880-31880 D/UpdateManager﹕ old: 1040001, current: 1040001
09-26 17:21:24.784  31880-31880 D/UserPreferences﹕ Creating new instance of UserPreferences
09-26 17:21:24.795  31880-31880 D/UserPreferences﹕ Using default data folder
09-26 17:21:24.798  31880-31880 D/UserPreferences﹕ Import directory already exists
09-26 17:21:24.870  31880-31880 D/UserPreferences﹕ Using default data folder
09-26 17:21:24.930  31880-31880 D/MainActivity﹕ getLastNavFragment() -> 1
09-26 17:21:24.937  31880-31880 D/MainActivity﹕ saveLastNavFragment(tag: 1)
09-26 17:21:24.937  31880-31880 D/MainActivity﹕ getLastNavFragment() -> 1
09-26 17:21:24.955  31880-31880 D/UserPreferences﹕ Using default data folder
09-26 17:21:24.991  31880-31880 D/ItemlistFragment﹕ onResume()
09-26 17:21:24.993  31880-31924 V/PodDBAdapter﹕ Opening DB
09-26 17:21:24.996  31880-31925 V/PodDBAdapter﹕ Opening DB
09-26 17:21:24.997  31880-31880 D/PlaybackController﹕ Trying to connect to service
09-26 17:21:25.001  31880-31880 D/ExternalPlayerFragment﹕ Loading media info
09-26 17:21:25.002  31880-31880 W/ExternalPlayerFragment﹕ loadMediaInfo was called while playbackService was null!
09-26 17:21:25.004  31880-31926 D/PlaybackController﹕ Trying to restore last played media
09-26 17:21:25.004  31880-31926 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.007  31880-31925 D/DBReader﹕ Loading feed with id 1
09-26 17:21:25.014  31880-31925 D/DBReader﹕ Extracting Feeditems of feed This American Life
09-26 17:21:25.014  31880-31925 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.014  31880-31927 D/OpenGLRenderer﹕ Use EGL_SWAP_BEHAVIOR_PRESERVED: true
09-26 17:21:25.016  31880-31926 D/DBReader﹕ Loading feeditem with id 1
09-26 17:21:25.016  31880-31926 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.016  31880-31926 D/DBReader﹕ Loading feeditem with id 1
09-26 17:21:25.020  31880-31925 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.024  31880-31926 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.026  31880-31926 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.029  31880-31926 D/DBReader﹕ Extracting Feedlist
09-26 17:21:25.029  31880-31926 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.041  31880-31880 D/PlaybackService﹕ Service created.
09-26 17:21:25.050  31880-31928 D/DBReader﹕ getQueue()
09-26 17:21:25.050  31880-31928 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.050  31880-31928 D/DBReader﹕ getQueue()
09-26 17:21:25.058  31880-31928 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.058  31880-31928 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.060  31880-31928 D/DBReader﹕ Extracting Feedlist
09-26 17:21:25.060  31880-31928 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.074  31880-31880 D/PlaybackService﹕ OnStartCommand called
09-26 17:21:25.074  31880-31880 D/PlaybackService﹕ onStartCommand is a redelivered intent, calling stopForeground now.
09-26 17:21:25.075  31880-31880 D/PlaybackService﹕ OnStartCommand called
09-26 17:21:25.075  31880-31880 D/PlaybackService﹕ onStartCommand is a redelivered intent, calling stopForeground now.
09-26 17:21:25.076  31880-31880 D/MainActivity﹕ getLastNavFragment() -> 1
09-26 17:21:25.077  31880-31880 D/MainActivity﹕ handleNavIntent()
09-26 17:21:25.147  31880-31880 D/AntennapodHttpClient﹕ Creating new instance of HTTP client
09-26 17:21:25.188  31880-31927 I/Adreno-EGL﹕ <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 08/12/15, 70b1c55, I9e0bc0c0ce
09-26 17:21:25.191  31880-31927 I/OpenGLRenderer﹕ Initialized EGL, version 1.4
09-26 17:21:25.254  31880-31880 D/PlaybackController﹕ Calling start service
09-26 17:21:25.256  31880-31880 D/PlaybackController﹕ Result for service binding: true
09-26 17:21:25.298  31880-31880 D/FeedMenuHandler﹕ Preparing options menu
09-26 17:21:25.370  31880-31880 D/PlaybackService﹕ OnStartCommand called
09-26 17:21:25.370  31880-31880 D/PlaybackSvcMediaPlayer﹕ playMediaObject(...)
09-26 17:21:25.371  31880-31880 D/PlaybackService﹕ Received onBind event
09-26 17:21:25.394  31880-31943 D/AndroidMediaPlayer﹕ ++++++++++++++++++++++++++++++++ Setting prepared listener to this.onPreparedListener
09-26 17:21:25.396  31880-31880 D/PlaybackController﹕ Trying to connect to service
09-26 17:21:25.396  31880-31880 D/PlaybackController﹕ Querying service info
09-26 17:21:25.397  31880-31943 D/ReplacementMediaPlayer﹕ setupMpi
09-26 17:21:25.397  31880-31943 D/ReplacementMediaPlayer﹕ setupMpi
09-26 17:21:25.398  31880-31943 D/ReplacementMediaPlayer﹕ Already using AndroidMediaPlayer
09-26 17:21:25.399  31880-31943 D/PlaybackSvcMediaPlayer﹕ Setting player status to INITIALIZING
09-26 17:21:25.399  31880-31943 D/PlaybackSvcMediaPlayer﹕ playerStatus: INITIALIZING
09-26 17:21:25.399  31880-31943 D/PlaybackSvcMediaPlayer﹕ getPosition() -> 19244
09-26 17:21:25.402  31880-31880 D/PlaybackController﹕ status: STOPPED
09-26 17:21:25.403  31880-31880 D/PlaybackController﹕ Connection to Service established
09-26 17:21:25.404  31880-31943 D/DBReader﹕ Loading feeditem with id 1
09-26 17:21:25.404  31880-31943 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.404  31880-31943 D/DBReader﹕ Loading feeditem with id 1
09-26 17:21:25.406  31880-31943 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.407  31880-31943 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.407  31880-31943 D/DBReader﹕ Extracting Feedlist
09-26 17:21:25.407  31880-31943 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.409  31880-31944 D/PlaybackController﹕ Trying to restore last played media
09-26 17:21:25.409  31880-31944 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.410  31880-31880 D/PlaybackController﹕ Received statusUpdate Intent.
09-26 17:21:25.411  31880-31943 D/ReplacementMediaPlayer﹕ In setDataSource(context, /storage/emulated/0/Android/data/files/media/This American Life/567 Whats Going On In There.mp3)
09-26 17:21:25.411  31880-31943 D/ReplacementMediaPlayer﹕ this.mpi is not a ServiceBackedMediaPlayer, but we couldn't use it anyway
09-26 17:21:25.411  31880-31943 D/AndroidMediaPlayer﹕ setDataSource(/storage/emulated/0/Android/data/files/media/This American Life/567 Whats Going On In There.mp3)
09-26 17:21:25.413  31880-31880 D/PlaybackController﹕ status: INITIALIZING
09-26 17:21:25.416  31880-31943 D/PlaybackSvcMediaPlayer﹕ Setting player status to INITIALIZED
09-26 17:21:25.416  31880-31943 D/PlaybackSvcMediaPlayer﹕ playerStatus: INITIALIZED
09-26 17:21:25.416  31880-31943 D/PlaybackSvcMediaPlayer﹕ getPosition() -> 19244
09-26 17:21:25.418  31880-31943 D/PlaybackService﹕ Writing playback preferences
09-26 17:21:25.429  31880-31944 D/DBReader﹕ Loading feeditem with id 1
09-26 17:21:25.429  31880-31944 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.429  31880-31944 D/DBReader﹕ Loading feeditem with id 1
09-26 17:21:25.437  31880-31880 D/PlaybackController﹕ Received statusUpdate Intent.
09-26 17:21:25.437  31880-31880 D/PlaybackController﹕ status: INITIALIZED
09-26 17:21:25.437  31880-31880 D/ExternalPlayerFragment﹕ Loading media info
09-26 17:21:25.450  31880-31944 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.454  31880-31944 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.455  31880-31944 D/DBReader﹕ Extracting Feedlist
09-26 17:21:25.455  31880-31944 V/PodDBAdapter﹕ Opening DB
09-26 17:21:25.492  31880-31880 D/PlayerWidgetService﹕ Service created
09-26 17:21:25.509  31880-31880 D/PlaybackController﹕ PlaybackService is running, trying to connect without start command.
09-26 17:21:25.510  31880-31880 D/PlaybackController﹕ Result for service binding: true
09-26 17:21:25.510  31880-31880 D/PlayerWidgetService﹕ Connection to service established

@ydinath
Copy link
Contributor Author

ydinath commented Sep 26, 2015

There is no exception thrown. The list won't populate, and the blue circle is there going around forever.

It is easy to get out of this issue. The list populates if you navigate away from AntennaPod and open it again, or you can navigate away inside the app and return.

@mfietz
Copy link
Contributor

mfietz commented Sep 26, 2015

I have seen this issue before, but I don't have a list of steps that will always result in this behavior. In at least 9 out of 10 cases, the list is loaded as it should when following your steps.

@ydinath
Copy link
Contributor Author

ydinath commented Sep 26, 2015

Interesting. For me, 9 out of 10 times it doesn't load. Can you give me a hint as to where the code is to populate the list, and I'll debug there.

@mfietz
Copy link
Contributor

mfietz commented Sep 26, 2015

ItemlistFragment, loadItems() is called in onResume()

@TomHennen
Copy link
Contributor

The latest branch will be appearing in the alpha channel very shortly.
Hopefully this doesn't affect many people

On Sat, Sep 26, 2015, 5:41 PM Martin Fietz notifications@github.com wrote:

ItemlistFragment, loadItems() is called in onResume()


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

@ydinath
Copy link
Contributor Author

ydinath commented Sep 26, 2015

I tried debugging and came up empty.
Though, I did restart my device, and the number of times this occurred decreased to one in ten (the same as you, @mfietz)

@TomHennen I did test on the latest alpha build. It's also a minor inconvenience at best.

@mfietz
Copy link
Contributor

mfietz commented Jan 17, 2016

is this still an issue?

@ydinath
Copy link
Contributor Author

ydinath commented Jan 17, 2016

No, not one that I can reproduce.

@ydinath ydinath closed this as completed Jan 17, 2016
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