Opened 18 years ago

Last modified 6 years ago

#42 new enhancement

Error reporting for plugin rendering API

Reported by: hn_netlabs_trac@… 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 Eugene Romanenko, 18 years ago

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

comment:2 by ktk, 17 years ago

Milestone: 1.2

Could you report that as well for 1.2?

in reply to:  2 comment:3 by guest, 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 Lewis Rosenthal, 9 years ago

Owner: Eugene Romanenko removed

comment:5 by Lewis Rosenthal, 9 years ago

Milestone: 1.41.4.0

Milestone renamed

comment:6 by Lewis Rosenthal, 8 years ago

Milestone: 1.4.0Future

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 Gregg Young, 6 years ago

Milestone: Future1.4.2
Note: See TracTickets for help on using tickets.