IMDTouchKnowledge BaseShop main store

Troubleshooting

Why WinCC 6.2 runtime pictures disappear during operation

HMI and touchscreens Published 7 min read By IMDTouch engineering team

Short answer

If the process picture blanks while alarms and messages keep logging, the picture runtime engine failed, not the alarm engine. Capture the diagnose folder before any restart, run apdiag, and search WinCC_Sys_01.log: script errors point at project scripts, and a graphics process near its 10,000-object GDI ceiling points at the picture layout. Recover with ReInitialize_PDLRT.vbs, align every server and client to the same hotfix level, and reserve reset_wincc.vbs for the outage itself.

On this page
  1. Decide the branch from what still runs
  2. Capture the diagnose folder before anything restarts
  3. Run apdiag against the live system
  4. Read WinCC_Sys_01.log for the verdict
  5. Worked example: a picture runtime process at 9,876 GDI objects
  6. Recover the picture without the restart cycle
  7. Fix the cause so it stops coming back
  8. Other ways pictures disappear
  9. Questions asked

Blank process pictures with alarms still logging is a picture engine failure, not an alarm or data failure, and on WinCC V6.2 SP2 the cause is usually a project script that throws an unhandled exception or a picture runtime process that has run out of graphics objects. The evidence is on disk while it happens: capture the diagnose folder before you stop anything, run apdiag from the uTools folder, and read the system log. A log full of script errors sends you into the project's scripts; a graphics process near its object ceiling sends you into the picture layout. Recover the picture engine in seconds with its re-initialization script instead of the deactivate-and-reboot cycle, then fix the cause: the same version, service pack and hotfix level on every WinCC machine in the chain.

Decide the branch from what still runs #

Before you touch runtime, pin the symptom down with four questions:

  • Does the picture window stay open but draw blank or grey?
  • Can the operator still navigate to another picture, and does the new one draw?
  • Do alarms and messages keep arriving while the picture is gone?
  • Does the view come back only after deactivating runtime in WinCC Explorer and restarting the PC?

If alarms and messages keep logging while the picture is gone, the picture engine — the PDLRT process — has died and the Data Manager and alarm logging are healthy. Work this article's branch: capture, read, re-initialize, fix. If the whole runtime closes or deactivates itself instead, you are on a different branch — runtime that shuts down when its alarm logging fails has its own cause and fix — and a station that never gets past startup has the separate fault described in why WinCC Runtime stalls at Graphics Runtime on start.

Capture the diagnose folder before anything restarts #

The system log cycles: once enough is written, the oldest pages are overwritten, and a restart writes fresh pages over the story you need. Deactivating a wedged runtime through WinCC Explorer takes minutes and usually ends in a PC restart, so archive the evidence first and recover second.

  1. Copy the entire folder C:\Program Files\Siemens\WinCC\diagnose to storage the runtime machine cannot overwrite.
  2. Keep WinCC_Sys_01.log and, when the first has cycled, WinCC_Sys_02.log — the system log of the script and picture engines, and where the verdict usually sits.
  3. Keep the runtime service log, which shows when the service itself stopped, restarted or failed to bring a channel up.
  4. Keep the Data Manager traces, which show tag failures and client-to-server connection faults.
  5. Then run apdiag, next section, so its report lands in the same archive with the same timestamps.

Run apdiag against the live system #

apdiag.exe ships with WinCC and sits in the uTools folder of the installation, so on a standard setup the path is C:\Program Files\Siemens\WinCC\uTools\apdiag.exe. Start it from a command prompt with administrator rights while runtime is still running, let it write its report into the diagnose folder, then read it for three things:

  • COM and OLE automation objects that were created and never released — the signature of a bad OLE automation caller in a script.
  • The GDI object count of each runtime process — compare it against the pool ceiling in the worked example below.
  • The project path the runtime actually resolved — a UNC share or a mapped drive in the project path amplifies Data Manager faults, so record what the machine is really using.

Read WinCC_Sys_01.log for the verdict #

Open WinCC_Sys_01.log in a text editor and search case-insensitively for script, exception, PDLRT and 0x. Read the lines around the timestamps when pictures vanished rather than the whole file, and sort what you find into one of these branches:

What the log shows around the failure Branch What fixes it
Repeated lines naming a C script or VB action together with an error code Script engine Guard the failing script so it cannot throw into the picture thread
PDLRT entries at the moment pictures blank Picture engine desync Re-initialize the picture engine, then find the trigger script
Connection or server-not-reachable entries from the Data Manager Version mismatch or project path Align hotfix levels across machines; check network paths
No script errors, but a graphics process near its object ceiling GDI exhaustion Cut simultaneously open pictures and embedded controls

On machines that fail this way the log is often full of script errors. That result narrows the fix to the project's own scripts, which you can open, read and guard — a fix you own end to end.

Worked example: a picture runtime process at 9,876 GDI objects #

Two inputs decide this branch. The limit belongs to Windows, not to WinCC: by default every process may hold 10,000 GDI objects — the pens, brushes, fonts and device contexts a window needs to draw — and allocations beyond that fail. The reading is an illustrative apdiag value, not a measurement from a particular machine: the picture runtime process holds 9,876 GDI objects at steady state.

The rule: every open picture, embedded control and pop-up allocates from that one pool, and when the picture engine cannot allocate, the picture fails to draw while the parts of runtime that hold no graphics — alarm logging, archiving — continue unchanged.

The arithmetic: headroom = 10,000 − 9,876 = 124 objects. Consumption = 9,876 ÷ 10,000 = 98.76 %.

The result: the process sits 124 objects — 1.24 % of its pool — from the ceiling, so the next picture window or control is one allocation away from another blank screen.

The decision: treat a steady-state count above 9,000 objects, meaning under 10 % headroom, as the exhaustion branch. Cut the number of pictures held open at once, remove embedded ActiveX and Microsoft controls you do not use, close permanent pop-ups, and re-measure after a shift. A count well under half the pool sends you back to the script branch.

Recover the picture without the restart cycle #

The deactivate-and-reboot cycle costs minutes per event and overwrites the evidence. The VBS recovery scripts for this failure mode bring the picture engine back in seconds. Run them in this order:

  1. ReInitialize_PDLRT.vbs — tears down and re-initializes the picture engine and leaves alarm logging and the Data Manager running. First choice whenever alarms are still live.
  2. ReStart_Pdlrt.vbs — the alternative picture-engine restart; use it when the first script is not available at your service pack level.
  3. reset_wincc.vbs — entered from the Windows Run dialog, it stops WinCC runtime and closes WinCC Explorer. The fast way out of an outage, but still an outage, and never a daily remedy on a scheduler.

One safety note belongs here: re-initializing blanks the operator's view for a moment on a machine that is running a process, so pick a moment when a dark station is safe, or keep a second person on the process while you do it. None of these scripts fixes why the engine wedged — the archive you captured decides that.

Fix the cause so it stops coming back #

  • Put every WinCC machine in the chain on the same version, service pack and hotfix level, hotfix included. A server and client at different levels produce the same blank-picture symptom as an unpatched install, and the Siemens support portal keeps the V6.2 update chain under entry ID 10805585. The HF8 readme lists a runtime crash fix, and yet a station at SP2 with HF8 can still blank its pictures when project scripts are the trigger — treat the hotfix as necessary, not sufficient.
  • Guard the scripts. Every C script and VB action that can meet a null tag, a failed OLE call or a division by zero must fail gracefully instead of throwing into the picture thread.
  • If the count was GDI-bound, run fewer pictures open at once, drop embedded controls you do not use, and kill permanent pop-ups.
  • If the Data Manager branch showed, build a clean copy with the WinCC Project Duplicator and migrate to it — a rebuilt project database clears the corrupted state a wedged copy carries.
  • Record what the project path really is on each machine. A project on a local disk behaves differently under load than one on a UNC share, and a shared-project setup needs the same level on every machine that opens it.

When the machine itself is the problem — a Windows XP-era PC with no patches left — the lasting fix is to move the project, and the steps for that move are in deploying a WinCC 6.2 project on a separate runtime PC. When you spec the station that takes the old tower's place at the line, an industrial panel PC is the machine that replaces it.

Other ways pictures disappear #

Blank pictures in a running runtime are one fault. Pictures that drop out of the picture tree after a compile live on the engineering station instead, and pictures disappearing from the picture tree after a compile is its own article with its own fix. Keep the two apart: this article's branch is decided by alarms that keep logging and a window that stays grey, read from the diagnose folder — not by the picture tree.

Questions asked

Does the Ctrl+Alt+Del trick that brings a lost picture back fix the fault?

No. Opening and closing the Windows security screen forces a desktop repaint, so a stalled picture window can redraw itself and the trick looks like a cure. It changes nothing in WinCC: the failing script or the nearly exhausted graphics pool stays exactly as it was, and the picture blanks again on the next trigger. Use it only to keep an operator working while you capture the diagnose folder, then find the real cause.

Can I schedule reset_wincc.vbs to run every night so the pictures never stay blank?

You can, and it will paper over the symptom, but every scheduled run is a planned outage of the operator station, and the fault still fires between runs. Nightly resets also destroy the evidence: the system log cycles, so the diagnose folder no longer shows what happened during the shift. Run the script only during a live outage, capture the folder first, and fix the cause the log points at.

What does the WinCC Project Duplicator do for this fault?

It builds a clean copy of the project and rebuilds its Data Manager files, which clears corrupted data manager state that can destabilize runtime. It helps when the syslog shows connection, tag or package faults rather than script errors. When the log is full of script errors instead, the Duplicator changes nothing, because the fault travels in the project's scripts, which the copy carries over unchanged.

Is Windows XP SP2 still a platform to run WinCC V6.2 on?

It was when V6.2 shipped, and both the operating system and this WinCC version are now long past end of support, so the hotfix chain that exists today is all there will ever be. Treat the machine as a migration candidate: redeploy the project on a current platform while the diagnose data still tells you which scripts need rework.

How do I check the hotfix level of a WinCC machine?

Ask each machine directly: the version, service pack and hotfix numbers WinCC reports about its own installation must match across a server and its clients, hotfix included. A mismatch usually announces itself first in the client's syslog as Data Manager connection faults, so the log often shows it before you check version information. Write the levels down for every machine on the line so the next engineer does not rediscover them from scratch.

Keep reading

  • How-to

    Show operator changes in a WinCC V7.0 Runtime audit screen

    WinCC V7.0 shows operator changes to ordinary tags with no extra ActiveX control: copy the table view from the system alarm operation page into a PDL and enable the Operator message property on each tag that must report. Login and logout appear once system messages are on in Alarm Logging. Only User Archive changes need the Audit Viewer 7.2 add-on and its configured audit database.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC Logging for Runtime Advanced asks for a license

    The message means the runtime computer holds no valid option key for historical logging; the base WinCC Runtime Advanced license never covers it. Order WinCC Logging for Runtime Advanced (6AV2107-0GA00-0BB0), one per operator station, and install or transfer the key with Automation License Manager; keys from generators or copied folders do not clear it.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC Runtime Deactivates When the Alarm Report Fails

    Runtime deactivates because the copied project's Alarm Logging message sequence report job has no valid printer or file output on the new PC, and the stored computer name no longer matches. A missing MPI cable does not shut Runtime down. Fix the print job, set a default printer, correct the computer entry, and run Project Migrator on a copy when moving from 6.0 to 7.0.

    HMI and touchscreens

Open a legacy Vijeo Designer project in version 6.2