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

Crash when Downloading Contents of multiple mods simultaneously #1713

Closed
PiggyWhiskey opened this issue May 6, 2016 · 4 comments · Fixed by #2930
Closed

Crash when Downloading Contents of multiple mods simultaneously #1713

PiggyWhiskey opened this issue May 6, 2016 · 4 comments · Fixed by #2930
Labels
Enhancement New features or functionality Network Issues affecting internet connections of CKAN

Comments

@PiggyWhiskey
Copy link

PiggyWhiskey commented May 6, 2016

CKAN 1.16.1.0
Windows 10

Downloading simultaneous contents of mods to cache causes crash

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: This BackgroundWorker is currently busy and cannot run multiple tasks concurrently.
   at System.ComponentModel.BackgroundWorker.RunWorkerAsync(Object argument)
   at CKAN.Main.ContentsDownloadButton_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

As a workaround to #1688 and #1367 I delete the actual GameData folder before updating a mod (100% success rate at the moment).
Most mods have a common sense folder, but others aren't.
So Downloading the contents is the only way to find exactly what folders.
This takes time, and can't be bulk selected.
Selecting one, and immediately going back to "Manage Mods" and downloading a second causes this crash.

No known workaround except do it one at a time.

@politas
Copy link
Member

politas commented May 10, 2016

How are you even doing that? I didn't think you could switch away from the downloading screen. You're talking about multiple processes trying to update the same file simultaneously, and this is not a fancy database. Don't do that. Download them one at a time.

@PiggyWhiskey
Copy link
Author

Is it possible to select multiple mods to download the cache?

@politas
Copy link
Member

politas commented May 10, 2016

I don't know of a way to do that, currently. Would you like to turn this into a feature request for that functionality?

@PiggyWhiskey
Copy link
Author

It's a "nice to have" kind of thing. Nothing super important.

As a feature, it could also be used to bulk select/unselect mods.

@ayan4m1 ayan4m1 added Support Issues that are support requests Enhancement New features or functionality and removed Support Issues that are support requests labels Aug 3, 2016
@HebaruSan HebaruSan added the Network Issues affecting internet connections of CKAN label Dec 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New features or functionality Network Issues affecting internet connections of CKAN
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants