-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
splitLongitude produces NaN texture coordinates #7406
Comments
May not be the same problem. I can run the tests, but the Materials demo crashes. |
Looks like under linux it just kind of freezes after a few frames. |
Ubuntu 18.04 Chrome71 crash after the Globe show. |
@OmarShehata is going to look into this a bit today. It should be easy to identify which geometry or material is causing the problem in this demo. |
Preliminary results: I'm not sure why yet, but it seems to be having trouble with
If I change the line:
To
It works fine. Sandcastle with above modification. |
The other way to fix it is to comment out the appearance, so the following works:
I've discovered that the texture coordinates attribute has NaN's in it. If I put the following check in
For some reason, this |
The issue seems specifically to be in the |
Cool, texture coordinate NaNs is a very fixable problem. I guess this is something previous versions of Chrome tolerated but this latest release does not. |
Yup! That's the good news. I was worried it was some very specific obscure Chrome 71 WebGL issue, but you can see the NaNs are present in Firefox as well, and it just doesn't crash there. |
I can probably take a look at this next week if no one else gets to it first. The texture coordinate calculation happens here: https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Core/RectangleGeometryLibrary.js#L56-L68 |
I was wrong about compressVertices. It gets NaN's before that, it's just that it only crashes during that step. @hpinkos I just checked RectangleGeometryLibrary and the produces coordinates there are clean. The NaNs are introduced in That also explains why it was fixed when we made it smaller (I think). |
@hpinkos if you're more familiar with that class, I can stop there and let you take it from here. |
We have so many problems caused by that |
They released a new minor version update for Chrome last night and it no longer crashes on my system. Maybe it was a regression on their end? Can others confirm? I still maintain that Chrome 71 was garbage, this and #7388 seem to confirm that. |
@mramato it's still true that I'm guessing the crash was not intentionally on Chrome's side because the debug log says something like "Application tried to access memory and was denied" as opposed to "NaN values are not allowed here". |
Re-targeted this issue to fix the texture coordinate computation in |
Only seems to be a problem with |
Just kidding, the |
I've discovered that the texture coordinates attribute has NaN's in it. If I put the following check in
Source/Core/AttributeCompression.js
everything works fine:https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Core/AttributeCompression.js#L308-L316
The text was updated successfully, but these errors were encountered: