> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/datran/datran-vi-scada/datran-trending/troubleshooting/crashes-or-freezes.md).

# Trending crashes, freezes or a plot disappears

DATRAN Trending closes with an error, the Please wait box stays open, plots close by themselves, or a plot window seems to vanish.

Find what you're seeing below.

{% hint style="info" %}
**Applies to:** DATRAN Trending V5.x.
{% endhint %}

## Trending closes with an error

* **Write down the exact error message,** and pass this on to QTech Data Systems as soon as possible so that the issue can be investigated. Include the error number that displays on the screen if there is one. In V5.04 the Eureka log was changed to just send a screen grab of just the DATRAN Trending window; previously it sent a screen grab of the users' desktop.
* **If it crashes from the moment it's installed,** there could be an installation problem. Fix this by uninstalling DATRAN Trending (using Start -> Settings -> Control Panel -> Add or Remove Programs). The installation must be performed by someone with administrative (domain) privileges.
* **If it won't start at all after installing,** there is most likely a problem with the connection string used to connect to the DATRAN database. Ensure that the DATRAN database exists on the computer specified. Ensure that this is the DATRAN database which DATRAN logs daily information too. See [Trending won't start or says it isn't a valid DATRAN database](https://help.qtech.co.nz/datran/datran-vi-scada/datran-trending/troubleshooting/not-a-valid-database.md).
* **If it crashes now and then,** it could be a conflict with another application. Try shutting down all other applications and see if the problem reoccurs.

## The "Please wait" box doesn't close

The **Please wait** box should only appear while the data for a plot is actually being retrieved and drawn. Sometimes if an error occurs in DATRAN Trending this form does not disappear. This is definitely an error. Please report this to QTech Data Systems Ltd.

**Cancel plot update** allows the user to cancel the process of retrieving data from the DATRAN database. Use this button if you think it is taking too long to get the data. Reduce the data load amount for a faster plot update (**Options > General Settings**). The more pens/points you select and the higher the data load amount, the longer it will take to retrieve the data for the new plot. The smaller the pen width, the faster this pen will be drawn. If draw speed is important, set the width to 1.

## All plots closed by themselves

This is for events such as when the Microsoft SQL Server is stopped. This can happen when the DATRAN database is detached for back up. Once the application detects a problem with the database connection, it will:

1. Close all the plots that are currently opened. Note that any changes made to a plot cannot be saved and might be lost due to the fact that the SQL Server has stopped.
2. Remember the plot/s that was last opened.
3. Keep trying to reconnect to the database. The interval between attempts is 15 seconds at the moment and is graphically presented by the progress bar.
4. Reopen the plots that were previously closed.

You can force an attempt to re-establish database connection by clicking **Attempt Now**. You can choose to abort any future attempts to re-establish database connection by clicking **Cancel**. You cannot reopen this window once it is closed. The status bar provides more details about what is the current task being executed or what was the result: Closing All Plots..., All Plots Closed, Reconnecting..., Counting Down to Next Attempt, Reconnected Successfully, Reconnection Failed.

## A plot window has disappeared

If the plot seems to have disappeared it could just have been minimized. Check in the bottom left hand corner for any edges of plots and click the maximize button to bring the plot back to normal view. The **Window** menu lists all the open plots to easily navigate between them. **Tile** tiles the currently opened plots across the screen. **Cascade** scatters the current open plots across the screen.

## Errors after someone used another version

When a new version of Trending is run for the first time, it will automatically try to update the database if necessary to add/remove columns from the database tables and stored procedures. Running a version of Trending v5.01 or earlier at the same time as a copy of v5.03 Trending is running will cause error messages to be displayed by the version of Trending that was started first. Any remaining installations of v5.01 or earlier must be upgraded if sharing the same database. See [Upgrade from V5.01 or earlier](https://help.qtech.co.nz/datran/datran-vi-scada/datran-trending/install.md).

## Still not working? Contact QTech

Email <techsupport@qtech.co.nz> with your Trending version, the exact error message and number, what you were doing when it happened, and what you've tried.
