Newpipe: Unable to Open Downloads

Created on 21 May 2018  路  10Comments  路  Source: TeamNewPipe/NewPipe

Hello NewPipe,

Every time I try to access the downloads section via the main menu the app crashes with this message. I have tried uninstalling and reinstalling, clearing NewPipe's data, and deleting all media files in the storage locations.

{
"user_action": "ui error",
"request": "App crash, UI failure",
"content_language": "GB",
"service": "none",
"package": "org.schabi.newpipe",
"version": "0.13.3",
"os": "Linux Android 8.1.0 - 27",
"time": "2018-05-21 14:41",
"exceptions": [
"java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.util.ArrayList.add(java.lang.Object)' on a null object referencentat us.shandian.giga.get.DownloadMission.addListener(DownloadMission.java:234)ntat us.shandian.giga.ui.adapter.MissionAdapter.onBindViewHolder(MissionAdapter.java:115)ntat us.shandian.giga.ui.adapter.MissionAdapter.onBindViewHolder(MissionAdapter.java:40)ntat android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6673)ntat android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6714)ntat android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5647)ntat android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5913)ntat android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5752)ntat android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5748)ntat android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2232)ntat android.support.v7.widget.GridLayoutManager.layoutChunk(GridLayoutManager.java:556)ntat android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1519)ntat android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:614)ntat android.support.v7.widget.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:170)ntat android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3812)ntat android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3529)ntat android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:4082)ntat android.view.View.layout(View.java:19659)ntat android.view.ViewGroup.layout(ViewGroup.java:6075)ntat android.widget.LinearLayout.setChildFrame(LinearLayout.java:1791)ntat android.widget.LinearLayout.layoutVertical(LinearLayout.java:1635)ntat android.widget.LinearLayout.onLayout(LinearLayout.java:1544)ntat android.view.View.layout(View.java:19659)ntat android.view.ViewGroup.layout(ViewGroup.java:6075)ntat android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)ntat android.widget.FrameLayout.onLayout(FrameLayout.java:261)ntat android.view.View.layout(View.java:19659)ntat android.view.ViewGroup.layout(ViewGroup.java:6075)ntat android.widget.LinearLayout.setChildFrame(LinearLayout.java:1791)ntat android.widget.LinearLayout.layoutVertical(LinearLayout.java:1635)ntat android.widget.LinearLayout.onLayout(LinearLayout.java:1544)ntat android.view.View.layout(View.java:19659)ntat android.view.ViewGroup.layout(ViewGroup.java:6075)ntat android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)ntat android.widget.FrameLayout.onLayout(FrameLayout.java:261)ntat android.view.View.layout(View.java:19659)ntat android.view.ViewGroup.layout(ViewGroup.java:6075)ntat android.widget.LinearLayout.setChildFrame(LinearLayout.java:1791)ntat android.widget.LinearLayout.layoutVertical(LinearLayout.java:1635)ntat android.widget.LinearLayout.onLayout(LinearLayout.java:1544)ntat android.view.View.layout(View.java:19659)ntat android.view.ViewGroup.layout(ViewGroup.java:6075)ntat android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)ntat android.widget.FrameLayout.onLayout(FrameLayout.java:261)ntat android.view.View.layout(View.java:19659)ntat android.view.ViewGroup.layout(ViewGroup.java:6075)ntat android.widget.LinearLayout.setChildFrame(LinearLayout.java:1791)ntat android.widget.LinearLayout.layoutVertical(LinearLayout.java:1635)ntat android.widget.LinearLayout.onLayout(LinearLayout.java:1544)ntat android.view.View.layout(View.java:19659)ntat android.view.ViewGroup.layout(ViewGroup.java:6075)ntat android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)ntat android.widget.FrameLayout.onLayout(FrameLayout.java:261)ntat com.android.internal.policy.DecorView.onLayout(DecorView.java:761)ntat android.view.View.layout(View.java:19659)ntat android.view.ViewGroup.layout(ViewGroup.java:6075)ntat android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2496)ntat android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2212)ntat android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1392)ntat android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6752)ntat android.view.Choreographer$CallbackRecord.run(Choreographer.java:911)ntat android.view.Choreographer.doCallbacks(Choreographer.java:723)ntat android.view.Choreographer.doFrame(Choreographer.java:658)ntat android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:897)ntat android.os.Handler.handleCallback(Handler.java:790)ntat android.os.Handler.dispatchMessage(Handler.java:99)ntat android.os.Looper.loop(Looper.java:164)ntat android.app.ActivityThread.main(ActivityThread.java:6494)ntat java.lang.reflect.Method.invoke(Native Method)ntat com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)ntat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)n"
],
"user_comment": ""
}

bug

Most helpful comment

All 10 comments

Ok ill take a look

I have this problem as well. I'm on LineageOS 14.1 (Android 7.1) running as root, with Amplify, MinMinGuard, and AdAway installed if that helps. Whitelisting NewPipe in MinMinGuard did not help either.

I am having this issue as well. Lineage OS 14.1, Android 7.1.2, no root.

Attempting to access the downloads page by any means, whether via the download notification or via the sidebar button results in a crash of this nature, and the cancellation of any current downloads.

If you don't try to access the downloads page, the download seems to complete just fine!

The workaround:

@dakrag If you empty the NewPipe folders, /sdcard/Music/NewPipe/ and /sdcard/Movies/NewPipe/, the bug goes away, presumably until you 'fill up' those folders again.

@theScrabi It must be an over-run on how many objects the app can display at once.

