Blender doesn't respond while selecting system console and saving or opening another file #73588

Closed
opened 2020-02-04 15:39:32 +01:00 by Gerard Taulats Braos · 31 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: Intel(R) HD Graphics 4600 Intel 4.3.0 - Build 20.19.15.5058

Blender Version
Broken: 2.70 - 2.81.16 and 2.82 (sub 6), branch: master, commit date: 2020-02-02 08:28, hash: f51286cb8c
Worked: ... - 2.69 (when saving, but not when opening files)

Short description of error
Blender doesn't respond while selecting system console and saving or opening another file

Exact steps for others to reproduce the error

  • Toggle system console
    Evidence1.jpg

  • Select any text or space in it
    Evidence2.jpg

  • Save the file or open another without closing nor deselecting the text in the system console
    Evidence3.jpg

  • Not respond
    Evidence4.jpg

Note: It works again when deselecting the text in the system console

Odd behavoir: It does work when saving in 2.69 and olders, but doesn't when opening files

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: Intel(R) HD Graphics 4600 Intel 4.3.0 - Build 20.19.15.5058 **Blender Version** Broken: 2.70 - 2.81.16 and 2.82 (sub 6), branch: master, commit date: 2020-02-02 08:28, hash: `f51286cb8c` Worked: ... - 2.69 (when saving, but not when opening files) **Short description of error** Blender doesn't respond while selecting system console and saving or opening another file **Exact steps for others to reproduce the error** - Toggle system console ![Evidence1.jpg](https://archive.blender.org/developer/F8321067/Evidence1.jpg) - Select any text or space in it ![Evidence2.jpg](https://archive.blender.org/developer/F8321069/Evidence2.jpg) - Save the file or open another without closing nor deselecting the text in the system console ![Evidence3.jpg](https://archive.blender.org/developer/F8321071/Evidence3.jpg) - Not respond ![Evidence4.jpg](https://archive.blender.org/developer/F8321073/Evidence4.jpg) Note: It works again when deselecting the text in the system console Odd behavoir: It does work when saving in 2.69 and olders, but doesn't when opening files

Added subscriber: @Tabra

Added subscriber: @Tabra

#90254 was marked as duplicate of this issue

#90254 was marked as duplicate of this issue

#76777 was marked as duplicate of this issue

#76777 was marked as duplicate of this issue

#76796 was marked as duplicate of this issue

#76796 was marked as duplicate of this issue

#75431 was marked as duplicate of this issue

#75431 was marked as duplicate of this issue
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

It's not clear to me how anything like that in the system console could affect Blender. Could you be more clear about what you mean with system console? Just to be sure we're talking about the same thing.
In case we are, this would be a Windows only issue.

It's not clear to me how anything like that in the system console could affect Blender. Could you be more clear about what you mean with system console? Just to be sure we're talking about the same thing. In case we are, this would be a Windows only issue.
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Member
Even though unix Blender is launched from Terminal, window menu doesn't show "Toggle system console". It's only for windows. new wiki: https://docs.blender.org/manual/en/latest/advanced/command_line/launch/index.html#command-line-launch-index Old wiki: https://archive.blender.org/wiki/index.php/Doc:2.6/Manual/Interface/Window_system/Console_window/ related: https://blender.stackexchange.com/a/58473/79345
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member

I can confirm this issue using 6b9062508a

Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 470/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 388.13

I can confirm this issue using 6b9062508a Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 470/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 388.13

Added subscriber: @iss

Added subscriber: @iss

Can confirm program not responding, not crash.

stuck at printf("Read blend: %s\n", filepath);

	blender.exe!BKE_blendfile_read(bContext * C, const unsigned char * filepath, const BlendFileReadParams * params, ReportList * reports) Line 417	C
 	blender.exe!WM_file_read(bContext * C, const unsigned char * filepath, ReportList * reports) Line 636	C
 	blender.exe!wm_open_mainfile__open(bContext * C, wmOperator * op) Line 2239	C
 	blender.exe!wm_handler_fileselect_do(bContext * C, ListBase * handlers, wmEventHandler_Op * handler, int val) Line 2265	C
 	blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2749	C
 	blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2802	C
 	blender.exe!wm_event_do_handlers(bContext * C) Line 3181	C
 	blender.exe!WM_main(bContext * C) Line 421	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 520	C
 	[Externí kód]	

As soon as you cancel selection in console, execution continues

I may add, that when I quit Blender during debugging session (MSVC), console will wait for key press. I am not able to start new session until I make key press.

Can confirm program not responding, not crash. stuck at `printf("Read blend: %s\n", filepath);` ``` blender.exe!BKE_blendfile_read(bContext * C, const unsigned char * filepath, const BlendFileReadParams * params, ReportList * reports) Line 417 C blender.exe!WM_file_read(bContext * C, const unsigned char * filepath, ReportList * reports) Line 636 C blender.exe!wm_open_mainfile__open(bContext * C, wmOperator * op) Line 2239 C blender.exe!wm_handler_fileselect_do(bContext * C, ListBase * handlers, wmEventHandler_Op * handler, int val) Line 2265 C blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2749 C blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2802 C blender.exe!wm_event_do_handlers(bContext * C) Line 3181 C blender.exe!WM_main(bContext * C) Line 421 C blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 520 C [Externí kód] ``` As soon as you cancel selection in console, execution continues I may add, that when I quit Blender during debugging session (MSVC), console will wait for key press. I am not able to start new session until I make key press.

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'

In #73588#865739, @iss wrote:
Can confirm program not responding, not crash.

