Bionus / imgbrd-grabber

Very customizable imageboard/booru downloader with powerful filenaming features.
https://www.bionus.org/imgbrd-grabber/
Apache License 2.0
2.48k stars 216 forks source link

Crash when clicking on any img preview #2318

Closed XenonAST closed 4 months ago

XenonAST commented 3 years ago

Steps to reproduce

  1. Open Grabber
  2. Search anything with default website and tag
  3. left click on any img preview
  4. grabber crashes

Context

main.log

[02:29:23.636][Info] Temp directory purged of 0/0 files (0 failed)
[02:29:23.905][Info] Software version: 7.5.1.
[02:29:23.906][Info] Software CPU architecture: x64.
[02:29:23.907][Info] Computer CPU architecture: x86_64.
[02:29:23.907][Info] Qt CPU architecture: x86_64.
[02:29:23.907][Info] Computer platform: Windows 10 Version 2004.
[02:29:23.907][Info] Path: `D:/Program Files/Grabber`
[02:29:23.908][Info] Loading preferences from `C:/Users/Administrator/AppData/Local/Bionus/Grabber/settings.ini`
[02:29:23.908][Info] Temporary path: `C:/Users/Administrator/AppData/Local/Temp\Grabber`
[02:29:23.909][Info] Sources found: 21
[02:29:23.909][Info] SSL libraries: OpenSSL 1.1.1j  16 Feb 2021
[02:29:23.917][Info] Setting language to '' (`D:\Program Files\Grabber\languages\.qm`)...
[02:29:23.918][Info] 21 sources found: anime-pictures.net (Anime pictures), api.twitter.com (Twitter), behoimi.org (Danbooru), danbooru.donmai.us (Danbooru (2.0)), derpibooru.org (Philomena), e-hentai.org (E-Hentai), e621.net (E621), exhentai.org (E-Hentai), gelbooru.com (Gelbooru (0.2)), hijiribe.donmai.us (Danbooru (2.0)), konachan.com (Moebooru), nhentai.net (NHentai), rule34.paheal.net (Shimmie), rule34.xxx (Gelbooru (0.2)), safebooru.org (Gelbooru (0.2)), sonohara.donmai.us (Danbooru (2.0)), tentaclerape.net (Shimmie), www.deviantart.com (DeviantArt), www.pixiv.net (Pixiv), www.zerochan.net (Zerochan), yande.re (Moebooru)
[02:29:23.933][Warning] It seems that Imgbrd-Grabber hasn't shut down properly last time.
[02:29:25.366][Info] Updating checkboxes.
[02:29:25.369][Info] Updating checkboxes.
[02:29:25.371][Info] Monitoring starting
[02:29:25.407][Info] Monitoring tick
[02:29:25.407][Info] Monitoring finished
[02:29:29.224][Info] Loading results...
[02:29:29.225][Info] [danbooru.donmai.us][Html] Loading page `https://danbooru.donmai.us/posts?limit=20&page=1&tags=`
[02:29:29.225][Info] [danbooru.donmai.us][Xml] Loading page `https://danbooru.donmai.us/posts.xml?limit=20&page=1&tags=`
[02:29:29.663][Info] [danbooru.donmai.us][Xml] Receiving page `https://danbooru.donmai.us/posts.xml?limit=20&page=1&tags=`
[02:29:29.675][Info] [danbooru.donmai.us][Xml] Parsed page `https://danbooru.donmai.us/posts.xml?limit=20&page=1&tags=`: 20 images (20), 0 tags (301), -1 total (-1), -1 pages (-1)
[02:29:30.381][Info] [danbooru.donmai.us][Html] Receiving page `https://danbooru.donmai.us/posts?limit=20&page=1&tags=`
[02:29:30.384][Info] [danbooru.donmai.us][Html] Parsed page `https://danbooru.donmai.us/posts?limit=20&page=1&tags=`: 0 images (0), 25 tags (25), -1 total (-1), -1 pages (-1)
[02:34:28.863][Error] [Qt][default] Cannot mix incompatible Qt library (5.9.7) with this library (5.15.1)

settings.ini

[General]
last_check_for_updates=@DateTime(\0\0\0\x10\0\0\0\0\0\0%\x86\xa6\0nY\x92\0)
crashed=true
whitelistedtags=
add=
globalPostFilter=
globalPostFilterExplicit=false
whitelist_download=never
limit=20
columns=1
source_1=xml
source_2=json
source_3=regex
source_4=rss
tagsautoadd=10
start=restore
hidefavorites=20
autodownload=false
hideblacklisted=false
showtagwarning=true
showwarnings=true
getunloadedpages=false
invertToggle=false
confirm_close=true
send_usage_data=true
check_for_updates=86400
tempPathOverride=
preloadAllTabs=false
downloadblacklist=false
ignoredtags=
resizeInsteadOfCropping=true
thumbnailUpscale=1
autocompletion=true
useregexfortags=true
infiniteScroll=disabled
infiniteScrollRememberPage=false
theme=Default
tagsposition=top
preload=0
slideshow=0
resultsScrollArea=true
resultsFixedWidthLayout=false
imageCloseMiddleClick=true
imageNavigateScroll=true
imagePositionImageV=center
imagePositionImageH=left
imagePositionAnimationV=center
imagePositionAnimationH=left
imagePositionVideoV=center
imagePositionVideoH=left
imageBackgroundColor=
serverBorder=0
serverBorderColor=#000000
borders=3
language=
firstload=false
reverse=false
sites=danbooru.donmai.us

