Problems with "check the message in the system console" #84347

Closed
opened 2021-01-03 13:50:36 +01:00 by Ben Mo · 6 comments

System Information
Operating system: Windows 10 Pro, version 20H2 (x64)
Graphics card: Intnel(R) HD Graphics 4000

Blender Version
Version 2.91.0 (Hash: 0f45cab862b8)

Short description of error
Tried to run a simple python script. Got error "Python script failed, check the message in the system console". Enabled system console. Message in the system console: "Error: Python script failed, check the message in the system console"

Exact steps for others to reproduce the error
Create new "General" blender file. Click "Scripting". Enter "fgdifnmdflknsmfkldfnmngfklsmdsklfmgbdklfjml". If console isnt open, click "Window" > "Toggle System Console". Click run. Look at the system console. Its impossible to fix bugs in addons using this weired error message.

**System Information** Operating system: Windows 10 Pro, version 20H2 (x64) Graphics card: Intnel(R) HD Graphics 4000 **Blender Version** Version 2.91.0 (Hash: 0f45cab862b8) **Short description of error** Tried to run a simple python script. Got error "Python script failed, check the message in the system console". Enabled system console. Message in the system console: "Error: Python script failed, check the message in the system console" **Exact steps for others to reproduce the error** Create new "General" blender file. Click "Scripting". Enter "fgdifnmdflknsmfkldfnmngfklsmdsklfmgbdklfjml". If console isn`t open, click "Window" > "Toggle System Console". Click run. Look at the system console. It`s impossible to fix bugs in addons using this weired error message.
Author

Added subscriber: @Bimi124

Added subscriber: @Bimi124

Added subscriber: @rjg

Added subscriber: @rjg

Changed status from 'Needs Triage' to: 'Archived'

Changed status from 'Needs Triage' to: 'Archived'

You're right that the message about finding the error message in the system console is also printed to the system console, which might be slightly confusing, but the lines before show the stack trace / error message that clearly state what is wrong. For your particular example the output is:

Traceback (most recent call last):
  File "\Text", line 1, in <module>
NameError: name 'fgdifnmdflknsmfkldfnmngfklsmdsklfmgbdklfjml' is not defined
Error: Python script failed, check the message in the system console

There is no bug here as far as I can tell. Some ideas have been discussed among developer which may result in exception / error messages being more accessible through the UI in the future.

You're right that the message about finding the error message in the system console is also printed to the system console, which might be slightly confusing, but the lines before show the stack trace / error message that clearly state what is wrong. For your particular example the output is: ``` Traceback (most recent call last): File "\Text", line 1, in <module> NameError: name 'fgdifnmdflknsmfkldfnmngfklsmdsklfmgbdklfjml' is not defined Error: Python script failed, check the message in the system console ``` There is no bug here as far as I can tell. Some ideas have been discussed among developer which may result in exception / error messages being more accessible through the UI in the future.

Added subscriber: @BOORDA

Added subscriber: @BOORDA

I'm seeing the issue described above, but unfortunately, I do not get any other trace information as you have suggested above.

Cleared console and ran script to demonstrate in the image below.

image.png

I do however get trace messages if I paste all code to the console, but obviously this is not ideal for debugging.

Blender 3.0
OS: Win 10 (Build 19042)
VCard: NVIDIA Quadro T2000m

I'm seeing the issue described above, but unfortunately, I do not get any other trace information as you have suggested above. Cleared console and ran script to demonstrate in the image below. ![image.png](https://archive.blender.org/developer/F12812830/image.png) I do however get trace messages if I paste all code to the console, but obviously this is not ideal for debugging. Blender 3.0 OS: Win 10 (Build 19042) VCard: NVIDIA Quadro T2000m
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 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-addons#84347
No description provided.