NewPipe icon indicating copy to clipboard operation
NewPipe copied to clipboard

App freezes up for several seconds after clicking download

Open raven9nine opened this issue 3 years ago • 9 comments

Checklist

  • [X] I am able to reproduce the bug with the latest version.
  • [X] I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • [X] I have read the FAQ and my problem isn't listed.
  • [X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • [X] This issue contains only one bug.
  • [X] I have read and understood the contribution guidelines.

Affected version

0.23.3

Steps to reproduce the bug

1 Go to video https://www.youtube.com/watch?v=pW3tKO7b8OI 2 Click download

Expected behavior

I expect download selections to appear

Actual behavior

App freezes up for several seconds. Sometimes the Android diogue, "Newpipe is not responding" appears.

Screenshots/Screen recordings

Screenshot_20220828-122957

Logs

No response

Affected Android/Custom ROM version

Android 10

Affected device model

No response

Additional information

This began happening after an update a few months ago but I do not remember which update that was.

raven9nine avatar Aug 28 '22 17:08 raven9nine

Try it on a different device.

opusforlife2 avatar Aug 31 '22 19:08 opusforlife2

I'm not the author but am encountering the same issue on my Pixel 4 XL running GrapheneOS 13. Even worse is that once this happens the phone constantly shows system messages about NewPipe not responding every couple seconds until I choose to close the app. It also gave me this information too:

type: ANR
osVersion: google/coral/coral:13/TP1A.220905.004/2022090600:user/release-keys
package: org.schabi.newpipe:989
process: org.schabi.newpipe

activity: org.schabi.newpipe/.MainActivity
cause: ANR Input dispatching timed out (8e2c8d8 org.schabi.newpipe/org.schabi.newpipe.MainActivity (server) is not responding. Waited 5003ms for FocusEvent(hasFocus=false))
info: ANR in org.schabi.newpipe (org.schabi.newpipe/.MainActivity)
PID: 20867
Reason: Input dispatching timed out (8e2c8d8 org.schabi.newpipe/org.schabi.newpipe.MainActivity (server) is not responding. Waited 5003ms for FocusEvent(hasFocus=false))
Parent: org.schabi.newpipe/.MainActivity
ErrorId: 154ba29a-4e14-47a9-a977-cf74e040435d
Frozen: false
Load: 3.01 / 3.43 / 3.73
----- Output from /proc/pressure/memory -----
some avg10=0.00 avg60=0.01 avg300=0.00 total=17260951
full avg10=0.00 avg60=0.00 avg300=0.00 total=5508015
----- End output from /proc/pressure/memory -----

CPU usage from 0ms to 5276ms later (2022-09-09 15:42:50.658 to 2022-09-09 15:42:55.934):
  32% 20867/org.schabi.newpipe: 20% user + 11% kernel / faults: 31961 minor 345 major
  26% 1698/system_server: 14% user + 12% kernel / faults: 19305 minor 217 major
  23% 3669/com.android.providers.media.module: 11% user + 11% kernel / faults: 4950 minor 1217 major
  21% 16182/com.android.externalstorage: 12% user + 9.6% kernel / faults: 4368 minor
  8.6% 703/surfaceflinger: 5.2% user + 3.4% kernel / faults: 3299 minor 4 major
  7.7% 1330/media.swcodec: 2.2% user + 5.4% kernel / faults: 8972 minor 27 major
  6.7% 2359/com.android.systemui: 3.3% user + 3.3% kernel / faults: 10904 minor 75 major
  3.9% 705/[email protected]: 1.8% user + 2% kernel
  3.9% 3755/com.android.inputmethod.latin: 2.4% user + 1.5% kernel / faults: 3095 minor 553 major
  0% 1246/media.extractor: 0% user + 0% kernel / faults: 4080 minor 31 major
  3.3% 2559/.qtidataservices: 1.6% user + 1.6% kernel / faults: 3108 minor 1162 major
  2.6% 2669/com.android.phone: 1.6% user + 0.9% kernel / faults: 2369 minor 802 major
  2% 3616/com.qualcomm.qti.services.secureui:sui_service: 0.5% user + 1.5% kernel / faults: 2874 minor 1994 major
  0% 2580/com.qti.phone: 0% user + 0% kernel / faults: 2045 minor 1738 major
  0% 3578/com.android.nfc: 0% user + 0% kernel / faults: 1917 minor 1768 major
  0% 2622/org.codeaurora.ims: 0% user + 0% kernel / faults: 1832 minor 943 major
  0% 3599/com.android.ims.rcsservice: 0% user + 0% kernel / faults: 2169 minor 1974 major
  1.6% 15133/kworker/u16:7: 0% user + 1.6% kernel
  1.5% 295/crtc_commit:125: 0% user + 1.5% kernel
  1.5% 13213/kworker/u16:3: 0% user + 1.5% kernel
  0% 1284/media.codec: 0% user + 0% kernel / faults: 1560 minor 70 major
  0.9% 1035/[email protected]: 0.3% user + 0.5% kernel / faults: 912 minor
  0% 2544/.dataservices: 0% user + 0% kernel / faults: 2214 minor 2086 major
  0% 2653/com.android.se: 0% user + 0% kernel / faults: 2125 minor 1926 major
  0.9% 14334/kworker/u16:9: 0% user + 0.9% kernel
  0.9% 15020/kworker/u16:0: 0% user + 0.9% kernel
  0.9% 15975/kworker/u16:10: 0% user + 0.9% kernel
  0.7% 1077/audioserver: 0.3% user + 0.3% kernel / faults: 192 minor 13 major
  0.7% 2596/com.android.networkstack.process: 0.3% user + 0.3% kernel / faults: 1962 minor 1060 major
  0.7% 15435/kworker/u16:6: 0% user + 0.7% kernel
  0.5% 641/logd: 0.3% user + 0.1% kernel / faults: 57 minor 5 major
  0% 889/tombstoned: 0% user + 0% kernel / faults: 169 minor 83 major
  0.5% 1318/qcrild: 0.3% user + 0.1% kernel / faults: 16 minor
  0.3% 9/rcu_preempt: 0% user + 0.3% kernel
  0.3% 285/kgsl_worker_thr: 0% user + 0.3% kernel
  0.3% 977/statsd: 0% user + 0.3% kernel / faults: 176 minor 36 major
  0.3% 1250/media.metrics: 0% user + 0.3% kernel / faults: 40 minor 12 major
  0% 3004/loop0: 0% user + 0% kernel
  0.3% 5206/org.thoughtcrime.securesms: 0.1% user + 0.1% kernel / faults: 21 minor
  0.1% 1/init: 0.1% user + 0% kernel / faults: 49 minor 53 major
  0.1% 10/rcu_sched: 0% user + 0.1% kernel
  0.1% 12/rcuop/0: 0% user + 0.1% kernel
  0.1% 22/rcuop/1: 0% user + 0.1% kernel
  0.1% 30/rcuop/2: 0% user + 0.1% kernel
  0.1% 38/rcuop/3: 0% user + 0.1% kernel
  0.1% 54/rcuop/5: 0% user + 0.1% kernel
  0.1% 62/rcuop/6: 0% user + 0.1% kernel
  0% 63/rcuos/6: 0% user + 0% kernel
  0.1% 296/crtc_event:125: 0% user + 0.1% kernel
  0% 616/kworker/5:1H: 0% user + 0% kernel
  0.1% 646/psimon: 0% user + 0.1% kernel
  0.1% 689/[email protected]: 0% user + 0.1% kernel
  0.1% 691/keystore2: 0% user + 0.1% kernel / faults: 16 minor 10 major
  0.1% 702/android.hardware.power-service.pixel-libperfmgr: 0% user + 0.1% kernel
  0.1% 978/netd: 0% user + 0.1% kernel / faults: 85 minor 18 major
  0% 1089/kworker/3:2H: 0% user + 0% kernel
  0% 1254/mediaserver: 0% user + 0% kernel / faults: 70 minor 14 major
  0.1% 2193/android.hardware.input.processor-service: 0.1% user + 0% kernel
  0.1% 3023/irq/32-90b6400.: 0% user + 0.1% kernel
  0.1% 3024/irq/33-90cd000.: 0% user + 0.1% kernel
  0.1% 4319/org.chromium.chrome:privileged_process0: 0.1% user + 0% kernel / faults: 20 minor
  0.1% 15478/org.chromium.chrome:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:410: 0.1% user + 0% kernel / faults: 2 minor
  0.1% 15885/org.chromium.chrome:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:417: 0% user + 0.1% kernel / faults: 1 minor
24% TOTAL: 11% user + 11% kernel + 1% iowait + 0.5% irq + 0.2% softirq
CPU usage from 51ms to 390ms later (2022-09-09 15:42:50.709 to 2022-09-09 15:42:51.048):
  37% 1698/system_server: 14% user + 22% kernel / faults: 523 minor
    22% 16230/AnrConsumer: 3.7% user + 18% kernel
    7.4% 2955/binder:1698_9: 7.4% user + 0% kernel
    3.7% 3583/binder:1698_A: 3.7% user + 0% kernel
  32% 3669/com.android.providers.media.module: 16% user + 16% kernel
    8% 10003/Thread-52: 0% user + 8% kernel
    8% 20220/Thread-45: 4% user + 4% kernel
    4% 20195/Thread-43: 0% user + 4% kernel
    4% 20210/Thread-39: 0% user + 4% kernel
    4% 20222/Thread-41: 4% user + 0% kernel
    4% 20224/Thread-46: 0% user + 4% kernel
  36% 16182/com.android.externalstorage: 22% user + 13% kernel / faults: 103 minor
    13% 16207/binder:16182_1: 9% user + 4.5% kernel
    9% 16213/binder:16182_4: 9% user + 0% kernel
    4.5% 16214/binder:16182_5: 4.5% user + 0% kernel
  13% 20867/org.schabi.newpipe: 4.5% user + 9% kernel / faults: 13 minor
    13% 20867/.schabi.newpipe: 4.5% user + 9% kernel
  2.9% 54/rcuop/5: 0% user + 2.9% kernel
  3.4% 1035/[email protected]: 0% user + 3.4% kernel / faults: 64 minor
  4.3% 15133/kworker/u16:7: 0% user + 4.3% kernel
18% TOTAL: 9.2% user + 8.5% kernel + 0.3% iowait + 0.3% irq

I'm not sure if this is related to the downloads functionality as I would experience similar behavior whenever I would delete downloaded videos from my phone's file manager instead of from NewPipe's download manager.

TheMCNerd2017 avatar Sep 09 '22 19:09 TheMCNerd2017

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

github-actions[bot] avatar Sep 15 '22 00:09 github-actions[bot]

I only have 1 phone.

raven9nine avatar Sep 17 '22 14:09 raven9nine

Toggle SAF on and off and see if that changes anything. If SAF is on, see if the app still has permission to access your designated download folders.

opusforlife2 avatar Sep 17 '22 18:09 opusforlife2

SAF is on but greyed out so I can't toggle it. NewPipe has access to the storage folders. It seems to be that when I click download button the app freezes while it waits to retrieve the information about the available streams and the file sizes from the internet.

raven9nine avatar Sep 18 '22 12:09 raven9nine

Try turning off internet completely and then tap Download.

opusforlife2 avatar Sep 18 '22 13:09 opusforlife2

Very similar. App is locked up for several seconds before the download dialogue appears with the choice of streams.

raven9nine avatar Sep 18 '22 14:09 raven9nine

Then it's not the fetching of stream info causing this.

What device and what OS?

opusforlife2 avatar Sep 18 '22 14:09 opusforlife2

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

github-actions[bot] avatar Oct 03 '22 00:10 github-actions[bot]