Ticket #42 (new enhancement)

Opened 2 years ago

Last modified 6 months ago

Error reporting for plugin rendering API

Reported by: hn_netlabs_trac@… Owned by: eros2
Priority: major Milestone: 1.3
Component: Lucide Core Version: 1.0 Beta 1.1
Keywords: Cc:
Blocking: Blocked By:

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

  Changed 23 months ago by eros2

Done in changeset [155], but render errors isn't disaplayed yet.

follow-up: ↓ 3   Changed 6 months ago by ktk

  • milestone set to 1.2

Could you report that as well for 1.2?

in reply to: ↑ 2   Changed 6 months ago by guest

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.

Note: See TracTickets for help on using tickets.