Jump to content

Crash event


Recommended Posts



"...computer program stops functioning properly."


That's the thing about crashes, you can't expect them to say: "hey, I just crashed".


If you are basing anything on crashes then you are probably doing it wrong. If you want to make anti-crash system: there is no such thing, you would have to save everything per-tick or use direct-memory manipulation and data restoration (which I can't say if is possible in Java, maybe in deep java internals like unsafe).


I'll just note that there are ways of making sure stuff is saved when program crashes, but that is ouside Forge (and I am not that good with Java to be smartass here).

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

A wild guess - you want to auto-send crashes of your beta-testers to your repo somewhere?


I suggest reading about JVM itself. MC is running 4 threads (maybe even more, like skin downloads, not sure, never looked).

Crashing one thread (e.g running into infinite loop on Server thread) won't necessarily crash others.

Program != Thread. Lookup on google on how to deal with it, there is plenty of it, it's just not shipped as forge event, because that is not forge's job.

Thread.class itself has exception handlers of some sorts. You could e.g run background thread that will be catching errors from other threads for you and doing stuff with them.




1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.