-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inventory error?! Unknown signal. Trying to add inventory to yeasts. #601
Comments
So far I'm having problems with Yeast, Hops and Misc. all with the above error. This could be because of my database as well, have to do more testing tomorrow. |
I can reproduce this. Will have a look. |
OK, I have a fix for this. Will backport it to Brewtarget and submit in the next day or so. (Need a couple of tweaks for the backport as |
Nice, I'll continue my work with inventory printout using fermentables for now then awaiting your fix. 😊 |
The crash was caused by an invalid property name in YeastTabelModel.cpp (and equivalent places for other things with inventory). I've changed the hard-coded string property names for symbolic ones (so we should get compiler errors in the future for bad property names), as has already been done in most other parts of the code. I also pulled out the common inventory functions from Yeast, Hop, etc to an intermediate parent class (NamedEntityWithInventory). So the crashing seems to stop now... However, there is still an issue that we're not always setting the inventory ID, which means inventory amounts aren't getting stored. There may be some small fix in Brewtarget that addresses this, and I'm just not instantly seeing it. Otherwise, when I bring the new DB layer back, there's new code (in a new Inventory class) that does all the right things. |
So the error has been solved. I'll close this issue. |
DB schema upgrade changes, plus fix for Brewtarget/brewtarget#601
I'm trying to add inventory to the Yeasts, one of the included ones (Danstar - Nottingham).

But Brewtarget crashes abruptly with the following error:
can anyone shed some light on this as I don't fully follow the redo/undo methods?
The text was updated successfully, but these errors were encountered: