CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.61k stars 4.17k forks source link

Segmentation Fault on Item Filter Screen v. 0.D-4913-g275d8a7 #31790

Closed Voideka closed 5 years ago

Voideka commented 5 years ago

Describe the bug

Pressing 'Enter' on the item filter screen with no results causes a segmentation fault.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Open a filterable list such as the (R)ead screen.
  2. Press '/' to open the filter dialog.
  3. Input a string that will return 0 results, such as 'asdasdas'.
  4. Press 'Enter' to submit.
  5. On the resultant screen (see attached screenshot) press 'Enter' again.

Expected behavior

Nothing should happen, and game should not crash

Screenshots

catafilter

Versions and configuration

Additional context

Initial error dialog:

MinGW Runtime Assertion

Assertion failed!

Program: C:\Games\cataclysmdda\cataclysm-tiles.exe File: src/inventory_ui.h, Line 101

Expression: !locations.empty()

Abort Retry Ignore

crash.log

debug.log

save.zip

Possibly related to https://github.com/CleverRaven/Cataclysm-DDA/issues/31771

AMurkin commented 5 years ago

Cannot reproduce. Should be fixed by #32324.

ifreund commented 5 years ago

Closing as it seems this has been fixed. If you can reproduces this feel free to ping me to reopen.