game-ci / game-ci/unity-builder

Build succeeds, but Unity Editor crashes and stops the github action from proceeding.

Open
#625 6 comments 0 reactions 0 assignees View on GitHub
bug in unity
Dominant language
TypeScript
Stars
1.1k
Forks
313
Avg merge
1h 39m
Merged PRs (30d)
1

Description

We have a old unity project (over 10 years in dev) that crashes the unity editor when the project exits. We don't know why.

It looks like in V4 when we build 2022.3.12f1, it builds successfully, but the editor rashes on exit causing the rest of github action processes to fail.

Is there a way I can ignore the crash, because it does build correctly, and I don't care that it crashes on exit (but now I do care because github actions is now failing.)

Also, I'm assunming this is the issue

2024-02-02T01:13:40.1777625Z Integration of assets: 0.003 ms
2024-02-02T01:13:40.1778146Z Thread Wait Time: 0.013 ms
2024-02-02T01:13:40.1778654Z Total Operation Time: 14.629 ms
2024-02-02T01:13:40.1971047Z Unloading 0 unused Assets / (6.6 KB). Loaded Objects now: 5879.
2024-02-02T01:13:40.1971910Z Memory consumption went from 309.0 MB to 309.0 MB.
2024-02-02T01:13:40.1973188Z Total: 19.473300 ms (FindLiveObjects: 0.804800 ms CreateObjectMapping: 0.613400 ms MarkObjects: 18.006800 ms DeleteObjects: 0.047300 ms)
2024-02-02T01:13:40.1974199Z
2024-02-02T01:13:40.2162714Z
2024-02-02T01:13:40.2163271Z ###########################
2024-02-02T01:13:40.2163906Z # Build results #
2024-02-02T01:13:40.2164435Z ###########################
2024-02-02T01:13:40.2164755Z
2024-02-02T01:13:40.2164938Z Duration: 00:12:19.3078528
2024-02-02T01:13:40.2165424Z Warnings: 9
2024-02-02T01:13:40.2165828Z Errors: 0
2024-02-02T01:13:40.2166260Z Size: 48305570 bytes
2024-02-02T01:13:40.2166561Z
2024-02-02T01:13:40.2166568Z
2024-02-02T01:13:40.2166752Z Build succeeded!
2024-02-02T01:13:40.3585958Z [websockify wrapper] OnUnload
2024-02-02T01:13:40.3667120Z [websockify wrapper] Process killed

And later on ... - Note the seg fault - I think this is the Unity editor itself crashing - which I am hoping to just ignore.

(1.0x), Avg. 6.54 ms, Total. 6.538 ms (0.0%)
2024-02-02T01:13:42.0220957Z [Performance] Application.Shutdown.CleanupAsyncReadManager : 1 samples, Peak. 159 us (1.0x), Avg. 159 us, Total. 158.7 us (0.0%)
2024-02-02T01:13:42.0222989Z [Performance] Application.Shutdown.CleanupMono : 1 samples, Peak. 109 ms (1.0x), Avg. 109 ms, Total. 109.1 ms (0.0%)
2024-02-02T01:13:42.0224944Z [Performance] Application.Shutdown.CleanupStdConverters : 1 samples, Peak. 14.7 us (1.0x), Avg. 14.7 us, Total. 14.70 us (0.0%)
2024-02-02T01:13:42.0227076Z [Performance] Application.Shutdown.UnloadAllPlatformSupportModuleNativeDlls : 1 samples, Peak. 2.90 us (1.0x), Avg. 2.90 us, Total. 2.900 us (0.0%)
2024-02-02T01:13:42.0229313Z [Performance] Application.Shutdown.UnloadAllPlatformSupportNativeLibraries : 1 samples, Peak. 900 ns (1.0x), Avg. 900 ns, Total. 900.0 ns (0.0%)
2024-02-02T01:13:42.0231374Z [Performance] Application.Shutdown.CleanupAutoDocumentation : 1 samples, Peak. 545 us (1.0x), Avg. 545 us, Total. 545.1 us (0.0%)
2024-02-02T01:13:42.0233411Z [Performance] Application.Shutdown.ShaderNameManagerDestroy : 1 samples, Peak. 83.8 us (1.0x), Avg. 83.8 us, Total. 83.80 us (0.0%)
2024-02-02T01:13:42.0235461Z [Performance] Application.Shutdown.CleanupCacheServer : 1 samples, Peak. 400 ns (1.0x), Avg. 400 ns, Total. 400.0 ns (0.0%)
2024-02-02T01:13:42.0237328Z [Performance] Application.Shutdown.Virtualization_Shutdown : 1 samples, Peak. 800 ns (1.0x), Avg. 800 ns, Total. 800.0 ns (0.0%)
2024-02-02T01:13:42.0239138Z [Performance] Application.Shutdown.DevConnections : 1 samples, Peak. 56.4 us (1.0x), Avg. 56.4 us, Total. 56.40 us (0.0%)
2024-02-02T01:13:42.3567998Z Segmentation fault (core dumped)
2024-02-02T01:13:42.3813653Z Build failed, with exit code 139
2024-02-02T01:13:42.8562625Z
2024-02-02T01:13:42.8563221Z ###########################
2024-02-02T01:13:42.8563869Z # Build output #
2024-02-02T01:13:42.8564401Z ###########################
2024-02-02T01:13:42.8564726Z
2024-02-02T01:13:42.8619196Z total 12K
2024-02-02T01:13:42.8619973Z drwxr-xr-x 3 root root 4.0K Feb 2 01:03 .
2024-02-02T01:13:42.8620687Z drwxr-xr-x 3 root root 4.0K Feb 2 00:59 ..
2024-02-02T01:13:42.8626340Z drwxr-xr-x 5 root root 4.0K Feb 2 01:03 WebGL
2024-02-02T01:13:43.1841678Z [UnityConnectServicesConfig] Local config successfully read: "/usr/share/unity3d/config/services-config.json"

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.