[GAnalytics]
cid=b8be0ae7-3688-4b82-8e53-0f8dc60f346f

[Save]
path=F:\\boorudownload
filename=%artist%_%copyright%_%character%_%md5%.%ext%
automaticretries=0
downloadoriginals=true
samplefallback=true
replaceblanks=false
keepDate=true
headerDetection=true
separator=" "
noJpeg=true
path_real=F:\\boorudownload
path_favorites=
md5Duplicates=save
md5DuplicatesSameDir=save
keepDeletedMd5=false
multiple_files=copy
filename_real=%artist%_%copyright%_%character%_%md5%.%ext%
filename_favorites=
artist_empty=anonymous
artist_sort=original
artist_useall=true
artist_multiple_limit=1
artist_multiple_keepN=1
artist_multiple_keepNThenAdd_keep=1
artist_multiple_keepNThenAdd_add=" (+ %count%)"
artist_sep=+
artist_value=multiple artists
artist_multiple=keepAll
copyright_empty=misc
copyright_sort=original
copyright_useall=true
copyright_multiple_limit=1
copyright_multiple_keepN=1
copyright_multiple_keepNThenAdd_keep=1
copyright_multiple_keepNThenAdd_add=" (+ %count%)"
copyright_sep=+
copyright_value=crossover
copyright_multiple=keepAll
copyright_useshorter=true
character_empty=unknown
character_sort=original
character_useall=true
character_multiple_limit=1
character_multiple_keepN=1
character_multiple_keepNThenAdd_keep=1
character_multiple_keepNThenAdd_add=" (+ %count%)"
character_sep=+
character_value=group
character_multiple=keepAll
model_empty=unknown
model_sort=original
model_useall=true
model_multiple_limit=1
model_multiple_keepN=1
model_multiple_keepNThenAdd_keep=1
model_multiple_keepNThenAdd_add=" (+ %count%)"
model_sep=+
model_value=multiple
model_multiple=keepAll
photo_set_empty=unknown
photo_set_sort=original
photo_set_useall=true
photo_set_multiple_limit=1
photo_set_multiple_keepN=1
photo_set_multiple_keepNThenAdd_keep=1
photo_set_multiple_keepNThenAdd_add=" (+ %count%)"
photo_set_sep=+
photo_set_value=multiple
photo_set_multiple=keepAll
species_empty=unknown
species_sort=original
species_useall=true
species_multiple_limit=1
species_multiple_keepN=1
species_multiple_keepNThenAdd_keep=1
species_multiple_keepNThenAdd_add=" (+ %count%)"
species_sep=+
species_value=multiple
species_multiple=keepAll
meta_empty=none
meta_sort=original
meta_useall=true
meta_multiple_limit=1
meta_multiple_keepN=1
meta_multiple_keepNThenAdd_keep=1
meta_multiple_keepNThenAdd_add=" (+ %count%)"
meta_sep=+
meta_value=multiple
meta_multiple=keepAll
MetadataPropsysExtensions=jpg jpeg mp4
MetadataPropsys\size=0
MetadataExiftoolExtensions=jpg jpeg png gif mp4
MetadataExiftool\size=0
limit=0
simultaneous=1

[Sources]
Types=icon
Letters=3

[Log]
show=true

[Monitoring]
startupDelay=0
enableTray=false
minimizeToTray=false
closeToTray=false

[Batch]
end=0

[ImageSize]
maxWidth=1000
maxWidthEnabled=false
maxHeight=1000
maxHeightEnabled=false

[WebServices]
1\name=IQDB
1\url="https://iqdb.org/?url={url}"
1\order=1
2\name=SauceNAO
2\url="https://saucenao.com/search.php?db=999&url={url}"
2\order=2
3\name=Google
3\url="https://www.google.com/searchbyimage?image_url={url}"
3\order=3
4\name=TinEye
4\url="https://www.tineye.com/search/?url={url}"
4\order=4
5\name=Yandex
5\url="https://yandex.ru/images/search?rpt=imageview&img_url={url}"
5\order=5
6\name=waifu2x
6\url="http://waifu2x.udp.jp/index.html?url={url}"
6\order=6

[Zoom]
singleWindow=false
showTagCount=false
viewSamples=false
scaleUp=false
useVideoPlayer=true
showVideoPlayerControls=true
showGifPlayerControls=true
tagOrder=type

