Regression Tests: Run-Time Check Failure #3 - The variable 'ls' is being used without being initialized. #97365

Open
opened 2022-04-15 18:47:42 +02:00 by Pierre Grimme · 4 comments

System Information
Operating system: Windows 10 21H2 Build 19044.1645
Graphics card: Nvidia GT 610
Renderer: GeForce GT 610/PCIe/SSE2
Version: 4.5.0 NVIDIA 391.35

Blender Version
Broken: (example: 3.20 Alpha, 180163c4e4, private branch without changes, 2022-04-14)

Short description of error
Building RUN_TESTS in Visual Studio will fail on certain tests.

Exact steps for others to reproduce the error

To check for yourself run the following commad from a cli in your build directory:

ctest -R cycles_light_cpu -C debug --debug

A part of the tests will pass, but some will fail. An error window will appear, saying: "Run-Time Check Failure #3 - The variable 'ls' is being used without being initialized."

To manually check out this failure, take a look at the debug output and check which .blend file is loaded and if the test fails.

I choose following file to load into blender.

\lib\tests\render\light\spot_light.blend

Next hit F12 to render this test file.

Location in source
The bug is located in shade_volume.h Line 947. ls.P is passed as a parameter there

Setup
All testing was done in the DEBUG-x64 target in VS.
Bug still exists in 7484f274dc

**System Information** Operating system: Windows 10 21H2 Build 19044.1645 Graphics card: Nvidia GT 610 Renderer: GeForce GT 610/PCIe/SSE2 Version: 4.5.0 NVIDIA 391.35 **Blender Version** Broken: (example: 3.20 Alpha, 180163c4e448, private branch without changes, 2022-04-14) **Short description of error** Building RUN_TESTS in Visual Studio will fail on certain tests. **Exact steps for others to reproduce the error** To check for yourself run the following commad from a cli in your build directory: ``` ctest -R cycles_light_cpu -C debug --debug ``` A part of the tests will pass, but some will fail. An error window will appear, saying: "Run-Time Check Failure #3 - The variable 'ls' is being used without being initialized." To manually check out this failure, take a look at the debug output and check which .blend file is loaded and if the test fails. I choose following file to load into blender. ``` \lib\tests\render\light\spot_light.blend ``` Next hit F12 to render this test file. **Location in source** The bug is located in shade_volume.h Line 947. ls.P is passed as a parameter there **Setup** All testing was done in the DEBUG-x64 target in VS. Bug still exists in 7484f274dcdc
Author

Added subscriber: @Hugo54x-2

Added subscriber: @Hugo54x-2
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

I can't replicate this myself. But this seems valid, since in volume_integrate(), the light sample will only be initialized if need_light_sample is true due to short circuit evaluation.
So maybe a developer should look into this.

I can't replicate this myself. But this seems valid, since in `volume_integrate()`, the light sample will only be initialized if `need_light_sample` is true due to short circuit evaluation. So maybe a developer should look into this.
Philipp Oeser removed the
Interest
Render & Cycles
label 2023-02-09 14:03:53 +01:00
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
2 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#97365
No description provided.