Project

General

Profile

Feature #2072

Gracefully exit to Home on fatal error in a game (e.g., DED/resource error)

Added by rhargrave over 9 years ago. Updated almost 5 years ago.

Status:
New
Priority:
High
Assignee:
-
Category:
User experience
Target version:
Start date:
2015-05-27
% Done:

0%

Tags:

Description

There are many conditions that can cause plugins to crash. While none of these are actually bugs (but rather may be caused by user error -- e.g. loading definitions with missing data, etc...), the plugin experience an error will cause the entire engine to gracefully exit.

While this behaviour can be expected and is consistent when running the specific plugin from the command line via a launch parameter, it is not a consistent user experience when the user launches the plugin from RingZero, especially now that Snowberry is slated for removal in favor of an entirely native launcher.

Where as the behaviour may have been expected when launching from snowberry (for the same reason as it is when specifying a plugin at launch time), it can be a potential source of confusion or frustration for the user -- especially if they are trying to make an addon work.

I would propose that, in the even of a recoverable plugin error that, should the plugin wish to halt that it should gracefully clean up those resources that it needs to, and then notify the Doomsday platform. Upon notification by the plugin, the platform could then prepare to return the to launcher (RingZero) and also present a bug reporting workflow or dialogue for the user to complete should they believe the error to have been caused by the plugin and not an external item. In cases that the source of the error can be traced to an external item -- such as a WAD or addon package, it could be beneficial to display a formatted list of those items to the user so that they may disable them (if possible).


Related issues

Related to Feature #1600: Drop SnowberryClosed2014-04-192014-04-19

History

#1 Updated by rhargrave over 9 years ago

  • Parent task deleted (#1684)

#2 Updated by rhargrave over 9 years ago

#3 Updated by skyjake over 9 years ago

  • Subject changed from Gracefully exit to RingZero when a plugin experiences an error condition. to Gracefully exit to RingZero when a plugin experiences an error condition

#4 Updated by skyjake over 9 years ago

In the wiki there is actually an old proposal about this: http://dengine.net/dew/index.php?title=Reduce_use_of_fatal_errors

#5 Updated by rhargrave over 9 years ago

That's an interesting proposal and gave me some thoughts.

Perhaps we could have most errors placed in the top-left warning list. If an error recurs constantly, it would be ignored after so many times (in the case of an error caused by the map or resources that occurs every time a sprite advances to the next frame).

#6 Updated by skyjake almost 5 years ago

  • Subject changed from Gracefully exit to RingZero when a plugin experiences an error condition to Gracefully exit to Home when a plugin experiences an error condition (e.g., DED/resource error)
  • Priority changed from Normal to High
  • Target version set to Architecture

#7 Updated by skyjake almost 5 years ago

  • Subject changed from Gracefully exit to Home when a plugin experiences an error condition (e.g., DED/resource error) to Gracefully exit to Home on fatal error in a game (e.g., DED/resource error)

Also available in: Atom PDF