Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: job manager condition material crash ucrtbase.dll  (Read 1262 times)

Kat1e

  • Bay Watcher
    • View Profile
job manager condition material crash ucrtbase.dll
« on: January 09, 2018, 12:50:38 am »

Having trouble getting a Mantis login set up (not getting any email), so am reporting/asking in this forum, sorry.

Was wanting to create a manager order so that if the number of seeds of particular plants fell below a certain stocked amount, then certain jobs that would create seeds would be initiated, and others that used up seed stocks would not initiate. In this particular instance was trying to create a condition that the seed material = rock nuts. However as soon as I type at least 2 letters out of the entire phrase 'rock nuts', or even if I try to manually scroll through the list of materials, the game crashes. Usually the event viewer references 'ucrtbase.dll' in the event report. For example:

Faulting application name: Dwarf Fortress.exe, version: 0.0.0.0, time stamp: 0x5a40c6db
Faulting module name: ucrtbase.dll, version: 10.0.16299.125, time stamp: 0x70f70cc4
Exception code: 0xc0000409
Fault offset: 0x000000000006b70e
Faulting process ID: 0x295c
Faulting application start time: 0x01d388b379afba77
Faulting application path: E:\Games\Dwarf Fortress\Dwarf Fortress.exe
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
Report ID: 1d782608-d386-49f8-b5a3-aa3ab4c3d88a

I'm currently playing witth the 0.44.03 release on a windows 10 64 bit home version.

Thing is I remember when playing about 12-18 months ago on a previous release version having the same problem occur, but I was using windows 7 64 bit home version. When I say 'the same problem', I mean the game crashing when trying to search for a material condition to apply to a new manager work order - not necessarily rock nuts specifically, and I don't recall check the event viewer logs back then.

Am I doing something wrong?

Is there a way I can work around (ie avoid) this crash occurring?

Is there a different way to arrange plant processing/brewing/milling orders based on seed stocks? (I've already read about pre-2016 work conditions burrow strategies).

Thanks in advance for any responses.
Logged

PatrikLundell

  • Bay Watcher
    • View Profile
Re: job manager condition material crash ucrtbase.dll
« Reply #1 on: January 09, 2018, 02:18:06 am »

Follow on questions for info the people who actually know something (I don't use the manager) probably would want:
- Are you using DFHack? If so, which automated plugins?
- Are you using mods? If so, have you checked the mods forum to see the issue isn't reported there?
- Are you using a tile set? If so, how was it installed (pedestals are known to cause problems when a tile set installation hasn't been updated for them, although I doubt that's the issue here)?
Logged

Shonai_Dweller

  • Bay Watcher
    • View Profile
Logged

Kat1e

  • Bay Watcher
    • View Profile
Re: job manager condition material crash ucrtbase.dll
« Reply #3 on: January 09, 2018, 04:26:25 am »

Patrik - No DF Hack or other mods. Only other thing I'm using with DF is Dwarf Therapist.


Shonai - I did a search but couldn't find anything. It does seem the same thing. Thanks for locating it.
Logged

martinuzz

  • Bay Watcher
  • High dwarf
    • View Profile
Re: job manager condition material crash ucrtbase.dll
« Reply #4 on: January 09, 2018, 04:49:36 am »

You should probably send a PM to Toady about Mantis not sending you a mail.
Logged
Friendly and polite reminder for optimists: Hope is a finite resource

We can ­disagree and still love each other, ­unless your disagreement is rooted in my oppression and denial of my humanity and right to exist - James Baldwin

http://www.bay12forums.com/smf/index.php?topic=73719.msg1830479#msg1830479

Shonai_Dweller

  • Bay Watcher
    • View Profile
Re: job manager condition material crash ucrtbase.dll
« Reply #5 on: January 09, 2018, 05:15:50 am »

Shonai - I did a search but couldn't find anything. It does seem the same thing. Thanks for locating it.
No problem, I was 99% sure I'd read the report on Mantis before, just a matter of tracking it down.

I've also seen the bug mentioned elsewhere on the forum and was ready to furiously write a report myself if it wasn't there. Hate it when a bug is so obvious everyone forgets to report it...
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: job manager condition material crash ucrtbase.dll
« Reply #6 on: January 09, 2018, 10:43:39 am »

Note that DFHack actually has a tweak that fixes this bug ("tweak condition-material") since 0.43.05.

Also, if you were having trouble searching on Mantis, make sure you click "reset filter", because old search criteria can stick around sometimes and can be hard to notice.
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

Shonai_Dweller

  • Bay Watcher
    • View Profile
Re: job manager condition material crash ucrtbase.dll
« Reply #7 on: January 09, 2018, 09:59:47 pm »

Note that DFHack actually has a tweak that fixes this bug ("tweak condition-material") since 0.43.05.

Also, if you were having trouble searching on Mantis, make sure you click "reset filter", because old search criteria can stick around sometimes and can be hard to notice.
In this bug's case a search for "manager" reveals nothing. "Crash" works though (If you're determined...).
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: job manager condition material crash ucrtbase.dll
« Reply #8 on: January 09, 2018, 10:20:32 pm »

Try "condition" or "product" and they should show up. "manager" doesn't appear in that report, and it was also inappropriately categorized, but it does appear in two recent duplicates, which should direct you there. What I usually do to get reliable search results is go to My View, click on "recently modified", and then search from there. That should reset your filters to include everything.
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

Kat1e

  • Bay Watcher
    • View Profile
Re: job manager condition material crash ucrtbase.dll
« Reply #9 on: January 11, 2018, 02:12:15 pm »

Thank you Shonai & Loth, I'll be giving DFHack a try this weekend to get past that bug.
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: job manager condition material crash ucrtbase.dll
« Reply #10 on: January 11, 2018, 05:48:23 pm »

It looks like that specific tweak is enabled with the default configuration, for what it's worth, so you shouldn't have to change anything.
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

Kat1e

  • Bay Watcher
    • View Profile
Re: job manager condition material crash ucrtbase.dll
« Reply #11 on: January 12, 2018, 05:37:31 am »

Thanks, that helps :)

