-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
[Bug] NetworkJob::Gallery Tab Network jobs stall in pending or working state after relaunch/crash #1627
Comments
Thank you for this report. This is pretty odd--obviously the program is supposed to resume if it boots with a non-complete downloader, and even if there is a crash it should normally be fine--since the downloader page is basically rewound in time a bit, it'll usually just blit through the first few results as it realises they are 'already in db' since they were imported after the crash (and so saved to the database, which did sync, but not the GUI session, which was pre-empted by the crash), and then it'll continue as always. I agree that this is probably some odd scheduling thing. I did change some file log stuff recently, which could screw with some duplicate URLs or paths in file logs, but it doesn't sound like you have this unless you have some very exotic URL class rules. Unfortunately I cannot reproduce this--if I force a crash and restart, things get back to normal as I would expect. There are some forced limits in the number of downloaders that can run at once--it is something like 5 gallery downloaders and 10 file downloaders--so sometimes the pending/working situation can stall when things are busy, for instance right after boot, but you will see things move forward unless the client is really suffering under hundreds of competing watchers or whatever. Can we gather a bit more information?
|
Paused all new network traffic, network report mode on, no messages from the network engine. On closer inspection another symptom is that search is not ◼️ on the offending jobs, but is ◼️ on files. However the search never seems to be proceeding to populate more files. |
Thanks. I think you are correct, as you said on discord, that somehow these old (1 year+) import jobs have some busted variable and serialisation will help us debug. I did recently update some of the 'how do we identify ourselves' vs 'how do we do our job' variables inside file import jobs, and I think gallery search jobs, so perhaps this is what has happened here. I will figure out some 'export this to json' job for the file and search logs and we'll examine what URLs etc.. they think they really have. |
Ok, slightly stupid location for the menu item, but both the file log and search log will in v600 support JSON export of the current selection to clipboard. Please DM me some examples here, and maybe the equivalent on a newly created downloader that we know work, and we'll see what the differences are. |
Hydrus version
598
Qt major version
Qt 6
Operating system
Linux (specify distro and version in comments)
Install method
Running from source
Install and OS comments
Ubuntu 23 x86
Bug description and reproduction
Gallery importer network jobs become stuck in the pending or working state but never make any progress after hydrus is relaunched.
My best guess for why this happens is that after the tab is deserialized the jobs have become orphaned instead of being reinserted into the job queue.
Symptoms
Reproduction Steps
Workaround
Copy the query from the faulted job and run it again. Delete the faulted job from the tab.
Log output
The text was updated successfully, but these errors were encountered: