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

Windows EOL fix #125

Merged
merged 1 commit into from
Dec 11, 2018
Merged

Windows EOL fix #125

merged 1 commit into from
Dec 11, 2018

Conversation

emackey
Copy link
Member

@emackey emackey commented Dec 11, 2018

Git had mistaken some of the smaller HDR files for text-based files, not binary. This change to .gitattributes specifically marks all such image files as binary files, to protect them from end-of-line processing.

On Windows, \n in certain small HDR files (such as papermill/specular/specular_right_8.hdr) were being automatically converted to \r\n, which caused an infinite loop to appear here:

https://github.com/KhronosGroup/glTF-WebGL-PBR/blob/3186d988507d2bf94ff2940c2e2cf1b597a5d691/libs/hdrpng.js#L156

The corrupted files never matched the regex, and the entire browser hung.

NOTE for Windows users: After pulling this change, you may need to manually delete your assets/images folder, as it will still contain the old corrupted files. Then use git commands to recreate the folder locally. (I didn't have other pending changes, so I took the heavy-handed approach of git reset --hard on my copy. Make sure you have anything important checked in first.)

@emackey
Copy link
Member Author

emackey commented Dec 11, 2018

This is just a .gitattributes change, so I'm merging it.

@emackey emackey merged commit 6cb4e24 into reference-viewer Dec 11, 2018
@emackey emackey deleted the windows-eol-fix branch December 11, 2018 16:21
emackey pushed a commit that referenced this pull request Mar 3, 2021
added transmission pass to punctual lighting transmission (GSVN-280)
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

Successfully merging this pull request may close these issues.

1 participant