NewPipe icon indicating copy to clipboard operation
NewPipe copied to clipboard

When download this video app crash

Open Brimont opened this issue 8 years ago • 14 comments

Exception

  • User Action: ui error
  • Request: App crash, UI failure
  • Content Language: IT
  • Service: none
  • Version: 0.14.1
  • OS: Linux Android 4.2.1 - 17
java.lang.RuntimeException: java.io.IOException: open failed: EINVAL (Invalid argument)
	at us.shandian.giga.get.DownloadManagerImpl$Initializer.run(DownloadManagerImpl.java:362)
Caused by: java.io.IOException: open failed: EINVAL (Invalid argument)
	at java.io.File.createNewFile(File.java:948)
	at us.shandian.giga.get.DownloadManagerImpl$Initializer.run(DownloadManagerImpl.java:350)
Caused by: libcore.io.ErrnoException: open failed: EINVAL (Invalid argument)
	at libcore.io.Posix.open(Native Method)
	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
	at java.io.File.createNewFile(File.java:941)
	... 1 more
java.io.IOException: open failed: EINVAL (Invalid argument)
	at java.io.File.createNewFile(File.java:948)
	at us.shandian.giga.get.DownloadManagerImpl$Initializer.run(DownloadManagerImpl.java:350)
Caused by: libcore.io.ErrnoException: open failed: EINVAL (Invalid argument)
	at libcore.io.Posix.open(Native Method)
	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
	at java.io.File.createNewFile(File.java:941)
	... 1 more
libcore.io.ErrnoException: open failed: EINVAL (Invalid argument)
	at libcore.io.Posix.open(Native Method)
	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
	at java.io.File.createNewFile(File.java:941)
	at us.shandian.giga.get.DownloadManagerImpl$Initializer.run(DownloadManagerImpl.java:350)

-------------------

Test this link https://m.youtube.com/watch?v=sU8rn9Lx8KI and this https://m.youtube.com/watch?v=up8uuqR3-70 and this https://m.youtube.com/watch?v=BPdRe8eCP_s

Brimont avatar Sep 08 '18 10:09 Brimont

Can not confirm, give further information.

theScrabi avatar Sep 08 '18 13:09 theScrabi

I have the same problem as far as I can tell: The crashes whenever I open a video; no matter which video.
`{ "user_action": "requested stream", "request": "https://www.youtube.com/watch?v=MANUALLY_EDITED", "content_language": "GB", "service": "YouTube", "package": "org.schabi.newpipe", "version": "0.13.7", "os": "Linux Android 7.1.2 - 25", "time": "2018-09-08 14:35", "exceptions": [ "org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor$DecryptException: Could not parse decrypt function \n\tat org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor.loadDecryptionCode(YoutubeStreamExtractor.java:692)\n\tat org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor.onFetchPage(YoutubeStreamExtractor.java:567)\n\tat org.schabi.newpipe.extractor.Extractor.fetchPage(Extractor.java:48)\n\tat org.schabi.newpipe.extractor.stream.StreamInfo.getInfo(StreamInfo.java:59)\n\tat org.schabi.newpipe.extractor.stream.StreamInfo.getInfo(StreamInfo.java:55)\n\tat org.schabi.newpipe.util.ExtractorHelper.lambda$getStreamInfo$3$ExtractorHelper(ExtractorHelper.java:113)\n\tat org.schabi.newpipe.util.ExtractorHelper$$Lambda$3.call(Unknown Source)\n\tat io.reactivex.internal.operators.single.SingleFromCallable.subscribeActual(SingleFromCallable.java:44)\n\tat io.reactivex.Single.subscribe(Single.java:3310)\n\tat io.reactivex.internal.operators.single.SingleDoOnSuccess.subscribeActual(SingleDoOnSuccess.java:35)\n\tat io.reactivex.Single.subscribe(Single.java:3310)\n\tat io.reactivex.internal.operators.maybe.MaybeFromSingle.subscribeActual(MaybeFromSingle.java:41)\n\tat io.reactivex.Maybe.subscribe(Maybe.java:4073)\n\tat io.reactivex.internal.operators.maybe.MaybeConcatArray$ConcatMaybeObserver.drain(MaybeConcatArray.java:153)\n\tat io.reactivex.internal.operators.maybe.MaybeConcatArray$ConcatMaybeObserver.request(MaybeConcatArray.java:78)\n\tat io.reactivex.internal.operators.flowable.FlowableElementAtMaybe$ElementAtSubscriber.onSubscribe(FlowableElementAtMaybe.java:66)\n\tat io.reactivex.internal.operators.maybe.MaybeConcatArray.subscribeActual(MaybeConcatArray.java:42)\n\tat io.reactivex.Flowable.subscribe(Flowable.java:14349)\n\tat io.reactivex.internal.operators.flowable.FlowableElementAtMaybe.subscribeActual(FlowableElementAtMaybe.java:36)\n\tat io.reactivex.Maybe.subscribe(Maybe.java:4073)\n\tat io.reactivex.internal.operators.maybe.MaybeToSingle.subscribeActual(MaybeToSingle.java:46)\n\tat io.reactivex.Single.subscribe(Single.java:3310)\n\tat io.reactivex.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run(SingleSubscribeOn.java:89)\n\tat io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:579)\n\tat io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)\n\tat io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:237)\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:272)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)\n\tat java.lang.Thread.run(Thread.java:761)\nCaused by: org.schabi.newpipe.extractor.utils.Parser$RegexException: failed to find pattern "(["\'])signature\1\s*,\s*([a-zA-Z0-9$]+)\(\n\tat org.schabi.newpipe.extractor.utils.Parser.matchGroup(Parser.java:63)\n\tat org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor.loadDecryptionCode(YoutubeStreamExtractor.java:672)\n\t... 30 more\n" ], "user_comment": "" }

`

volklord avatar Sep 08 '18 14:09 volklord

https://github.com/TeamNewPipe/NewPipe/releases update

DanGLVK avatar Sep 08 '18 14:09 DanGLVK

@TheScrabi test with emulator android 4.2

Brimont avatar Sep 09 '18 10:09 Brimont

every time I download one of these videos the app crash I think there is something wrong

Brimont avatar Sep 09 '18 10:09 Brimont

Maybe you try to download to sdcard.

theScrabi avatar Sep 09 '18 17:09 theScrabi

Please release to F-droid (still at 0.14.0)

gbraad avatar Sep 11 '18 15:09 gbraad

@gbraad F-Droid fetches new releases automatically, same applies to the build process. We have no influence on when a new version is published on F-Droid .

TobiGr avatar Sep 11 '18 16:09 TobiGr

@theScrabi this is a video of error download file app crash https://streamable.com/x93l2

Brimont avatar Sep 12 '18 07:09 Brimont

The release on Github solved this for me (which is 0.14.1)

On Wed, Sep 12, 2018 at 3:58 PM, Brimont [email protected] wrote:

@theScrabi https://github.com/theScrabi this is a video of error https://streamable.com/x93l2

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TeamNewPipe/NewPipe/issues/1675#issuecomment-420550608, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAHZpj9jkosdzxPpj9OEX7DJEzk8FCgks5uaL6_gaJpZM4Wfzkd .

--

Gerard Braad | http://gbraad.nl [ Doing Open Source Matters ]

gbraad avatar Sep 12 '18 08:09 gbraad

@Brimont Please go to the NewPipe settings > Download and tell us your download path as well as your setting for allowed characters in filenames.

TobiGr avatar Sep 12 '18 09:09 TobiGr

@TobiGr screenshot_2018-09-12-21-28-29 screenshot_2018-09-12-21-28-37

Brimont avatar Sep 12 '18 19:09 Brimont

@theScrabi was right. You are trying to download to an external SD card. From our FAQ:

We are aware of a bug that causes a crash when downloading a stream to an external SDcard. We are sorry for this inconvenience and trying our best to fix this issue.

Due to an outdated library (Gigaget) we are planing to refactor the whole downlad handling. This might take a while. We've raised a bounty for implementing certain aspects of the new mechanism. You can take a look at the corresponding ticket on GitHub.

TobiGr avatar Sep 12 '18 20:09 TobiGr

@TobiGr OK thanks

Brimont avatar Sep 12 '18 22:09 Brimont