|Anonymous | Login | Signup for a new account||2020-09-25 18:23 PDT|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0009905||Dwarf Fortress||Dwarf Mode -- Interface, Manager||public||2016-07-10 02:27||2020-09-19 22:52|
|Platform||Windows||OS||Windows 10||OS Version||10|
|Target Version||Fixed in Version|
|Summary||0009905: Filtering in work order product lists crashes the game and/or displays incorrect materials (usually with larger worlds)|
|Description||Game creates when trying to filter on wood in the Materials conditions filter|
|Steps To Reproduce||1. Create workorder for 300 Wooden bolts|
2. C for conditions
3. P for product conditions
4. M for change material
5. Type WOO
6. Game crashes on WO.
|Additional Information||Running the "Iron man" graphics release of 43.05 if that matters.|
errorlog.txt produces only the text:
"removed erroneous unit occupancy flag
removed erroneous unit occupancy flag
removed erroneous unit occupancy flag
|Tags||binary patch, manager, Probable Quick Fix|
|This doesn't crash for me, but I am using windows 7 and am not using a tileset. Does the crash still happen for you without a tileset?|
|Nope, I can't reproduce it in vanilla DF...|
edited on: 2016-09-03 04:26
I just encountered this in vanilla DF, perfectly reproducible.
Windows 10 x64, DF 43.05 x64. I want to filter the material condition for plump helmet spawn, then the game crashes at "PL".
if it helps in any way, the MSVC debugger says this:
Unhandled exception at 0x00007FFBC1EE5A4E (ucrtbase.dll) in Dwarf Fortress.exe: Fatal program exit requested.
the game wasn't modified save for a few init settings and disabling aquifers.
edit: fixed typo
|Acknowledging this along with 0009954, although I haven't been able to reproduce it.|
|BenLubar posted a save at 0010175: http://dffd.bay12games.com/file.php?id=12792 [^]|
edited on: 2017-08-15 09:15
I was able to reproduce the issue with BenLubar's save, and mifki helped identify the issue. Basically, in the "viewscreen_workquota_conditionst" screen (j-m-c), there are two vectors - one with a bunch of string pointers (which DFHack calls "list_entries"), and one with indices of elements in list_entries that match the current search (which DFHack has no name for, so it's called "anon_9" in DFHack 0.43.05-beta1). The problem is that the latter vector contains signed 16-bit integers, so all entries past 32767 (if they exist) are displayed as "unknown material", despite list_entries containing valid material names there. I assume that the crash occurs when DF tries to use *list_entries[i] somewhere, where -32768 <= i <= -1.
The simplest fix is probably to change this vector to store 32-bit integers. I'd be wary of just switching to unsigned 16-bit integers, since BenLubar's save above has 40k+ materials in the list, so it's possible that larger saves could have more than 2^16. (In that case, I'd just expect the list to start over at the first item after item 65535, which probably wouldn't crash, but it would still be a bug.)
Out of curiosity, is this something that's a relatively simple edit somewhere (the changing from 16-bit integers to 32-bit for the indices)? Or is it likely to break functionality, unless other parts of the code are edited as well (and thus requires a larger overall patch)?
|It should be a very simple patch - changing vector<int16_t> to vector<int32_t> in one location (although there could be other fields in this viewscreen with similar issues - it's been a long time since I looked at it).|
I can confirm this happening in 44.09 still, created a large world, searched for Granite, at typing the 'N' it crashed. Each save created at a medium world in the meantime seems to run just fine.
At the moment this makes managers in large worlds unable to be used for any sort of complex task.
v0.44.12: Sauzels posted a save in 0011126:
Hello, I just started experiencing this same bug (or at least similar) in version 47.02 for Windows. I first experienced it while using Phoebus 16x16 texture pack, Announcement Window, and Dwarf Therapist. The bug occurred while creating the following work order:
1) Create work order for 50 coke (doesn't matter if from bituminous coal or lignite).
2) c for conditions
3) r for reagents
4) m for materials
5) Type "bit" looking for bituminous coal
6) Game crashes
I then uninstalled the texture pack from my init file and tried that. I then closed Announcement Window and Dwarf Therapist. I then downloaded a fresh install of DF 42.02 for Windows from the website and ported my save over. Under all conditions the game would crash.
Hello guys, first post, I hope I can help.
So my small workaround on this issue is as follows, before starting editing manager tasks I do a quicksave using DFHack (ctrl+alt+s).
My specific issue was using "wood planks" from the masterwork, everytime I tried to complet the word "wood" my game would crash, so I tried writing "rough" and I got "unknown material block", so I made my task using that one and it worked!
I hope this helps.
edited on: 2020-09-19 23:23
Playing on 47.04 vanilla. Large World. Maximized screen.
Consistently reproduced while trying to set conditions for making billions bars from ore.
Im trying to exclude the use of horn and native silver ores setting those conditions to = ZERO
Trying to set Material to silver AFTER setting mateRial conditions
1. Don't maximize
2. Save after each successful step
3.Setup condition for horn silver exclusion
4. Setup reagent/mateRial conditions
5. Setup condition for native silver (typing it however shows 1 option written as "Rock" though)
Exiting and re-entering still displays Rock
Will have to confirm it actually worked after finding native silver ores
Having the same issues with electrum
First had this issue trying to search for Paradise Nut Wood, but can't remember specifics
|2016-07-10 02:27||MaXMC||New Issue|
|2016-07-11 13:21||smw23usedwrongemailthefirsttime||Note Added: 0035602|
|2016-07-12 13:30||MaXMC||Note Added: 0035609|
|2016-09-03 04:25||Hexa||Note Added: 0035840|
|2016-09-03 04:26||Hexa||Note Edited: 0035840||View Revisions|
|2016-09-03 05:56||Loci||Relationship added||related to 0009954|
|2016-11-25 11:21||lethosor||Reproducibility||always => random|
|2016-11-25 11:27||lethosor||Summary||Selecting Material and filtering Wood crashes the game => Filtering on "Wood" in work order product condition material list crashes the game|
|2017-01-09 09:34||lethosor||Note Added: 0036140|
|2017-01-09 09:34||lethosor||Assigned To||=> lethosor|
|2017-01-09 09:34||lethosor||Status||new => acknowledged|
|2017-01-09 09:34||lethosor||Summary||Filtering on "Wood" in work order product condition material list crashes the game => Filtering on "Wood" in work order product condition material list crashes the game (possibly tileset-specific)|
|2017-02-27 11:58||lethosor||Issue Monitored: lethosor|
|2017-03-27 17:31||lethosor||Relationship added||has duplicate 0010175|
|2017-03-27 17:31||lethosor||Issue Monitored: BenLubar|
|2017-03-27 17:32||lethosor||Note Added: 0036380|
|2017-03-27 19:35||lethosor||Relationship replaced||has duplicate 0009954|
|2017-03-27 19:35||lethosor||Issue Monitored: MalevolentGM|
|2017-03-27 19:36||lethosor||Status||acknowledged => confirmed|
|2017-03-27 19:59||lethosor||Note Added: 0036382|
|2017-03-27 20:00||lethosor||Tag Attached: Probable Quick Fix|
|2017-03-27 20:00||lethosor||Relationship added||has duplicate 0010145|
|2017-03-27 20:00||lethosor||Relationship added||has duplicate 0010155|
|2017-03-28 06:53||lethosor||Summary||Filtering on "Wood" in work order product condition material list crashes the game (possibly tileset-specific) => Filtering in work order product lists crashes the game and/or displays incorrect materials|
|2017-03-28 06:54||lethosor||Summary||Filtering in work order product lists crashes the game and/or displays incorrect materials => Filtering in work order product lists crashes the game and/or displays incorrect materials (usually with larger worlds)|
|2017-06-08 19:08||Huntthetroll||Issue Monitored: Huntthetroll|
|2017-06-18 09:31||ctgarlington||Note Added: 0036621|
|2017-06-18 10:19||ctgarlington||Issue Monitored: ctgarlington|
|2017-08-15 08:59||lethosor||Note Added: 0036697|
|2017-08-15 08:59||lethosor||Tag Attached: binary patch|
|2017-08-15 09:15||lethosor||Note Edited: 0036382||View Revisions|
|2018-01-09 20:08||lethosor||Tag Attached: manager|
|2018-01-09 20:10||lethosor||Category||Dwarf Mode -- Interface, Workshop Profiles => Dwarf Mode -- Interface, Manager|
|2018-04-25 01:17||Kulze||Note Added: 0038202|
|2019-03-13 16:48||Loci||Relationship added||has duplicate 0011057|
|2019-07-23 13:06||Loci||Relationship added||has duplicate 0011126|
|2019-07-23 13:07||Loci||Note Added: 0039446|
|2020-02-10 14:25||arl1x||Note Added: 0040000|
|2020-02-12 18:34||lvalkyrie||Issue Monitored: lvalkyrie|
|2020-02-12 18:34||lvalkyrie||Issue End Monitor: lvalkyrie|
|2020-02-12 18:37||lvalkyrie||Note Added: 0040032|
|2020-09-19 22:52||Drakonis||Note Added: 0040743|
|2020-09-19 23:23||Drakonis||Note Edited: 0040743||View Revisions|
|Copyright © 2000 - 2010 MantisBT Group|