[Coloring]
Colors\artists=#aa0000
Colors\circles=#55bbff
Colors\copyrights=#aa00aa
Colors\characters=#00aa00
Colors\species=#ee6600
Colors\metas=#ee6600
Colors\models=#0000ee
Colors\generals=#000000
Colors\favorites=#ffc0cb
Colors\keptForLater=#000000
Colors\blacklisteds=#000000
Colors\ignoreds=#999999
Fonts\artists="SimSun,9,-1,5,50,0,0,0,0,0"
Fonts\circles="SimSun,9,-1,5,50,0,0,0,0,0"
Fonts\copyrights="SimSun,9,-1,5,50,0,0,0,0,0"
Fonts\characters="SimSun,9,-1,5,50,0,0,0,0,0"
Fonts\species="SimSun,9,-1,5,50,0,0,0,0,0"
Fonts\metas="SimSun,9,-1,5,50,0,0,0,0,0"
Fonts\models="SimSun,9,-1,5,50,0,0,0,0,0"
Fonts\generals="SimSun,9,-1,5,50,0,0,0,0,0"
Fonts\favorites="SimSun,9,-1,5,50,0,0,0,0,0"
Fonts\keptForLater="SimSun,9,-1,5,50,0,0,0,0,0"
Fonts\blacklisteds="SimSun,9,-1,5,50,0,0,0,0,0"
Fonts\ignoreds="SimSun,9,-1,5,50,0,0,0,0,0"

[Margins]
main=10
horizontal=6
vertical=6

[Proxy]
use=false
useSystem=false
type=http
hostName=
port=0
user=
password=

[Exec]
tag_before=
image=
tag_after=
SQL\driver=
SQL\host=
SQL\user=
SQL\password=
SQL\database=
SQL\before=
SQL\tag_before=
SQL\image=
SQL\tag_after=
SQL\after=

System information

Additional context

It seems like a Qt library version problem. Maybe it can be fixed by installing some libraries on my system? But I don't know how.

XenonAST commented 3 years ago

Well, after struggling for an hour to update Qt version on my windows 10 with no result (it's really painful to find a way to do that for Qt, I even installed a whole Qt creator), I finally find that Grabber 7.4.3 can work properly on my computer while 7.5.0 will also crash.

Bionus commented 3 years ago

[Qt][default] Cannot mix incompatible Qt library (5.9.7) with this library (5.15.1)

Weird, could it be that you once added files to the install directory manually? If you install Grabber in a new location (or totally delete the previous install before the new one) does this still happen?

All the files in the installer are taken from a single Qt install so they definitely shouldn't be mixed. Also, Grabber uses Qt 5.15 since 7.3.2 so it's weird that you're having the issue with Grabber 7.5.0 but not 7.4.3.

Well, after struggling for an hour to update Qt version on my windows 10 with no result (it's really painful to find a way to do that for Qt, I even installed a whole Qt creator),

You absolutely don't need to install Qt, the DLL provided with the installer should be enough. Installing it might actually cause issues if they're added to your %PATH% (which they shouldn't by default).

mnnxit7 commented 3 years ago

Had this exact issue. Yesterday it was working fine and today it was not. The only change I did on my system was trying to add miniconda3 to user PATH. I've just confirmed that removing these lines from user PATH worked for me:

%USERPROFILE%\MiniConda3
%USERPROFILE%\MiniConda3\Scripts
%USERPROFILE%\MiniConda3\Library\bin

There was some Qt files from a different version within "%USERPROFILE%\MiniConda3\Library\bin", hence the conflict. Open Advanced System Settings > Environment Variables... and remove all PATH entries with Qt files within and the issue is solved - for Grabber at least. Some program that needs that PATH entry might stop working.

XenonAST commented 3 years ago

Had this exact issue. Yesterday it was working fine and today it was not. The only change I did on my system was trying to add miniconda3 to user PATH. I've just confirmed that removing these lines from user PATH worked for me:

%USERPROFILE%\MiniConda3
%USERPROFILE%\MiniConda3\Scripts
%USERPROFILE%\MiniConda3\Library\bin

There was some Qt files from a different version within "%USERPROFILE%\MiniConda3\Library\bin", hence the conflict. Open Advanced System Settings > Environment Variables... and remove all PATH entries with Qt files within and the issue is solved - for Grabber at least. Some program that needs that PATH entry might stop working.

Exactly! The problem is solved after I remove all the Anaconda related settings in my PATH. @Bionus Maybe the problem now is to checkout why Grabber's Qt is conflicting with Anaconda's starting from 7.5.0? It is still annoying if I need to disable my Anaconda (as well as many python scripts depending on it) to use new version Grabber.

Anyway, thanks for you two's help!

hikigaya-haru commented 3 years ago

Hijacking this issue because I'm having a similar problem (incompatible qt versions), is there any way to check where would the incompatible qt version be located? I've searched through all the items in my path variable and found nothing

takashi1kun commented 3 years ago

This also happens to me, removing anaconda is not really an option

hikigaya-haru commented 3 years ago

I found out the problem after a couple of days, another software I had also used Qt and was throwing a tantrum (I can't remember the software though). What I did was search my entire computer for the Qt dlls (check the log file for the name), find out the offending program and then either uninstalling or finding a newer version

aaabbbccc16 commented 2 years ago

Had the exact same issue and solved it by borrowing the correct version Qt5Svg.dll from another program.

stale[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

If this issue is about a bug that still happens in the latest version, or a suggestion that is still relevant, feel free to comment on it and the maintainers will have another look, they might have missed it!

Thank you!