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

strange error on a very specific ugoira image #1141

Closed
3 tasks done
Butterfly-Dragon opened this issue Jul 26, 2022 · 13 comments
Closed
3 tasks done

strange error on a very specific ugoira image #1141

Butterfly-Dragon opened this issue Jul 26, 2022 · 13 comments

Comments

@Butterfly-Dragon
Copy link

Prerequisites

Description

I get an error on a very specific ugoira image

Steps to Reproduce

  1. try and download image id 98652280

Expected behavior:
download and conversion of ugoira

Actual behavior:
it stops with a The process cannot access the file because it is being used by another process on one of the images of the ugoira. PixivUtil gives out a 9999 error and then quits.

it only every happens on this very specific image.

Log file:
pixivutil.log
Error medium page for image 98652280.zip

Versions

PixivDownloader2 version 20220701

@Toyem
Copy link
Contributor

Toyem commented Jul 26, 2022

This is an error that occurs in the latest version of the program. It occurs only on ugoira that alternates between black & white and color images.
A fix was applied a short time ago following similar feedback on the #1132 issue.

To enjoy the program without this error you need to download the latest version with the latest patches.
To do this, go to the "Code" tab of the GitHub page of the project then click on the green "Code" button, finally download the zip of the project by clicking on the "Download ZIP" pull-down menu.

Capture d’écran 2022-07-26 à 21 07 43

If you are using Git, just do the git pull command to get the latest modifications.

I hope that this explanation was clear and will allow you to not have this issue anymore.
Don't hesitate to send back a mesasge if it happens again.

@Butterfly-Dragon
Copy link
Author

Oh! Thanks! If it gets really annoying now i know what to do.

Will that work with the windows executable or only with the python version?

Otherwise i'll just deal with it until the new version comes out, i don't want to set up everything again and change execution environment just to solve 1 problem on 1 image.

@Toyem
Copy link
Contributor

Toyem commented Jul 27, 2022

Unfortunately, the zip archive of the project does not contain a Windows executable, only the python code of the program.
The improvements I mentioned are for the moment only available on the python program and the executable seems to be produced only with each new version created by Nandaka.

I have no workaround for you if you use the exe file. I can only invite you to wait for the next version of the program or to find a way to generate your own executable from the python program.

@Butterfly-Dragon
Copy link
Author

thanks, it's no problem, i will wait.

@Butterfly-Dragon
Copy link
Author

Butterfly-Dragon commented Aug 4, 2022

error persists in v20220804

2 of 2s.
Processing Image Id: 98652280
Title: Fanbox in May
Tags : 우고이라, メカバレ, アンドロイド, ロボ娘, ハッキング
Date : 2022-05-27 23:15:29+01:00
Mode : ugoira_view
Bookmark Count : 123
Image URL : https://i.pximg.net/img-zip-ugoira/img/2022/05/28/07/15/29/98652280_ugoira1920x1080.zip
Filename  : D:\Downloads\Downloader\Manga\Files\Ho-ze (73681464) - 98652280_ugoira1920x1080 - Fanbox in May.zip
Local file exists: D:\Downloads\Downloader\Manga\Files\Ho-ze (73681464) - 98652280_ugoira1920x1080 - Fanbox in May.zip

Processing ugoira to animated gif...
Failed when converting, ffmpeg command used: "D:\Downloads\Downloader\!downloader\ffmpeg.exe" -y -safe 0 -i "C:\Users\simon\AppData\Local\Temp\convert_ugoira7wd_05uf/i.ffconcat" -filter_complex "[0:v]split[a][b];[a]palettegen=stats_mode=diff[p];[b][p]paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle" "C:\Users\simon\AppData\Local\Temp\convert_ugoira7wd_05uf/temp.gif"

Traceback (most recent call last):
  File "PixivImageHandler.pyc", line 336, in process_image
  File "PixivDownloadHandler.pyc", line 392, in handle_ugoira
  File "PixivHelper.pyc", line 969, in ugoira2gif
  File "PixivHelper.pyc", line 1055, in convert_ugoira
  File "PixivHelper.pyc", line 1163, in check_image_encoding
  File "PixivHelper.pyc", line 1186, in re_encode_image
  File "subprocess.pyc", line 951, in __init__
  File "subprocess.pyc", line 1420, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
Error at process_image(): 98652280
Exception: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None), <traceback object at 0x00FEB548>)
Dumping html to: Error medium page for image 98652280.html
Stuff happened, trying again after 2 second (15)
Traceback (most recent call last):
  File "PixivArtistHandler.pyc", line 161, in process_member
  File "PixivImageHandler.pyc", line 336, in process_image
  File "PixivDownloadHandler.pyc", line 392, in handle_ugoira
  File "PixivHelper.pyc", line 969, in ugoira2gif
  File "PixivHelper.pyc", line 1055, in convert_ugoira
  File "PixivHelper.pyc", line 1163, in check_image_encoding
  File "PixivHelper.pyc", line 1186, in re_encode_image
  File "subprocess.pyc", line 951, in __init__
  File "subprocess.pyc", line 1420, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
Error at process_member(): (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None), <traceback object at 0x00FEB208>) Member Id: 73681464
2 of 2s.
Processing Image Id: 98652280

@Toyem
Copy link
Contributor

Toyem commented Aug 4, 2022

It's a pretty confusing situation. To make myself feel better I just ran the new version with the id you gave on my Windows 10 virtual machine, both the python code and the executable version. In both cases, the code runs perfectly and no errors occur. log.txt

I will have to ask you for your config.ini and the version of Windows you are using.
Then I could try to reproduce the error in an environment as close as possible to yours

@Toyem
Copy link
Contributor

Toyem commented Aug 4, 2022

Ok i got it, I managed to reproduce your error (log.txt). I had some suspicions when I saw your post but now I am 99% sure.

The error comes from the path that is called for your ffmpeg.exe file.
I thought the "!" at the beginning of the path was weird and when I did some tweaking I found the same error.
So your path for your ffmepg D:\Downloads\Downloader\!downloader\ffmpeg.exe must be wrong. Nothing too serious

@Butterfly-Dragon
Copy link
Author

?!?!

image

no? it is correct.

Also, that is the only ugoira that has any problem whatsoever, all other ugoiras get processed normally.

@Butterfly-Dragon
Copy link
Author

apologies for the delays i am double checking some stuff to see if i am about to send sensitive info.

@Butterfly-Dragon
Copy link
Author

pixivutil.log
config.zip

@Toyem
Copy link
Contributor

Toyem commented Aug 9, 2022

I didn't manage to reproduce the error on my computer, but I may have an idea.
Can you modify in your config.ini, the line:

ffmpeg = "D:\Downloads\Downloader\!downloader\ffmpeg.exe"

By

ffmpeg = "D:\\Downloads\\Downloader\\!downloader\\ffmpeg.exe"

If it works, let us know so I can look more into it.

@Butterfly-Dragon
Copy link
Author

No change.

Let me try D:\\Downloads\\Downloader\\\!downloader\\ffmpeg.exe

Nada,

Hmmm.... what if... i just put ffmpeg.exe and i make an hard link of the file in the same directory as pixiv?

Okay, that woked.

@yhtojy
Copy link

yhtojy commented Oct 5, 2022

No change.

Let me try D:\\Downloads\\Downloader\\\!downloader\\ffmpeg.exe

Nada,

Hmmm.... what if... i just put ffmpeg.exe and i make an hard link of the file in the same directory as pixiv?

Okay, that woked.

This solved my same problem on Win7 64bit.
Thank you.

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