Skip to content

WebGl builds under local windows - builds in gameci but with errors #391

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

Closed
McSwan opened this issue Apr 27, 2022 · 13 comments
Closed

WebGl builds under local windows - builds in gameci but with errors #391

McSwan opened this issue Apr 27, 2022 · 13 comments
Labels
bug in unity This is a bug in unity itself (out of scope) bug Something isn't working

Comments

@McSwan
Copy link

McSwan commented Apr 27, 2022

Bug description

  1. I have a blank unity app in 2021 LTS. eg https://github.com/McSwan/HubTest
  2. Builds and runs fine in windows.
  3. building in game ci is successful - https://github.com/McSwan/HubTest/actions
  4. web gl has an error https://buckettown.s3.ap-southeast-2.amazonaws.com/index.html
  5. and there is no error in the windows build

How to reproduce
see above

^

Expected behavior

builds the same as windows
Additional details

image

image

@McSwan McSwan added the bug Something isn't working label Apr 27, 2022
@McSwan
Copy link
Author

McSwan commented Apr 27, 2022

Could be a unity bug and nothing to do with gameci, but thought I'd ask here first.

@McSwan
Copy link
Author

McSwan commented Apr 27, 2022

image
"Internal-Error.shader could not be loaded error" in the console.

@McSwan
Copy link
Author

McSwan commented Apr 28, 2022

So it works in unity version 2021.1.24f1, and doesn't work in 2021.2.3f1. So there was a change in between those version that broke webgl. - Don't use anyhting above 2021.1.24f1 to build webgl atm.

@derfl007
Copy link

derfl007 commented May 1, 2022

We're having a similar problem, the game builds perfectly on windows, but via game-ci a (very important) 2d camera projection texture is missing which makes the game unplayable... After checking it seems we're getting similar error messages

Did you have any problems building with 2021.1.24f1 instead of 2021.2.3f1? Because if that works fine, I might just try it out!

derfl007 added a commit to switchcodes/theworkflow that referenced this issue May 1, 2022
@davidmfinol davidmfinol added the bug in unity This is a bug in unity itself (out of scope) label May 1, 2022
@McSwan
Copy link
Author

McSwan commented May 2, 2022

Apparently the URP guys added something that broke linux builds. Unity is investigating.

@shiena
Copy link

shiena commented May 7, 2022

@McSwan
Copy link
Author

McSwan commented May 9, 2022

Unity have fixed the bug but haven't got a release for it yet. Need to watch the the bug above ^ for what release has the fix.
Here's the forum post down the bottom
https://forum.unity.com/threads/memory-access-out-of-bounds-when-running-a-build-for-an-empty-project.1199230/#post-8107895

@shiena
Copy link

shiena commented Jun 1, 2022

Maybe a related issue. https://issuetracker.unity3d.com/issues/linux-webgl-build-crashes-every-time-when-using-unity-editor-on-linux

Unity 2021.3.X / 2022.1.X / 2022.2.X has been updated to fixed in issue tracker.

@McSwan
Copy link
Author

McSwan commented Jun 1, 2022

Has gameci been updated with those versions ?

@McSwan
Copy link
Author

McSwan commented Jun 1, 2022

I tried building it as 2021.3.3f1 - it's still broke, at least as of right now.

  • name: Build Unity Project
    uses: game-ci/unity-builder@v2
    env:
    UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
    UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
    UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
    with:
    projectPath: ./
    # unityVersion: 2021.2.3f1
    # unityVersion: 2021.1.24f1
    unityVersion: 2021.3.3f1

@shiena
Copy link

shiena commented Jun 1, 2022

https://unity3d.com/jp/unity/whats-new/2021.3.3
Issue 1411380 remains in the Known Issues of Unity021.3.3f1. Probably fixed in Unity2021.3.4f1.

@McSwan
Copy link
Author

McSwan commented Jun 2, 2022

Tested Unity2021.3.4f1 yesterday, and it wasn't released yet - tested it today and looks like it works. Yay!

@davidmfinol
Copy link
Member

Closing this issue, as it seems to be fixed after Unity 2021.3.4f1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug in unity This is a bug in unity itself (out of scope) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants