From cf8d31d41cb9adcbf38c0f8bfa7e6eb772633692 Mon Sep 17 00:00:00 2001 From: Nikita Sirgienko Date: Tue, 12 Nov 2024 23:47:00 +0100 Subject: [PATCH] Bug Reporting: Add Cycles specific bug-reporting script for Windows Previously, logs from Windows bug-reporting scripts would include a minimal level of messages from Blender itself due to the usage of the default log level. With this change, a new Cycles associated bug-reporting script is now added with logging set to the maximum level, so all debug details from the Blender application will be available in the generated log file, which users can attach to bug reports. Pull Request: https://projects.blender.org/blender/blender/pulls/130137 --- .../windows/batch/blender_debug_cycles.cmd | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 release/windows/batch/blender_debug_cycles.cmd diff --git a/release/windows/batch/blender_debug_cycles.cmd b/release/windows/batch/blender_debug_cycles.cmd new file mode 100644 index 00000000000..a62893e1e2c --- /dev/null +++ b/release/windows/batch/blender_debug_cycles.cmd @@ -0,0 +1,20 @@ +@echo off +echo Starting blender with Cycles logging options, log files will be created +echo in your temp folder, windows explorer will open after you close blender +echo to help you find them. +echo. +echo If you report a bug on https://projects.blender.org you can attach these files +echo by dragging them into the text area of your bug report, please include both +echo blender_debug_output.txt and blender_system_info.txt in your report. +echo. +pause +echo. +echo Starting blender and waiting for it to exit.... +setlocal + +set PYTHONPATH= +set DEBUGLOGS="%temp%\blender\debug_logs" +mkdir "%DEBUGLOGS%" > NUL 2>&1 + +"%~dp0\blender" --debug --debug-cycles --verbose 8 --log-level -1 --python-expr "import bpy; bpy.context.preferences.filepaths.temporary_directory=r'%DEBUGLOGS%'; bpy.ops.wm.sysinfo(filepath=r'%DEBUGLOGS%\blender_system_info.txt')" > "%DEBUGLOGS%\blender_debug_output.txt" 2>&1 < %0 +explorer "%DEBUGLOGS%"