Build/Deploy to Glitch - invalid string length

Hi all - I am trying to deploy to Glitch, but I keep getting an error:
ERR: failed to process file “C:\Users\hwdks\MaterialChanger\Needle\newProject\dist/assets/MaterialBaseTest.glb”, Reason: Invalid string length

Any thoughts on what could cause this?

Hi, i havent seen this error before so it’s not immediately obvious what’s causing this. Do you get any other logs or errors that are suspicious?

Btw just a tip: if you dont want to export objects that you don’t need set them to “EditorOnly” (unity tag) instead of just disabling the object (disabled objects will still be exported and included in your GLB even if you never use them - Needle Engine can not know that beforehand)

Good tip - thanks!

I’m not seeing anything that is suspicious. It also still runs ok on my local server.

In the ‘assets’ folder, there’s a lot of stuff in it but nothing that I would say is out of the ordinary.

Image of the assets folder:

Image of the properties of MaterialBaseTest.glb

I just got a new error when I hit Deploy only:
Upload failed: Your glitch instance does not have enough free disc space left

I’m assuming this is just saying my file is too big?

Yup - file is way too big! I should’ve pressed Deploy first instead of pressing Build and Deploy first.

I still don’t know about the string error though, but maybe sizing down will fix.

Do you have a prefab or scene named MaterialBaseTest and what is inside of it?

And yes the space on the free glitch server is limited, deployments should be 50 mb max (your one glb is already 700mb which is very very very large!!!)

Yup - the scene is called MaterialBaseTest. It has all of the objects for my scene.

I think I figured out the problem - it all stems to the file size being too large. When I run with like nothing in the scene, it doesn’t throw the error. Same when uploading to Glitch.

Thanks!

Hi, I think something in the scene is causing the error (altough yes your scene is too big for Glitch indeed but either way: 700 MB is too large for any website)

Would you mind sending a bugreport (Menu item “Needle Engine/Report a bug”) with your large scene? I’d be curious to see what’s the largest parts

Sure thing. Do I need to upload the zip file the bug report tool created somewhere?

Thank you, we received it (it’ll be uploaded to our backend)

1 Like