Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random NullReferenceExceptions (on System.IO.File.WriteAllByte) #29

Open
shubhank008 opened this issue Nov 11, 2021 · 3 comments
Open

Comments

@shubhank008
Copy link

Trying to load url based images like https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=0x538620f25d8115d310421d8443c13fafa066574c

Getting NullReferenceException

NullReferenceException: Object reference not set to an instance of an object
System.IO.File.WriteAllBytes (System.String path, System.Byte[] bytes) (at <695d1cc93cca45069c528c15c9fdd749>:0)
Davinci+<Downloader>d__38.MoveNext () (at Assets/davinci-master/davinci-master/Davinci/Assets/Davinci/Scripts/Davinci.cs:369)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <f7f0a900fdf94a2a9316bb3d4c5aa3e8>:0)

Using latest zip download just minutes ago

@shubhank008
Copy link
Author

In other instances, the API call succeeds with all the events logged and successful, yet no image is visible in the image component:
https://i.imgur.com/L8sn6I8.png

Tried using multiple image sources

Running on Unity 2021.1.18

@mikhailb1990
Copy link

Facing the same issue - WriteAllBytes call either throws a null ref exception or shows a blank/missing sprite
Screen Shot 2021-12-08 at 11 59 52 AM

@Techie-Pi
Copy link
Contributor

I can't work on this atm, maybe @shamsdev can

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants