IBM Support

Report Preview function causes report program to crash without error message

Technote (troubleshooting)


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.


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


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.



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.

Document information

More support for: Informix Tools
Informix Genero

Software version: 2.4

Operating system(s): Linux

Reference #: 1607906

Modified date: 26 June 2014