Microsoft Visual C++ Runtime Library - Runtime Error!

Hi guys,
I’ve been making a project for the last couple of days, using GitHub as my version control (with the Unity.gitignore setup)
After downloding the project on another PC and openning it in Unity, I’ve got this weird error (attached).
I guessed it might be a github problem, so I zipped it from the first PC to the other, and got the same error again.
Any idea on how to move from one PC to another without crashing the project? :slightly_smiling_face:
Thanks ahead,
Mattan.

PS: Both projects run on Unity 2022.3.10f1 LTS

Original Post on Discord

by user 198447544408342528

Hi when do you get this error? When starting unity? Are you maybe missing some sdk or tools on the new pc?

I’m getting right when the game opens.
This is my work pc and it runs other Unity projects with no problems

by user 198447544408342528

Im still not sure what you mean, sorry. The game opens in the Unity Editor and the error shows up when unity’s playmode starts or when exactly? And it worked the last couple of days fine? Did you install any new package?
I haven’t seen this error before, we are using github on almost all projects here as well.

Could you share the editorlog file after the project crashed?

Hi Marcel, sorry for the late reply.
After opening the project from the Hub, the project is opened with this error on top, preventing any input in unity.
Tomorrow I’ll provide the editor log and any information necessary

by user 198447544408342528

Visual C++ runtime errors are coming from Unity, not Needle – typically I’ve seen that when there’s incompatible native DLLs or other things in the project, or Unity wasn’t properly installed on a machine.

I recommend reinstalling that Unity version through the Hub, trying if an empty project works at all, and then trying with the target project again.

On my home pc I have Unity 2022.3.10f1 LTS, but on my work pc I only had a couple of 2021 versions.
When I first added the project I downloaded from Git(and later re downloaded it from my Google Drive), Unity Hub suggested I download 2022.3.10 and so I did ; right from the Hub. Including Android WebGL and all windows support.

When I use git I have gitignore and at first I thought that was the problem, but zipping the entire project folder did not work either…

by user 198447544408342528

I’ll try reinstalling the version tomorrow and report back.

by user 198447544408342528

Hey again,
I downloaded Unity again from their website (Download Archive) and ticked all of the platforms i usually use (namely Microsoft Visual Studio Community 2022, Android Build Support + Open JDK + Android SDK & NDK Tools, Universal Windows Platform Build Support, WebGL Build Support, Windows Buld Support (IL2CPP), and, Windows Dedicated Server Build Support). It’s important to point out that those are the same modules I downloaded on my home PC.

by user 198447544408342528

by user 198447544408342528

I have no idea where this problem comes from, and for now I will just recreate my enviroment and try stealing the scripts from the project folder

by user 198447544408342528

Have you tried an empty project?

Looks like automatic light baking fails. Please make an empty project, add some static objects and try lightmapping it. If the issue persists please report a bug to Unity

I haven’t lightmapped the last project, so that’s weird.
I will try to initalize a new repo for a new project and see if the problem continues

by user 198447544408342528

Also worth updating your drivers, especially GPU.

I was just noticing that while the c++ crash happens
a) Unity stays open, so it’s a background process crashing
b) there’s some GI.Tick progress bar up

right, thats why i sent you the video, it was weird for me as well.

by user 198447544408342528

does it help you with analysis?

by user 198447544408342528