Opened 18 years ago
Last modified 6 years ago
#42 new enhancement
Error reporting for plugin rendering API
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | major | Milestone: | 1.4.2 |
Component: | Lucide Core | Version: | 1.0 Beta 1.1 |
Keywords: | Cc: |
Description
When rendering a document page certain errors could arise in the plugin (e.g. out-of-memory, file no longer accessible, ...).
It is so far not possible for a plugin to report these errors to the Lucide core. Thus the user has no idea what went wrong. He/she probably just sees an empty page (or crap).
Proposal: Apply the same error reporting scheme used for loadFile() to renderToPixbuf() and renderToPS(). (boolean returned, error message via SOMMalloc)
Change History (7)
comment:1 by , 18 years ago
comment:3 by , 17 years ago
Replying to ktk:
Could you report that as well for 1.2?
Yes. The error message passing in the plugin API was implemented long ago but as already noted by eros2, the error message is so far simply thrown away and not shown to the user.
A possible presentation could be either a simple message box or, more sophisticated, a status bar.
GBM plugin is using the error reporting from the beginning. Don't know if lupdf, lujpeg or ludjvu are ready as well.
comment:4 by , 9 years ago
Owner: | removed |
---|
comment:6 by , 8 years ago
Milestone: | 1.4.0 → Future |
---|
Related to #311
Need to add guidelines for plugin developers to ensure that they are using this once we start presenting error messages to users.
See:
comment:7 by , 6 years ago
Milestone: | Future → 1.4.2 |
---|
Done in changeset [155], but render errors isn't disaplayed yet.