Problem 1468

Summary: OpenGl visualisation manager and/or G4UIManager error!
Product: Geant4 Reporter: Dan <fulea.dan>
Component: visualization/OpenGLAssignee: John.Allison
Status: RESOLVED INVALID    
Severity: normal    
Priority: P5    
Version: 9.6   
Hardware: PC   
OS: Windows   

Description Dan 2013-05-16 11:14:59 CEST
Hello, I am running 32 bit Windows 7 and Geant4.9.5. patch 02 using cmake 2.8.10 and visual studio 10. All are just fine. During last week I tried to install the
new Geant4.9.6 with patch 01. It was installed fine, I changed environmental
variables and I want to run any application (my own as well as some examples).
None of applications work!!! I was forced to go back to Geant4.9.5. patch 02!!!
The issue is opengl when trying to access visualization driver. Removing those
lines of code generates other error regarding, I think, G4UImanager. I know
there is a similar bug reported (openGl error)but no clear solution was given.
Maybe the next patch will solve it, until then, I stick to my "old" Geant4
version.

Best regards,
Dan
Comment 1 Dan 2013-05-17 08:30:48 CEST
What I did:
1. install geant4.9.6_p01
2. assign environmental variables accordingly
3. restart the computer
4. build for instance example N03 from novice examples (geant4.9.6_p01).
5. build its executable in Visual Studio
6. try to run but I receive a windows specific error message:
"
Problem Event Name:	APPCRASH
  Application Name:	exampleN03.exe
  Application Version:	0.0.0.0
  Application Timestamp:	5195cbf6
  Fault Module Name:	MSVCR100.dll
  Fault Module Version:	10.0.40219.1
  Fault Module Timestamp:	4d5f0c22
  Exception Code:	c0000005
  Exception Offset:	0000205c
  OS Version:	6.1.7600.2.0.0.256.1
  Locale ID:	1033
  Additional Information 1:	0a9e
  Additional Information 2:	0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:	0a9e
  Additional Information 4:	0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt

"

Therefore I did:
1. Reset environmental variables to old geant4.9.5_p02
2. Restart the computer
3. build for instance example N03 from novice examples (from geant4.9.5_p02).
4. build its executable in Visual Studio
5. run the exe file and everything works!

I did and undid the above several times and the conclusion is: geant 4.9.5 works for me and geant 4.9.6 does not!!
Comment 2 Dan 2013-05-17 10:26:39 CEST
Additional info:

When I let visual studio to debug the error message I get:

Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4Tree.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'C:\Windows\System32\msvcr100.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4geometry.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4global.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'C:\Windows\System32\msvcp100.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4graphics_reps.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4intercoms.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4clhep.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4modeling.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4digits_hits.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4particles.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4vis_management.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4event.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4track.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4materials.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4tracking.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4processes.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4expat.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4run.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4FR.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4GMocren.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4visHepRep.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4zlib.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4RayTracer.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4VRML.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4OpenGL.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4gl2ps.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'C:\Windows\System32\opengl32.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\glu32.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\ddraw.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\dciman32.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\setupapi.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\cfgmgr32.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\devobj.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\dwmapi.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'D:\GEANT4\geant4_9_6_p01_install\bin\G4interfaces.dll', Binary was not built with debug information.
'exampleN03.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded.
'exampleN03.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.
'exampleN03.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file
'exampleN03.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file
The thread 'Win32 Thread' (0xa84) has exited with code 0 (0x0).

and so on...
I run win 7 on 32 bit (if this helps...).
Comment 3 John.Allison 2013-05-17 15:18:35 CEST
It is not easy to see what your problem is.  We test all our releases on several platforms, including Windows (see Release Notes from the Geant4 Download web page).  It is something to do with your Windows installation or your installation of Geant4.  (I assume you are using the CMake procedure documented in the Installation Guide.)

There is nothing in your diagnostics to suggest that it is anything to do with OpenGL, the visualisation manager or the UI manager.

From our point of view, we do not think this is a bug and so I am closing this report and marking it INVALID.  This does not mean you do not have a genuine problem and I suggest you re-post your problem on the User Forum.  In that way it will reach many more people including users who might have had this problem and found a solution.

Sorry not to have been able to be more helpful.