Skip to content

Bug Report: pressing f5 on eggnog crashes the game #5313

@lunacynne

Description

@lunacynne

Issue Checklist

  • I have read the Contributing Guide
  • I have checked the Issues/Discussions pages to see if my issue has already been reported
  • I have properly titled my issue

Platform

Windows (Downloadable Build)

Browser

None

Mobile Device Model

No response

Mobile OS Version

No response

Version

v0.6.4

Description (include any images, videos, errors, or crash logs)

null object reference isnt defeated quite yet

based on the stack trace it looks like two separate issues

when f5 is pressed, during cleanup PlayState.instance becomes null, but for whatever reason the update function runs one last time and so the script tries to access PlayState.instance.isInCutscene

...and the resulting error popup causes onFocusLost to run, which tries to update discord rpc with buildDiscordRPCState, which tries to access PlayState.instance.currentDifficulty and thus crashes the game because its null

Image Image

Steps to Reproduce

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: duplicateIssue or PR is redundant to another.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions