Skip to content
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

Crash when copying recipe, then on adding new steps in mash, ferment, boil, others #868

Closed
stripler675 opened this issue Oct 29, 2024 · 6 comments

Comments

@stripler675
Copy link

Compiled from git clone 29-Oct. Fedora 40. Had to comment out stacktrace_backtrace from CMakeLists.txt, because it was too much of a pain to get boost stacktrace_backtrace working.

Restarting after the crash, the step or item is present in the list. So if I'm adding a mash step, it crashes, when reopened the correct new mash step is there. Example crashes.

Copy recipe to new recipe (in this case the new recipe does not exist)

(brewtarget:61230): Gtk-WARNING **: 18:06:16.444: Failed to measure available space: The specified location is not supported
(brewtarget:61230): Gtk-WARNING **: 18:06:16.444: Failed to measure available space: The specified location is not supported
[18:07:24.756] (1dte18twcg) WARNING : bool {anonymous}::isUnusedInstanceOfUseOf(NE&) [with NE = Equipment] Equipment # 74 is unexpectedly already used in recipe # 64  [model/Recipe.cpp:129]
[18:07:24.758] (1dte18twcg) ERROR : ASSERT: "*this == copiedFrom" in file /localPath/brewtarget/src/model/NamedEntity.cpp, line 161  [model/NamedEntity.cpp:161]
Aborted (core dumped)

Adding new fermentation step

(brewtarget:61016): Gtk-WARNING **: 18:01:23.141: Failed to measure available space: The specified location is not supported
(brewtarget:61016): Gtk-WARNING **: 18:01:23.141: Failed to measure available space: The specified location is not supported
[18:02:16.503] (1dokf7rhmo) ERROR : ASSERT: "current + doSomething < this->derived().rows.size()" in file /localPath/brewtarget/src/tableModels/StepTableModelBase.h, line 156  [tableModels/StepTableModelBase.h:156]
Aborted (core dumped)
@matty0ung
Copy link
Contributor

I'll take a look. The first assert is a bug in the "copy recipe" functionality. The second might well be a knock-on effect of the first.

@matty0ung
Copy link
Contributor

I have a fix in the works for this. It's a bit more than a one-liner, but should have a side benefit of eliminating some duplicated logic in the code.

@matty0ung matty0ung changed the title Crash on adding new steps in mash, ferment, boil, others Crash when copying recipe, then on adding new steps in mash, ferment, boil, others Nov 2, 2024
@stripler675
Copy link
Author

Thanks. Will check it.

@matty0ung
Copy link
Contributor

Copy recipe is fixed in release 4.0.9. However, I'm still getting the crash on add mash step, so I'll have a look at that next.

@matty0ung
Copy link
Contributor

I'm pretty sure I know what the cause of the "add step" crash is. It's quite an interesting problem but should be relatively straightforward to fix. I hope to have something within the coming week.

@matty0ung
Copy link
Contributor

Remaining fixes for this in the 4.0.10 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants