-
Notifications
You must be signed in to change notification settings - Fork 563
8370729: Precision errors in Marlin 0.9.4.6 can cause rendering errors #2039
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
base: master
Are you sure you want to change the base?
Conversation
|
👋 Welcome back lbourges! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
@kevinrushforth and @johanvos please review this jfx fix identical to java2d fix, except nearZero() moved into DMarlinRendererPrismUtils |
Webrevs
|
|
Will fix compilation failure asap (missing module access) |
|
/reviewers 2 |
|
@kevinrushforth |
|
@bourgesl Can you create an automated test for this, perhaps derived from the Java2D test in JDK-8341381? Reviewers: @kevinrushforth @lukostyra /reviewers 2 |
|
@kevinrushforth |
|
@kevinrushforth of course I could but I need time to convert this 2d test to jfx gameloop... |
|
How much time would it take? As an alternative, do you have a manual test program that will show the error? Given that this is a port of a fix that already went into Java2D, a manual test program might be sufficient (and we can file a follow-up test bug to consider an automated test later). |
|
I am trying to come up with a reproducer, @kevinrushforth @bourgesl |
|
I came up with what I think is an equivalent of the Main.java in https://bugs.openjdk.org/browse/JDK-8341381 I noticed that the shapes do not correspond to the GIF in the ticket - the curves in the bug form a text outline, whereas the GIF shows something else. Not sure if important. What's important is that I cannot reproduce the issue with the latest master branch. Please use the latest monkey tester from select the Shape page and set the properties according to the screenshot: Here is the reproducer part of the code: What am I doing wrong, @bourgesl ? |
|
The tricky part in this test consists in falling in magic cubic values depending on scale & viewport... that should be reproduced as in the gif case. |
I will try reproducing this weird scale or extract transformed values to make bad cubics |


merged changes with Java2D bug JDK-8341381 (trivial port on src only)
See openjdk/jdk@46c23bb
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/2039/head:pull/2039$ git checkout pull/2039Update a local copy of the PR:
$ git checkout pull/2039$ git pull https://git.openjdk.org/jfx.git pull/2039/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2039View PR using the GUI difftool:
$ git pr show -t 2039Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/2039.diff
Using Webrev
Link to Webrev Comment