Page MenuHome

Closing System Console can lead to loss of work
Confirmed, NormalPublic

Description

System Information
Operating system: Windows

Blender Version
Any

Exact steps for others to reproduce the error

  • Start Blender
  • Toggle the System Console (2.83 and newer Windows > Toggle System Console
  • Press the [x] button on the system console

Event Timeline

ronsn closed this task as Invalid.Wed, Jun 24, 1:48 AM
ronsn claimed this task.
ronsn added a subscriber: ronsn.

Thanks for your Spam report. Please make sure to save your work frequently. You can also edit your settings to save your work automatically every x minutes ๐Ÿ˜˜

Nathan Letwory (jesterking) reopened this task as Confirmed.Wed, Jun 24, 7:43 AM

This isn't spam clearly. But obviously the original post is not a very good-quality bug report either. This doesn't take away there is a valid issue here, though. I'm editing the OP to read nicer and convey the issue correctly.

That said, we should look for a way to make it _clear_ that the system console should not be closed using the [x] button, but rather just toggled with the menu entry it was first summoned with.

For @Robert VanEtten (KainDeGayls) the technical reason is that Blender is linked to the console subsystem, that allows us to show that system console. As a drawback it means closing _it_ closes the whole of Blender.

@William Reynish (billreynish) could we find a good way to communicate this to users that aren't aware that the system console on Windows is actually the main heart of the program, and closing it via its [x] button closes the whole of Blender?

I currently don't know of a way to override the behaviour of that button on the system console so we could prevent this, but we should keep looking.

Nathan Letwory (jesterking) renamed this task from I lost several hours of work... to Closing System Console can lead to loss of work.Wed, Jun 24, 7:45 AM
Nathan Letwory (jesterking) updated the task description. (Show Details)

The report doesn't mention OS or version but on windows we have disabled the close button in rB27a239864f78aa1618bb735fae63e0cea2a829cc

Right, there is a second close button though, which is probably which is used.

Using the X on the console window through the taskbar closes whole of Blender. @Ray molenkamp (LazyDodo), are you aware of any API that could help us hook into that one?

Another note for @Robert VanEtten (KainDeGayls)
Blender by default will make auto saves every few minutes of your scene to the tmp folder on your computer. If you close Blender without saving, you can revert back to a auto save by opening Blender and selecting from the top of Blender File -> Recover -> Auto save and selecting the auto save of your file.
By default, I believe Windows will clear the tmp folder if you turn off your computer. So make sure you recover your autosave before turning off your computer.

Toggle the System Console (2.83 and newer Windows > Toggle System Console

Why not use the toggle again ? If the button's name was "open system console", that'd be a different thing and leave an ambiguity. But there's not ambiguity here & totally a user's mistake.
window's console should be asking the user for a confirmation about "terminate process? "

Toggle the System Console (2.83 and newer Windows > Toggle System Console

Why not use the toggle again ? If the button's name was "open system console", that'd be a different thing and leave an ambiguity. But there's not ambiguity here & totally a user's mistake.

But there _is_ ambiguity. After opening the system console there is no indication _in the taskbar_ that closing the console window closes all Windows.

On Windows:

  • Start Blender
  • Window > New Window
  • Window > Toggle System Console

Now click on the Blender entry in the task bar, you'll get three previews: the main window, the new window and the console window. Click in the preview the X of the new window. It will close nicely as expected, rest of Blender is still up and running. Do the same with the console window. Blender closes without a peep.

This is far from unambiguous, and no doubt will lead to more of these cases in the future.

Ankit (ankitm) removed ronsn as the assignee of this task.Wed, Jun 24, 4:08 PM
Ankit (ankitm) added a project: User Interface.

I remember seeing suggestions over the years for having a terminal inside Blender itself. Is such a thing possible?