Cataclysm-DDA icon indicating copy to clipboard operation
Cataclysm-DDA copied to clipboard

Segfault when turning on depleted flashlight connected to device

Open nikow opened this issue 1 year ago • 5 comments

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

  1. As quick character (my character have 110 speed) have a vehicle with charged batteries and depleted heavy-duty flashlight in your hands.
  2. Activate heavy-duty flashlight to connect it into your car.
  3. Activate it again to turn it on - be aware it needs to have 0 charges during so.
  4. 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

crash.log

nikow avatar Sep 14 '24 11:09 nikow

User on Discord had same issue: https://discord.com/channels/598523535169945603/598523535169945607/1284098791749844995

nikow avatar Sep 14 '24 11:09 nikow

Yeah i had the same issue as linked.

image image image image image

If the said device has at least 1 charge it won't crash image image

zakhad avatar Sep 14 '24 11:09 zakhad

2024-09-14_save_before_crash.zip

Steps to reproduce:

  1. Unpack the save in your save folder.
  2. Start a game and load the save.
  3. Press A to activate flashlight and select Turn on to crash the game.

nikow avatar Sep 14 '24 12:09 nikow

Similar issue #76319. Turning on smart lamp with 0 charges while its plugged in causes segfault.

CoroNaut avatar Sep 14 '24 12:09 CoroNaut

+1. Also just experienced this with a depleted smart lamp.

EvanBalster avatar Oct 17 '24 23:10 EvanBalster

I did not realize when I posted #78580 that it was a duplicate of this. This issue has been resolved with commit ed7a0e6ccebb008246e0821f15e8bce1a2670954

TRScheel avatar Dec 20 '24 06:12 TRScheel