stuck at printf("Read blend: %s\n", filepath);

	blender.exe!BKE_blendfile_read(bContext * C, const unsigned char * filepath, const BlendFileReadParams * params, ReportList * reports) Line 417	C
 	blender.exe!WM_file_read(bContext * C, const unsigned char * filepath, ReportList * reports) Line 636	C
 	blender.exe!wm_open_mainfile__open(bContext * C, wmOperator * op) Line 2239	C
 	blender.exe!wm_handler_fileselect_do(bContext * C, ListBase * handlers, wmEventHandler_Op * handler, int val) Line 2265	C
 	blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2749	C
 	blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2802	C
 	blender.exe!wm_event_do_handlers(bContext * C) Line 3181	C
 	blender.exe!WM_main(bContext * C) Line 421	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 520	C
 	[Externí kód]	

As soon as you cancel selection in console, execution continues

I may add, that when I quit Blender during debugging session (MSVC), console will wait for key press. I am not able to start new session until I make key press.

I haven't noticed that. I'll change description. And also I changed the title, as I was mistaken about the crash

> In #73588#865739, @iss wrote: > Can confirm program not responding, not crash. > > stuck at `printf("Read blend: %s\n", filepath);` > > ``` > blender.exe!BKE_blendfile_read(bContext * C, const unsigned char * filepath, const BlendFileReadParams * params, ReportList * reports) Line 417 C > blender.exe!WM_file_read(bContext * C, const unsigned char * filepath, ReportList * reports) Line 636 C > blender.exe!wm_open_mainfile__open(bContext * C, wmOperator * op) Line 2239 C > blender.exe!wm_handler_fileselect_do(bContext * C, ListBase * handlers, wmEventHandler_Op * handler, int val) Line 2265 C > blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2749 C > blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2802 C > blender.exe!wm_event_do_handlers(bContext * C) Line 3181 C > blender.exe!WM_main(bContext * C) Line 421 C > blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 520 C > [Externí kód] > ``` > > As soon as you cancel selection in console, execution continues > > I may add, that when I quit Blender during debugging session (MSVC), console will wait for key press. I am not able to start new session until I make key press. I haven't noticed that. I'll change description. And also I changed the title, as I was mistaken about the crash
Gerard Taulats Braos changed title from Crash while selecting system console and saving or opening another file to Blender doesn't respond while selecting system console and saving or opening another file 2020-02-05 12:19:07 +01:00

Added subscriber: @Foaly

Added subscriber: @Foaly

If there's no crash, I wouldn't count this as a bug.
The console on windows always blocks if text is selected, and every software I know behaves like this.

I believe this is also used as a "feature" by some, in order to pause rendering.

If there's no crash, I wouldn't count this as a bug. The console on windows always blocks if text is selected, and every software I know behaves like this. I believe this is also used as a "feature" by some, in order to pause rendering.

I can confirn that it is a bug. As I mentioned in the description of the problem, in blender 2.69 and in older versions worked with the same set up that in recent versions stops working

I can confirn that it is a bug. As I mentioned in the description of the problem, in blender 2.69 and in older versions worked with the same set up that in recent versions stops working

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'
Philip Holzmann self-assigned this 2020-02-10 18:06:36 +01:00

I just tried this on Windows 7 64 bit with Blender 2.68, and it hangs just the same when opening a file while selecting something in the console.

This is not a bug; Windows blocks stdout when selecting something in the console, and since Blender logs something to the console on loading it has to wait.
This is intended.

The description still mentions a crash, but you said you were mistaken, so I see nothing to do here.

I just tried this on Windows 7 64 bit with Blender 2.68, and it hangs just the same when opening a file while selecting something in the console. This is not a bug; Windows blocks stdout when selecting something in the console, and since Blender logs something to the console on loading it has to wait. This is intended. The description still mentions a crash, but you said you were mistaken, so I see nothing to do here.

Okay now... This is strange. I just downloaded 2.68 and I did the tests. It turns out that with 2.68 version, it allows you to save, but not to open files, while in 2.7 and newer can't save nor open

Okay now... This is strange. I just downloaded 2.68 and I did the tests. It turns out that with 2.68 version, it allows you to save, but not to open files, while in 2.7 and newer can't save nor open

Added subscriber: @rjg

Added subscriber: @rjg

@Tabra This is caused by the QuickEdit-Mode of the console and is unrelated to Blender. Perhaps some versions of Blender do not print to stdout when saving the file, which would avoid the freeze.

@Tabra This is caused by the *QuickEdit*-Mode of the console and is unrelated to Blender. Perhaps some versions of Blender do not print to stdout when saving the file, which would avoid the freeze.
Member

Added subscriber: @tiles

Added subscriber: @tiles
Member

Added subscribers: @Moamen123, @MeshVoid, @Calra, @Mets

Added subscribers: @Moamen123, @MeshVoid, @Calra, @Mets
Member

In #73588#868983, @Foaly wrote:
Windows blocks stdout when selecting something in the console

Just out of curiosity, even if this is by design, I wonder if you know if it would be possible to prevent Windows from doing this, or is it something that's super hard-coded into the system?

> In #73588#868983, @Foaly wrote: > Windows blocks stdout when selecting something in the console Just out of curiosity, even if this is by design, I wonder if you know if it would be possible to prevent Windows from doing this, or is it something that's super hard-coded into the system?

@Mets See #75431#904366

@Mets See #75431#904366
Member

Awesome, thank you!

Awesome, thank you!
Member

Added subscribers: @WarpSpiral, @lichtwerk, @Debuk, @PratikPB2123

Added subscribers: @WarpSpiral, @lichtwerk, @Debuk, @PratikPB2123

This comment was removed by @WarpSpiral

*This comment was removed by @WarpSpiral*
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
11 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#73588
No description provided.