armory3d / armory3d/armory

Crash when using area lights

Open
#2,823 2 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
C++
Stars
3.3k
Forks
353
Avg merge
3d 16h
Merged PRs (30d)
1

Description

Splitting off this issue from https://github.com/armory3d/armory/issues/2817:

> Area lights just crashes the engine as soon as started.

@rpaladin confirmed the issue on Discord (Win11, Nvidia GPU with old drivers). I personally cannot reproduce the issue on Windows 10 with a GeForce GTX 750 Ti, tested with driver versions 527.56 and 531.18 (most recent version available to me). RPaladin also sent me a crash dump, which looks like the crash happens within the graphics driver:

```
Unhandled exception at 0x00007FFCFD1A7109 (nvwgf2umx.dll) in kinc.dmp: 0xC0000005: Access violation reading location 0x0000000000000024.
```
Note `nvwgf2umx.dll`, which appears to be part of the Nvidia drivers. Unfortunately there is no proper call stack and the crash happened in some unnamed thread (2824):
![grafik](https://user-images.githubusercontent.com/17685000/224455496-bf203691-d73b-4adf-878a-eaf86d318bc1.png)
Main thread:
![grafik](https://user-images.githubusercontent.com/17685000/224455546-68663a79-0c36-4568-ba67-87075112c70e.png)
Thread 11112 actually shows some Krom code, but it's unfortunately the opposite of insightful:
![grafik](https://user-images.githubusercontent.com/17685000/224455557-e2d19b89-345b-4e2f-9879-e7404329e4e9.png)

[crash_info.zip](https://github.com/armory3d/armory/files/10947113/crash_info.zip)
Folder contents:
- `kinc.dmp`: crash dump
- `Armory.exe`: custom Krom binary for which I happen to have debug symbols for which the crash dump was generated as well
- `Armory.pdb`: debug symbols

I'm not sure whether this is purely a driver issue that fixes itself with driver updates, or whether it's actually an issue with some of the Armory/Kha/Kinc graphics code.

@rpaladin @e2002e Could you please share some system information such as driver versions and check (if possible) whether newer drivers fix the issue for you?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the area-light startup crash on Windows with an Nvidia GPU, then inspect crash_info.zip, including kinc.dmp, Armory.exe, Armory.pdb, and the Krom thread shown in the report. Done means determining whether the failure is in Armory/Kha/Kinc graphics code or the Nvidia driver, with a confirmed reproduction and documented fix or driver limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.