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

Water Chemistry: Crash when selecting added salt name or amount #685

Closed
OWoolland opened this issue Nov 26, 2022 · 6 comments
Closed

Water Chemistry: Crash when selecting added salt name or amount #685

OWoolland opened this issue Nov 26, 2022 · 6 comments

Comments

@OWoolland
Copy link

OWoolland commented Nov 26, 2022

Hello, I've been having a play with the water chemistry tool that has been added. It's looking really cool and really promising, thank you for the work on it.

I'm having trouble using the interface, receiving:

munmap_chunk(): invalid pointer

when selecting a salt name or amount on the Water Chemistry tool. I have attached a full backtrace gdb.txt

I attempted to chase the error out but not being super familiar with Brewtarget's source code, QT or more complex databases I may have been barking up the wrong tree. I got as far as finding that disabling this line allowed the water calculator to proceed as I hoped but presumably wasn't a good idea for the software as a whole!

Having a look around in the database generated during compilation I notice that (for me) the Salt table appears to be empty.
foo
Could this be related?

All the best and keep up the good work!

FWIW I am mostly clean building in a Docker container to try to keep things sane.

@matty0ung
Copy link
Contributor

Hi, Thanks for the detailed bug report and diagnostics. I'll have a look and see if I can workout what's going on.

@matty0ung
Copy link
Contributor

OK, good news is I can reproduce the bug and I know why it's happening. I need to think about the right fix, which might not be entirely trivial, but I have a couple of ideas...

@OWoolland
Copy link
Author

That's great! Good luck and thank you for taking a look 🙂

matty0ung pushed a commit to matty0ung/brewtarget that referenced this issue Nov 26, 2022
matty0ung pushed a commit to matty0ung/brewken that referenced this issue Nov 26, 2022
@matty0ung
Copy link
Contributor

I have uploaded a fix that works-on-my-machine™ to #684. We'll include it in the 3.0.4 release.

As ever, please don't hesitate to let us know if you hit other problems.

@OWoolland
Copy link
Author

OWoolland commented Nov 26, 2022

First impressions for me are that the fix works really nicely! Thanks again for looking in to it - amazingly quick response and fix!

From my perspective I am happy for the issue to close whenever it is appropriate.

All the best :)

@matty0ung
Copy link
Contributor

Closing now that release 3.0.4 is out.

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