ResInsight
ResInsight copied to clipboard
Interface lock up ... cancel or stop options in some interfaces
[2023.06.0] I was just using 'View Plot Data' and accidentally clicked on 'Plot Data, Minute' and the window is stuck on preparing test data ... and generally locked from any other operation. This is not a bug as such but the it is an undesirable situation for the interface to lock out in this way without a 'Cancel' or 'Stop' option. The same may happen in larger loadups, ensembles and operations like the flow diagnostic calculations ... suggest to consider a progress bar for some of these potentially longer operations, also with 'Cancel' or 'Stop' options. :-)
https://github.com/OPM/ResInsight/issues/10426 will ask the user before creating a large number of text lines.
Adding a progress dialog with cancel requires some larger changes to the code, and this is a topic we are looking into.
Yes indeed. When I was involved in software (a long time ago back in the 1980/90's developing for SunOS/X and Win 3.1 in MSVC v1 !!) we handled 'long' events by placing a message handler at points in the interior of the main processing loops. So for example within a fourrier transform that might take ~5 minutes, so messages for mouse actions / paint etc. were handled from the queue and by inserting cancel flags, allowed longer computations to run concurrently rather than in hour-glass mode. My point is that this was done in a fairly non-invasive manner to the code only needing an 'interior' message handler function call every now and again, and was much easier than setting up asynchronous threads etc. Just a thought in case it helps, though accepting things have moved on a very very long way in the last 30 years!