MorganGrundy / MosaicMagnifique

Application for generating Photomosaics. Turn your images into beautiful Photomosaics.
https://morgangrundy.github.io
GNU General Public License v3.0
15 stars 0 forks source link

[REQUEST] CUDA Recovery #25

Closed MorganGrundy closed 1 year ago

MorganGrundy commented 2 years ago

Currently if the CUDA runs into any problems then the application exits. Instead we should cancel, clean up, and show an error to the user.

MorganGrundy commented 1 year ago

c025479 is a good step in the right direction. Currently we handle almost all the errors in the exact same way but we shouldn't. There are two groups:

  1. Errors like insufficient memory on the device, which is the user's problem to figure out. (We can give tips but nothing more. Disable other applications using the GPU, switch to CPU, reduce Photomosaic size, etc.)
  2. Errors completely out of the users control, in which case they should be reported on this github so I can fix it.
MorganGrundy commented 1 year ago

Some of the error messages might want improved still but we now recover from CUDA errors.