Skip to content

[Bug] "Ask where to download" and bilibili video download error #633

@facaikotei

Description

@facaikotei

Checklist (Your issue will be automatically closed if you delete this part)

  • I make sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed.
  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • I have attached the error report in the issue.

Describe the bug
A "post-processing failed" occurs when download bilibili video if "Ask where to download" is enabled.
Frequency
Always
Steps to reproduce the bug
Enable "Ask where to download".
Download a bilibili video.
Download failed.
Device (e.g. Pixel 9 Pro)
Samsung galaxy s22
Error report

Exception

  • User Action: download post-processing
  • Request: https://bilibili.com/BV1VJkZYeEm3?p=1 [ {type=video format=MPEG-4 quality=720P 高清 videoOnly=true} {type=audio format=m4a bitrate=-1} ]
  • Content Country: TW
  • Content Language: zh-TW
  • App Language: zh_TW_#Hant
  • Service: BiliBili
  • Version: 4.0.2
  • OS: Linux Android 14 - 34
Crash log

java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File[] java.io.File.listFiles()' on a null object reference
	at us.shandian.giga.util.Utility.removeTempFileOfDownloadedVideo(Utility.java:347)
	at us.shandian.giga.postprocessing.Postprocessing.run(Postprocessing.java:213)
	at us.shandian.giga.get.DownloadMission.doPostprocessing(DownloadMission.java:706)
	at us.shandian.giga.get.DownloadMission.$r8$lambda$J0GR1urTFneOp2O30GpOM3TNG0I(Unknown Source:0)
	at us.shandian.giga.get.DownloadMission$$ExternalSyntheticLambda0.run(Unknown Source:2)
	at java.lang.Thread.run(Thread.java:1012)


Additional context
#295 3.5.0 and #225 3.3.1 have same bug fixed and closed.
But in latest 4.0.2 version, it only "fixed" if "Ask where to download" is disable.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions