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

Brewtarget exit after clicking on... #649

Closed
ghost opened this issue May 5, 2022 · 3 comments
Closed

Brewtarget exit after clicking on... #649

ghost opened this issue May 5, 2022 · 3 comments
Assignees

Comments

@ghost
Copy link

ghost commented May 5, 2022

Hello :)

When you click on a long rectangle at base profile or target profie in the "water chemistry" tab without selecting any profile, default setting, brewtarget exit. In the log file or command line there's the following error message:
ERROR : ASSERT: "basePixelDistanceBetweenCircles > 0" in file /tmp/brewtarget-git_20220411_213e54c5/src/RadarChart.cpp, line 257 [RadarChart.cpp:257]

brewtarget_water_chemistry

Regards

@matty0ung
Copy link
Contributor

matty0ung commented May 5, 2022

Thanks for the bug report. Will take a proper look soon.

From a quick look:
• The code that draws the radar chart on the water profile editor isn't liking the fact that it's being asked to draw a chart with no data. (It can handle all the data being zero, eg when you create a new water profile. But here we're trying to show a non-existent profile.)
• In this case, it may be best for us to make default selections for the water profiles, on the grounds that it doesn't make sense for no profiles to be selected in a tool that's supposed to help you with mineral additions to one profile to mimic another. (It's notable that, once you've selected a profile for Base or Target, you can't unselect it.) Failing that, we could have clicking on blank "nothing selected" box just do nothing.

@matty0ung matty0ung self-assigned this Aug 18, 2022
@matty0ung
Copy link
Contributor

Sorry that "soon" turned out to be a while. I have a one-line fix that prevents the crash, but I'm going to carry on looking a bit as there's some other behaviour that's not ideal.

matty0ung pushed a commit to matty0ung/brewken that referenced this issue Sep 25, 2022
matty0ung added a commit to Brewken/brewken that referenced this issue Sep 25, 2022
Fix for Brewtarget/brewtarget#649, plus minor build fixes and tidy-up
matty0ung pushed a commit to matty0ung/brewtarget that referenced this issue Sep 25, 2022
@matty0ung
Copy link
Contributor

This should be fixed in the latest release (https://github.com/Brewtarget/brewtarget/releases/tag/v3.0.1). Please re-open if not.

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

1 participant