Author Topic: 2017.4 LTS to 2018.4 LTS, Cannot open file for write.  (Read 845 times)

Hi there,

I'm starting the migration of a large project from 2017 to 2018 LTS. However when reimporting most of my sbsar files unity failes with the following errors (I have to press cancel as a popup windows says there is an invalid access to file otherwise project won't launch ):

Code: [Select]
FormatException: Input string was not in a correct format.
System.Number.ParseDouble (System.String value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
System.Double.Parse (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
System.Double.Parse (System.String s, System.IFormatProvider provider) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
System.Convert.ToDouble (System.String value) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
Substance.Editor.SubstanceImporter.GetInputValue (System.Int32& index, System.Collections.Generic.List`1[T] graphLines) (at <af460b94ceb94676b2efa7d55a7d8759>:0)
Substance.Editor.SubstanceImporter.ApplyReflection (System.IO.StreamReader file, Substance.Game.Substance substance) (at <af460b94ceb94676b2efa7d55a7d8759>:0)
Substance.Editor.SubstanceImporter.UpdatePlugin (Substance.Game.Substance substance) (at <af460b94ceb94676b2efa7d55a7d8759>:0)
Substance.Editor.SubstanceImporter.OnImportAsset (UnityEditor.Experimental.AssetImporters.AssetImportContext ctx) (at <af460b94ceb94676b2efa7d55a7d8759>:0)
UnityEditor.Experimental.AssetImporters.ScriptedImporter.GenerateAssetData (UnityEditor.Experimental.AssetImporters.AssetImportContext ctx) (at C:/buildslave/unity/build/Modules/AssetPipelineEditor/Public/ScriptedImporter.cs:20)
Code: [Select]
Cannot open file "..../.../...sbsar.meta" for write.
Code: [Select]
Failed to write meta file 'Assets/.../.sbsar.meta'.
Code: [Select]
Asset import failed, "Assets/.../sbsar" > FormatException: Input string was not in a correct format.
System.Number.ParseDouble (System.String value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
System.Double.Parse (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
System.Double.Parse (System.String s, System.IFormatProvider provider) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
System.Convert.ToDouble (System.String value) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
Substance.Editor.SubstanceImporter.GetInputValue (System.Int32& index, System.Collections.Generic.List`1[T] graphLines) (at <af460b94ceb94676b2efa7d55a7d8759>:0)
Substance.Editor.SubstanceImporter.ApplyReflection (System.IO.StreamReader file, Substance.Game.Substance substance) (at <af460b94ceb94676b2efa7d55a7d8759>:0)
Substance.Editor.SubstanceImporter.UpdatePlugin (Substance.Game.Substance substance) (at <af460b94ceb94676b2efa7d55a7d8759>:0)
Substance.Editor.SubstanceImporter.OnImportAsset (UnityEditor.Experimental.AssetImporters.AssetImportContext ctx) (at <af460b94ceb94676b2efa7d55a7d8759>:0)
UnityEditor.Experimental.AssetImporters.ScriptedImporter.GenerateAssetData (UnityEditor.Experimental.AssetImporters.AssetImportContext ctx) (at C:/buildslave/unity/build/Modules/AssetPipelineEditor/Public/ScriptedImporter.cs:20)

Thank you for your quick insights.
Best

Hi there,

I'm starting the migration of a large project from 2017 to 2018 LTS. However when reimporting most of my sbsar files unity failes with the following errors (I have to press cancel as a popup windows says there is an invalid access to file otherwise project won't launch ):

Code: [Select]
FormatException: Input string was not in a correct format.
System.Number.ParseDouble (System.String value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
System.Double.Parse (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
System.Double.Parse (System.String s, System.IFormatProvider provider) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
System.Convert.ToDouble (System.String value) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
Substance.Editor.SubstanceImporter.GetInputValue (System.Int32& index, System.Collections.Generic.List`1[T] graphLines) (at <af460b94ceb94676b2efa7d55a7d8759>:0)
Substance.Editor.SubstanceImporter.ApplyReflection (System.IO.StreamReader file, Substance.Game.Substance substance) (at <af460b94ceb94676b2efa7d55a7d8759>:0)
Substance.Editor.SubstanceImporter.UpdatePlugin (Substance.Game.Substance substance) (at <af460b94ceb94676b2efa7d55a7d8759>:0)
Substance.Editor.SubstanceImporter.OnImportAsset (UnityEditor.Experimental.AssetImporters.AssetImportContext ctx) (at <af460b94ceb94676b2efa7d55a7d8759>:0)
UnityEditor.Experimental.AssetImporters.ScriptedImporter.GenerateAssetData (UnityEditor.Experimental.AssetImporters.AssetImportContext ctx) (at C:/buildslave/unity/build/Modules/AssetPipelineEditor/Public/ScriptedImporter.cs:20)
Code: [Select]
Cannot open file "..../.../...sbsar.meta" for write.
Code: [Select]
Failed to write meta file 'Assets/.../.sbsar.meta'.
Code: [Select]
Asset import failed, "Assets/.../sbsar" > FormatException: Input string was not in a correct format.
System.Number.ParseDouble (System.String value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
System.Double.Parse (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
System.Double.Parse (System.String s, System.IFormatProvider provider) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
System.Convert.ToDouble (System.String value) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
Substance.Editor.SubstanceImporter.GetInputValue (System.Int32& index, System.Collections.Generic.List`1[T] graphLines) (at <af460b94ceb94676b2efa7d55a7d8759>:0)
Substance.Editor.SubstanceImporter.ApplyReflection (System.IO.StreamReader file, Substance.Game.Substance substance) (at <af460b94ceb94676b2efa7d55a7d8759>:0)
Substance.Editor.SubstanceImporter.UpdatePlugin (Substance.Game.Substance substance) (at <af460b94ceb94676b2efa7d55a7d8759>:0)
Substance.Editor.SubstanceImporter.OnImportAsset (UnityEditor.Experimental.AssetImporters.AssetImportContext ctx) (at <af460b94ceb94676b2efa7d55a7d8759>:0)
UnityEditor.Experimental.AssetImporters.ScriptedImporter.GenerateAssetData (UnityEditor.Experimental.AssetImporters.AssetImportContext ctx) (at C:/buildslave/unity/build/Modules/AssetPipelineEditor/Public/ScriptedImporter.cs:20)

Thank you for your quick insights.
Best

Hi,

Would you be able to share with me the 2017 project? We will take a look at what is causing the issue.

Cheers,
Wes
Head of Substance Demo Art Team
the3dninja@adobe.com
Twitter: The3DNinja

Thanks for your concern,

However I'll be unable to send over the project (100+go). What I can do is send a sample of sbsar and associated meta files via PM.

A test I've done :

- Created a new project
- Copied both substances sent by PM and meta files to new project
- Installed substance plugin
- Same issue

Then :
- Deleted meta files
- Reimported
- Works but as expected all configurations are deleted which is not acceptable in our migration.

So I guess it lies in the meta files parsing. As the plugin is not given with sources its hard to troubleshoot. Any reason it's not delvired with them ?
Last Edit: November 20, 2019, 06:47:34 pm