I am loading png from an ftp server since unity 5 which has always worked fine. But now the piece of code below crashes the whole app. It has something to do with the iOS png support I guess, but this worked always for me until i updated to 2017.3.0p2 for updated Vuforia support. Last Unity version i tried this on was 2017.2.0f3, then it still worked. Has anyone else encountered this problem?
I can’t directly copy the error message right now but it shows a EXC_BAD_ACCES Code 1 on a memory adress as soon as it starts to create a Texture2D from the www. for jpg’s it doesn’t crash but still won’t load the image.
There is a slight mistake in my original post. I do use http, but the file gets downloaded from a ftp server. I have tried UnityWebRequests before but if I remember correctly they were quite a bit slower than using www’s. Still worth a try though. Thanks for the help!
Hi twinsense360, I have the same error on 2017.3.0p2, it crashes always when i’m using PNG images on iOS, but JPG works fine. Right now I’m updating Unity to 2017.3.0p4 and I will answer tomorrow (I HOPE IT WILL BE FIXED ).
No way, for now I’m using only jpegs in project, and I have an image picker that picks image for avatar from users device, if its png I automatically convert it to jpeg via plugin
Won’t you have problems with transparancy? Cause in our app transparancy is needed in some cases. Lets hope the Unity developers picks this up at some point (hopefully before v2018).
What is the plugin you are using? We can maybe use it as a temporary fix.
Having same issue loading PNG images. Issue occurs only when XR settings is enables and cardboard is added to the list. If I remove cardboard then it works fine.