From 4572354fe59f7ac56cb7ec72f530aa8f717c63be Mon Sep 17 00:00:00 2001 From: Ray Molenkamp Date: Tue, 12 Mar 2019 11:36:44 -0600 Subject: Windows: Add convenience logging batch files. To make triaging a little easier these batchfiles generate the debug log and sysinfo files and instruct the user how to attach them to their bug report Differential Revision: https://developer.blender.org/D4505 Reviewers: brecht, zeddb --- release/windows/batch/blender_debug_gpu.cmd | 15 +++++++++++++++ .../windows/batch/blender_debug_gpu_glitchworkaround.cmd | 15 +++++++++++++++ release/windows/batch/blender_debug_log.cmd | 15 +++++++++++++++ release/windows/batch/blender_factory_startup.cmd | 15 +++++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 release/windows/batch/blender_debug_gpu.cmd create mode 100644 release/windows/batch/blender_debug_gpu_glitchworkaround.cmd create mode 100644 release/windows/batch/blender_debug_log.cmd create mode 100644 release/windows/batch/blender_factory_startup.cmd (limited to 'release/windows') diff --git a/release/windows/batch/blender_debug_gpu.cmd b/release/windows/batch/blender_debug_gpu.cmd new file mode 100644 index 00000000000..b72749aff36 --- /dev/null +++ b/release/windows/batch/blender_debug_gpu.cmd @@ -0,0 +1,15 @@ +@echo off +echo Starting blender with GPU debugging 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://developer.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 +mkdir "%temp%\blender\debug_logs" > NUL 2>&1 +echo. +echo Starting blender and waiting for it to exit.... +blender --debug --debug-gpu --python-expr "import bpy; bpy.ops.wm.sysinfo(filepath=r'%temp%\blender\debug_logs\blender_system_info.txt')" > "%temp%\blender\debug_logs\blender_debug_output.txt" 2>&1 < %0 +explorer "%temp%\blender\debug_logs" \ No newline at end of file diff --git a/release/windows/batch/blender_debug_gpu_glitchworkaround.cmd b/release/windows/batch/blender_debug_gpu_glitchworkaround.cmd new file mode 100644 index 00000000000..32d52852193 --- /dev/null +++ b/release/windows/batch/blender_debug_gpu_glitchworkaround.cmd @@ -0,0 +1,15 @@ +@echo off +echo Starting blender with GPU debugging and glitch workaround options, log files +echo will be created in your temp folder, windows explorer will open after you +echo close blender to help you find them. +echo. +echo If you report a bug on https://developer.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 +mkdir "%temp%\blender\debug_logs" > NUL 2>&1 +echo. +echo Starting blender and waiting for it to exit.... +blender --debug --debug-gpu --debug-gpu-force-workarounds --python-expr "import bpy; bpy.ops.wm.sysinfo(filepath=r'%temp%\blender\debug_logs\blender_system_info.txt')" > "%temp%\blender\debug_logs\blender_debug_output.txt" 2>&1 < %0 +explorer "%temp%\blender\debug_logs" \ No newline at end of file diff --git a/release/windows/batch/blender_debug_log.cmd b/release/windows/batch/blender_debug_log.cmd new file mode 100644 index 00000000000..db9ff771196 --- /dev/null +++ b/release/windows/batch/blender_debug_log.cmd @@ -0,0 +1,15 @@ +@echo off +echo Starting blender with debug 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://developer.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 +mkdir "%temp%\blender\debug_logs" > NUL 2>&1 +echo. +echo Starting blender and waiting for it to exit.... +blender --debug --python-expr "import bpy; bpy.ops.wm.sysinfo(filepath=r'%temp%\blender\debug_logs\blender_system_info.txt')" > "%temp%\blender\debug_logs\blender_debug_output.txt" 2>&1 < %0 +explorer "%temp%\blender\debug_logs" diff --git a/release/windows/batch/blender_factory_startup.cmd b/release/windows/batch/blender_factory_startup.cmd new file mode 100644 index 00000000000..b8d84e8655f --- /dev/null +++ b/release/windows/batch/blender_factory_startup.cmd @@ -0,0 +1,15 @@ +@echo off +echo Starting blender with factory settings, 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://developer.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 +mkdir "%temp%\blender\debug_logs" > NUL 2>&1 +echo. +echo Starting blender and waiting for it to exit.... +blender --factory-startup --python-expr "import bpy; bpy.ops.wm.sysinfo(filepath=r'%temp%\blender\debug_logs\blender_system_info.txt')" > "%temp%\blender\debug_logs\blender_debug_output.txt" 2>&1 +explorer "%temp%\blender\debug_logs" -- cgit v1.2.3