Segfault when turning on depleted flashlight connected to device
Describe the bug
When my character is fast and try to turn on depleted, but connected to vehicle with power, flashlight game crashes. It most likely happens, because flashlight still have zero charges, because when i wait a turn and turn it on, it works correctly.
Attach save file
N/A
Steps to reproduce
- As quick character (my character have 110 speed) have a vehicle with charged batteries and depleted heavy-duty flashlight in your hands.
- Activate heavy-duty flashlight to connect it into your car.
- Activate it again to turn it on - be aware it needs to have 0 charges during so.
- Crash happens.
Expected behavior
I expect that game will not crash, but i am sure if flash should turn on when battery is out of charge.
Screenshots
No response
Versions and configuration
- Host: Host: 20KS004GPB ThinkPad E580
- CPU: Intel i5-8250U (8) @ 1.600GHz
- GPU: Intel UHD Graphics 620
- Memory: 2x Crucial DDR4-2400 16GB sticks
- OS: Linux
- OS Version: LSB Version: :core-5.0-amd64:core-5.0-noarch; Distributor ID: Fedora; Description: Fedora release 39 (Thirty Nine); Release: 39; Codename: ThirtyNine;
- Game Version: cdda-experimental-2024-09-14-0515 b8b5c5cc52-dirty [64-bit]
- Graphics Version: Tiles
- Game Language: English [en]
- Mods loaded: [ Dark Days Ahead [dda], Disable NPC Needs [no_npc_food], Portal Storms Ignore NPCs [personal_portal_storms], Slowdown Fungal Growth [no_fungal_growth], Translate Complex Dialogue [translate_dialogue], Stats Through Skills [StatsThroughSkills], Tamable Wildlife [Tamable_Wildlife], Magiclysm [magiclysm] ]
Additional context
User on Discord had same issue: https://discord.com/channels/598523535169945603/598523535169945607/1284098791749844995
Yeah i had the same issue as linked.
If the said device has at least 1 charge it won't crash
2024-09-14_save_before_crash.zip
Steps to reproduce:
- Unpack the save in your save folder.
- Start a game and load the save.
- Press A to activate flashlight and select
Turn onto crash the game.
Similar issue #76319. Turning on smart lamp with 0 charges while its plugged in causes segfault.
+1. Also just experienced this with a depleted smart lamp.
I did not realize when I posted #78580 that it was a duplicate of this. This issue has been resolved with commit ed7a0e6ccebb008246e0821f15e8bce1a2670954