Though I have come back to confess :  I broke it :/

I'm not in any way a coder or programmer, so upfront apologies for anything that is egregiously stupid.

I used notepad to make changes to the .init files.

The dfhack.init-example to dfhack.init change was fine. All I did was change the name, I attempted no change to the file contents.

The onload.init-example file is where I effed up. The first thing I attempted was to add to the contents. The second thing I did was try to change the name. However by the time I got around to trying to change the name the file icon had adopted the notepad icon, in the file description it says it is an EXAMPLE file, and the -example has dropped off the end of the name and it won't allow me to correct it (i.e. remove the -example) because it's no longer on the end of the name. I've tried renaming directly, toggling off the 'use this program to open every time', & deleting and re-extracting the originally downloaded archive files. It doesn't matter. It always defaults to using the notepad icon, and it tells me it's an EXAMPLE file.

Every time the game loads it gives this message in red 'Could not load script: onLoad.init-example'

I had tried manually entering the commands when running the game, and every time I now load up it gives me the message:
"
Reading from save: autobutcher/watchlist/ALPACA
Reading from save: autobutcher/watchlist/BIRD_DUCK
Reading from save: autobutcher/watchlist/BIRD_GOOSE
Reading from save: autobutcher/watchlist/BIRD_TURKEY
Reading from save: autobutcher/watchlist/CAT
Reading from save: autobutcher/watchlist/COW
Reading from save: autobutcher/watchlist/DOG
Reading from save: autobutcher/watchlist/SHEEP
"
...but that's all it says. No indication on whether the other commands I've entered are persisting on re-load.

Also, I should mention that it says the 'warn-stuck-trees' command is invalid or something (can't remember the exact phrase).

The full list of commands I tried to add to the (now seemingly permanently fixed as an EXAMPLE file) onload.init file are:
"
seedwatch all 50
seedwatch start

repeat -name critwarning -time 7 -timeUnits days -command [ warn-starving all ]

autobutcher target 10 10 0 0 new
autobutcher autowatch
autobutcher target 80 80 10 3 BIRD_GOOSE BIRD_TURKEY
autobutcher target 10 4 5 2 CAT
autobutcher target 20 20 10 5 DOG
autobutcher target 30 30 15 5 SHEEP
autobutcher target 20 20 10 3 ALPACA
autobutcher watch BIRD_GOOSE BIRD_TURKEY CAT DOG SHEEP ALPACA
autobutcher sleep 30000
autobutcher start

enable autohauler

enable stocks

enable buildingplan

enable search

enable autotrade

tweak adamantine-cloth-wear

tweak cage-butcher

tweak condition-material

tweak eggs-fertile

tweak fps-min

tweak max-wheelbarrow

tweak military-color-assigned

tweak military-stable-assign

tweak stable-cursor

tweak tradereq-pet-gender

gui/extended-status enable

keybinding add Alt-Q@jobmanagement gui/manager-quantity
"

From what you've said I guess I can remove 'tweak condition-material' from the list

In case you were wondering about the large size allowed for the young/kids in the autobutcher, I figure I'm unlikely to actually get those amounts of young in the grazers, and the birds don't have any data showing in the wiki about how much they graze in pastures, so I figured that's probably coz it doesn't matter - either way having such a high number set for young allows any young born time to grow into adulthood before being slaughtered.

Please, do you have any suggestions on how I might correct the EXAMPLE file problem?
Logged

PatrikLundell

  • Bay Watcher
    • View Profile
Re: job manager condition material crash ucrtbase.dll
« Reply #12 on: January 12, 2018, 07:44:56 am »

A guess is that you have the incredibly stupid Windoze "hide extensions" enabled, so file extensions aren't displayed and can't be changed via right clicking renaming of the file (I think). If you don't want to change that you may be able to use Save As to allow you to save the file as e.g. a .txt file (I don't know if it "understands" .init, though).
Logged

Kat1e

  • Bay Watcher
    • View Profile
Re: job manager condition material crash ucrtbase.dll
« Reply #13 on: January 12, 2018, 08:19:22 am »

100% correct.

Thanks Patrik! File extension issue is now fixed.  :D
Logged

PatrikLundell

  • Bay Watcher
    • View Profile
Re: job manager condition material crash ucrtbase.dll
« Reply #14 on: January 12, 2018, 09:27:47 am »

I'm not even sure why extension hiding exists. The only reason for it I know of is to disguise malware as text/data files, and I'm fairly sure the small soft one didn't actually intend to facilitate that...
Logged
Pages: [1] 2