Skip to content

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

Open

Description

@shubhank008

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

Activity

  1. shubhank008 commented on Nov 11, 2021

    @shubhank008
    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

  2. mikhailb1990 commented on Dec 8, 2021

    @mikhailb1990

    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

  3. Techie-Pi commented on Dec 17, 2021

    @Techie-Pi
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions