Search Issue Tracker
Not Reproducible
Votes
1
Found in
2017.1.0f3
Issue ID
932645
Regression
Yes
'Could not extract GUID in file projectsettings/projectsettings.asset at line 44' when build and run on inspector's debug mode
To reproduce:
1. Open repro project (link in edit)
2. Build and run 'stage 1 mechanical' scene
3. Set inspector's mode to 'debug' and repeat 2nd step
4. Set inspector's mode back to 'normal' and repeat 2nd step
Expected: after any of these builds, there will be no errors
Actual: after 3 or 4th step, an errors are thrown:
'Could not extract GUID in text file projectsettings/projectsettings.asset at line 44.
UnityEditor.HostView:OnGUI()'
'Shader error in 'Standard (Specular setup)': Too many math instructions for SM2.0 (66 needed, max is 64). Try #pragma target 3.0 at /Program Files/Unity 2017.1.0f3/Editor/Data/CGIncludes/UnityStandardCore.cginc(426) (on d3d9)
Compiling Fragment program with DIRECTIONAL LIGHTMAP_ON FOG_LINEAR _NORMALMAP _DETAIL_MULX2
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP'
Reproducible: 2017.1.0f2, f3, 2017.2.0b3
Not reproducible: 5.6.2p3
-
behnam-lum
Apr 05, 2018 15:15
HERE IS THE SOLUTION
So the issue (at least on my side) as people mentioned above is coming from having `splashScreenBackgroundSourceLandscape` and `splashScreenBackgroundSourcePortrait` set to `{fileID: 0, guid: 000000000000000000000000000000000, type: 0}`. First confirm that you also have the same issue for the same fields. If not just look at your error message and find which field is giving you this error it should have that trail of zeros as the ID.
Now just search for `m_SplashScreenBackgroundLandscape`, `m_SplashScreenBackgroundPortrait` or just add `m_` in front of the field name that has this problem and search for it in the file. You should be able to find the correct value there, just copy and paste the value in those fields that have the problem. For example for me the correct value for `splashScreenBackgroundSourceLandscape` should have been {fileID: 21300000, guid: 2ae2e71466b7e4132a2f6e5828f57fa6, type: 3}. This should solve the issue.Plan B
Go ahead and find the GUID of the file that is set for splash screen. You can find it in its corresponding `.meta` file. So if the file name is `splashscreen.png` you should look for `splashscreen.png.meta`. Search for that GUID in your entire project, if you are using text based YAML format for all your assets then you should be able to find a reference to that file in some other place. After you find it just copy the value which should look like the value above and paste it where the problem is coming from.Hope it helps you all, let me know if you encounter any other issues.
-
Big-Ed
Oct 01, 2017 01:37
Using 5.6.0f3
-
Big-Ed
Oct 01, 2017 01:36
This happens to me whenever I build iOS with Release mode set and I am using a splash screen, with pro license.
Light on Dark, Dolly, no Unity Logo, png for Logo, Duration 3, have a Backgroun Image, no alternate Portrait Image because I have no portrait. the Launch Screen for iPhone and iPad are set. I have no Legacy Images set. -
MrLucid72
Sep 22, 2017 16:04
"Not reproducible: 5.6.2p3"
Actually, this IS reproducible in 5.6.2p3: https://i.imgur.com/9C91NkX.png (at least the GUID part)
Could not extract GUID in text file projectsettings/projectsettings.asset at line 44.
UnityEditor.HostView:OnGUI()
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Joint Physics result in unexpected behaviors when used for articulated vehicles like buses or trucks
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts which worked with TMP Font Asset Creator
Resolution Note:
This error is due to the ProjectSettings/ProjectSettings.asset file being manipulated outside of Unity either by a bad version control merge, or some other tool. The line in the error (line 44) is an object reference that has a carriage return added in the middle of the data, thus breaking deserialization.
Line 44 & 45:
m_SplashScreenBackgroundLandscape: {fileID: 1, guid: 00000000000000000000000000000000,
type: 0}
Correct format:
m_SplashScreenBackgroundLandscape: {fileID: 1, guid: 00000000000000000000000000000000, type: 0}
Looking through the rest of that file, it would appear that any line over a certain length was modified. I'm guessing some version control process or something else is applying word wrapping to the file and saving out the results. This also affected the ProjectSettings/GraphicsSettings.asset file as well.