Error log dump

{
   "user_action": "ui error",
   "request": "App crash, UI failure",
   "content_language": "GB",
   "service": "none",
   "package": "org.schabi.newpipe",
   "version": "0.13.3",
   "os": "Linux Android 7.1.2 - 25",
   "time": "2018-05-22 17:14",
   "exceptions": [
      "java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.util.ArrayList.add(java.lang.Object)' on a null object reference\n\t
      at us.shandian.giga.get.DownloadMission.addListener(DownloadMission.java:234)\n\t
      at us.shandian.giga.ui.adapter.MissionAdapter.onBindViewHolder(MissionAdapter.java:115)\n\t
      at us.shandian.giga.ui.adapter.MissionAdapter.onBindViewHolder(MissionAdapter.java:40)\n\t
      at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6673)\n\t
      at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6714)\n\t
      at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5647)\n\t
      at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5913)\n\t
      at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5752)\n\t
      at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5748)\n\t
      at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2232)\n\t
      at android.support.v7.widget.GridLayoutManager.layoutChunk(GridLayoutManager.java:556)\n\t
      at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1519)\n\t
      at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:614)\n\t
      at android.support.v7.widget.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:170)\n\t
      at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3812)\n\t
      at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3529)\n\t
      at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:4082)\n\t
      at android.view.View.layout(View.java:17641)\n\t
      at android.view.ViewGroup.layout(ViewGroup.java:5575)\n\t
      at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741)\n\t
      at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)\n\t
      at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)\n\t
      at android.view.View.layout(View.java:17641)\n\t
      at android.view.ViewGroup.layout(ViewGroup.java:5575)\n\t
      at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)\n\t
      at android.widget.FrameLayout.onLayout(FrameLayout.java:261)\n\t
      at android.view.View.layout(View.java:17641)\n\t
      at android.view.ViewGroup.layout(ViewGroup.java:5575)\n\t
      at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741)\n\t
      at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)\n\t
      at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)\n\t
      at android.view.View.layout(View.java:17641)\n\t
      at android.view.ViewGroup.layout(ViewGroup.java:5575)\n\t
      at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)\n\t
      at android.widget.FrameLayout.onLayout(FrameLayout.java:261)\n\t
      at android.view.View.layout(View.java:17641)\n\t
      at android.view.ViewGroup.layout(ViewGroup.java:5575)\n\t
      at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741)\n\t
      at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)\n\t
      at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)\n\t
      at android.view.View.layout(View.java:17641)\n\t
      at android.view.ViewGroup.layout(ViewGroup.java:5575)\n\t
      at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)\n\t
      at android.widget.FrameLayout.onLayout(FrameLayout.java:261)\n\t
      at android.view.View.layout(View.java:17641)\n\t
      at android.view.ViewGroup.layout(ViewGroup.java:5575)\n\t
      at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741)\n\t
      at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)\n\t
      at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)\n\t
      at android.view.View.layout(View.java:17641)\n\t
      at android.view.ViewGroup.layout(ViewGroup.java:5575)\n\t
      at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)\n\t
      at android.widget.FrameLayout.onLayout(FrameLayout.java:261)\n\t
      at com.android.internal.policy.DecorView.onLayout(DecorView.java:729)\n\t
      at android.view.View.layout(View.java:17641)\n\t
      at android.view.ViewGroup.layout(ViewGroup.java:5575)\n\t
      at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2346)\n\t
      at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2068)\n\t
      at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1254)\n\t
      at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6344)\n\t
      at android.view.Choreographer$CallbackRecord.run(Choreographer.java:874)\n\t
      at android.view.Choreographer.doCallbacks(Choreographer.java:686)\n\t
      at android.view.Choreographer.doFrame(Choreographer.java:621)\n\t
      at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860)\n\t
      at android.os.Handler.handleCallback(Handler.java:751)\n\t
      at android.os.Handler.dispatchMessage(Handler.java:95)\n\t
      at android.os.Looper.loop(Looper.java:154)\n\t
      at android.app.ActivityThread.main(ActivityThread.java:6186)\n\t
      at java.lang.reflect.Method.invoke(Native Method)\n\t
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)\n\t
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)\n"
   ],
   "user_comment": ""
}

In my case, on Oreo, I had only downloaded a single file and it produced this bug. So for me, I was not filling up anything or creating too many objects, I think?

@awgneo you may be right. Java is Greek to me, but your log looks nearly identical to mine, so it's got to be a layout issue of some sort!

This line:

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.util.ArrayList.add(java.lang.Object)' on a null object reference

At the top, isn't that implying that it's trying to draw something that doesn't exist?

Emptying the download folders or creating and setting as the download folder seems to have fixed the problem. I can access the downloads tab now. I noticed simply removing the .giga files seemed to have the same effect as removing the files altogether. Maybe it had to do with those being corrupted somehow?

I understand. That's nasty.
However if its the .giga files that this issues got already fixed by DafabHoid here. I had to push a release with this fix.

Same here. Removed the .giga files and Downloads could be opened again.

Already had problems when starting the download: it did not seem to start at first. When tapping on the notification, the download list opened, but the transfers seem to be frozen.

Can confirm, I just had a failed download and an orphaned .giga file. The error triggered again. Removing the .giga files does relieve the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danialbehzadi picture danialbehzadi  路  3Comments

cavemandaveman picture cavemandaveman  路  3Comments

hassanseoul123 picture hassanseoul123  路  3Comments

Aevann picture Aevann  路  3Comments

ghost picture ghost  路  3Comments