Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Crash when reading past the end of the persistant save file

    Bug Reporting (FUZE 4 Nintendo Switch)
    2
    2
    140
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Gothon
      Gothon F last edited by

      Create a new project (with no preexisting save file) and the following code will crash Fuze.

      var h = open()
      seek(h, 1)
      str s = read(h, 1)
      close(h)
      

      This seems to happen whenever you seek to a position past the end of the file and try to read from there.

      1 Reply Last reply Reply Quote 2
      • Willpowered
        Willpowered Fuze Team last edited by

        Thanks for the report and sample code! We'll definitely look into this one for the next patch.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post