Report Preview function causes report program to crash without error message

Technote (troubleshooting)


Problem(Abstract)

A Genero report containing a call to the Preview function which runs correctly in the Studio, crashes without visible error message when run from a properly installed Desktop Client on Linux.

Symptom

Report program utilizing Preview function crashes without visible error message when run from GDC. Removing Preview call prevents crash.


Cause

Genero does not consider the Report libraries to be a part of the Runtime system, so a envgenero file which sets the environmental variables before program execution does not set FGLLDPATH, which is required for Report functions. The Studio program sets FGLLDPATH and so the problem is not seen there.

Environment

Linux

Diagnosing the problem

Edit the program shortcut so that it starts with /bin/bash. This will keep a window open where an error message can be seen. If a library is not found, do "echo $FGLLDPATH" and see if it's set, and what directories it includes. Update if it doesn't include $GREDIR/lib and run the program from the window command line to verify error.

Resolving the problem

The solution is to set FGLLDPATH to $GREDIR/lib in the environment before the report program is run. There are a couple of ways this can be done.



1. In the program shortcut, include "FGLLDPATH=$FGLLDPATH:$GREDIR/lib; export FGLLDPATH"

This is the most robust method.

2. Edit $GENERODIR/envgenero and define the variable there the same way at the end of the file: "FGLLDPATH=$FGLLDPATH:$GREDIR/lib; export FGLLDPATH"

This is the most general solution but has the one drawback that if Genero is upgraded in place, this file will be overwritten. This can be avoided by installing new versions of Genero in their own directories.

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Informix Tools
Informix Genero

Software version:

2.4

Operating system(s):

Linux, Linux/x86

Reference #:

1607906

Modified date:

2012-12-10

Translate my page

Machine Translation

Content navigation