[fixed] Alt+TAB FullScreen Resolution Change BUG

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
ilovedessy
Posts: 16
Joined: Tue Mar 16, 2010 6:17 pm
Location: BULGARIA
Contact:

[fixed] Alt+TAB FullScreen Resolution Change BUG

Post by ilovedessy »

!!! Update 2.4.2010
BUG with Irr 1.7.1 and DirectX 8.1 & 9 Only (All is ok with Irr 1.7.1 and OpenGL)
System Information:
  • OS Name Microsoft Windows 7 Ultimate (32-bit)
    Version 6.1.7600 Build 7600
    Processor AMD Athlon(tm) 64 X2 Dual Core Processor 5600+, 2800 Mhz, 2 Core(s), 2 Logical Processor(s)
    Total Physical Memory 3,00 GB

    [Display]
    Name NVIDIA GeForce 9800 GT
    Adapter RAM 1,00 GB (1 073 741 824 bytes)
    Driver Version 8.17.11.9562
    Resolution 1680 x 1050 x 120 hertz
    Bits/Pixel 32
Start 20.ManagedLights.exe in 640x480 x32 FullScreen
When i switch (Alt+TAB) few times between App and Desktop ....
(in irr 1.7.1) it change app resolution to desktop resolution....
(in irr 1.6.1 All is OK)

20.ManagedLights.exe in Irr 1.7.1 SDK
Please select the driver you want:
(a) OpenGL 1.x/2.x/3.x
(b) Direct3D 9.0c
(c) Direct3D 8.1
(d) Burning's Video
(e) Software Renderer
(f) NullDriver
Irrlicht Engine version 1.7.1
Professional (Build 7600)
Using renderer: Direct3D 9.0
NVIDIA GeForce 9800 GT nvd3dum.dll 8.17.11.9562
Loaded texture: D:/New folder/Irrlicht/irrlicht-1.7.1/irrlicht-1.7.1/irrlicht-1.
7.1/media/particle.bmp
Resizing window (640 480)
Resetting D3D9 device.
Present failed: DIRECT3D9 device lost.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (160 27)
Resetting D3D9 device.
Resetting failed due to device lost.
Resetting D3D9 device.
Resetting failed due to invalid call: You need to release some more surfaces.
DIRECT3D9 end scene failed.
Resizing window (1680 1050)
Resetting D3D9 device.
Present failed: DIRECT3D9 device lost.
Resizing window (1680 1050)
Resetting D3D9 device.
Problem!!!!
Irr 1.7.1 change res from 640x480 -> 1680x1050 (Desktop Resolution)

All in 1.6.1 is OK. Resolution is 640x480!!!

20.ManagedLights.exe in Irr 1.6.1 SDK
Please select the driver you want for this example:
(a) Direct3D 9.0c
(b) Direct3D 8.1
(c) OpenGL 1.5
(d) Software Renderer
(e) Burning's Software Renderer
(f) NullDevice
(otherKey) exit

Irrlicht Engine version 1.6.1
Professional (Build 7600)
Using renderer: Direct3D 9.0
NVIDIA GeForce 9800 GT nvd3dum.dll 8.17.11.9562
Loaded texture: D:/New folder/Irrlicht/irrlicht-1.6.1/irrlicht-1.6.1/media/parti
cle.bmp
Resizing window (640 480)
Resetting D3D9 device.
Present failed: DIRECT3D9 device lost.
Resizing window (640 480)
Resetting D3D9 device.
Present failed: DIRECT3D9 device lost.
Resizing window (640 480)
Resetting D3D9 device.
Present failed: DIRECT3D9 device lost.
Resizing window (640 480)
Resetting D3D9 device.
All in 1.6.1 is OK. Resolution is 640x480!!!
Last edited by ilovedessy on Fri Apr 02, 2010 5:35 am, edited 1 time in total.
Steel Style
Posts: 168
Joined: Sun Feb 04, 2007 3:30 pm
Location: France

Post by Steel Style »

I can't reproduce it on windows 7 professional.
But for the resizing windows (160 27) I think it's a normal windows 7 behaviour ( the app switcher, when you hold alt+tab, use to resize your window).
ilovedessy
Posts: 16
Joined: Tue Mar 16, 2010 6:17 pm
Location: BULGARIA
Contact:

Post by ilovedessy »

Exe for TEST
Irr 1.7.1
http://www.kaiowas.biz/20.ManagedLights_irr_1.7.1.rar

Irr 1.6.1
http://www.kaiowas.biz/20.ManagedLights_irr_1.6.1.rar

The result is same for Win XP Home
  • OS Name Microsoft Windows XP Home Edition
    Version 5.1.2600 Service Pack 3 Build 2600
    Processor x86 Family 15 Model 2 Stepping 4 GenuineIntel ~1799 Mhz
    Total Physical Memory 1 023,42 MB

    [Display]
    Name Mobility Radeon
    Adapter Type Mobility Radeon (LY), ATI Technologies Inc. compatible
    Adapter RAM 32,00 MB (33 554 432 bytes)
    Installed Drivers ati2dvag.dll
    Driver Version 6.13.10.6015
    Resolution 1024 x 768 x 100 hertz
    Bits/Pixel 32
Irr 1.7.1 - PROBLEM
Please select the driver you want:
(a) OpenGL 1.x/2.x/3.x
(b) Direct3D 9.0c
(c) Direct3D 8.1
(d) Burning's Video
(e) Software Renderer
(f) NullDriver
Irrlicht Engine version 1.7.1
Microsoft Windows XP Personal Service Pack 3 (Build 2600)
Using renderer: Direct3D 9.0
Mobility Radeon ati2dvag.dll 6.13.10.6015
Loaded texture: N:/Nick_Documents/_Desktop/20.ManagedLights_irr_1.7.1/particle.bmp
Resizing window (640 480)
Resetting D3D9 device.
Present failed: DIRECT3D9 device lost.
Resizing window (640 480)
Resetting D3D9 device.
Present failed: DIRECT3D9 device lost.
Resizing window (640 480)
Resetting D3D9 device.
Present failed: DIRECT3D9 device lost.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (160 29)
Resetting D3D9 device.
Resetting failed due to device lost.
Resetting D3D9 device.
Resetting failed due to invalid call: You need to release some more surfaces.
DIRECT3D9 end scene failed.
Resizing window (1024 768)
Resetting D3D9 device.
Irr 1.6.1 - NO Problem
Please select the driver you want for this example:
(a) Direct3D 9.0c
(b) Direct3D 8.1
(c) OpenGL 1.5
(d) Software Renderer
(e) Burning's Software Renderer
(f) NullDevice
(otherKey) exit

Irrlicht Engine version 1.6.1
Microsoft Windows XP Personal Service Pack 3 (Build 2600)
Using renderer: Direct3D 9.0
Mobility Radeon ati2dvag.dll 6.13.10.6015
Loaded texture: N:/Nick_Documents/_Desktop/20.ManagedLights_irr_1.6.1/particle.bmp
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
CuteAlien
Admin
Posts: 9633
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

I tried to reproduce it on XP a few days ago... but then had to reboot XP after a few experiments because it did hang and I couldn't get out of fullscreen. So I had a problem - but don't know yet if it is the same one (and didn't time for further tests since then).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yep, I also had a hang instead of wrong resizing. But after a while the system catched up. Didn't get any insight with the debugger, though, as I had to kill it.
ilovedessy
Posts: 16
Joined: Tue Mar 16, 2010 6:17 pm
Location: BULGARIA
Contact:

Post by ilovedessy »

The SAME error with Win XP Pro
  • OS Name Microsoft Windows XP Professional
    Version 5.1.2600 Service Pack 3 Build 2600
    Total Physical Memory 4 096,00 MB

    [Display]
    Item Value
    Name Mobile Intel(R) 4 Series Express Chipset Family
    Adapter Type Mobile Intel(R) 4 Series Express Chipset Family, Intel Corporation compatible
    Adapter RAM 256,00 MB (268 435 456 bytes)
    Resolution 1280 x 800 x 60 hertz
    Bits/Pixel 32
Irr 1.7.1 - PROBLEM
Please select the driver you want:
(a) OpenGL 1.x/2.x/3.x
(b) Direct3D 9.0c
(c) Direct3D 8.1
(d) Burning's Video
(e) Software Renderer
(f) NullDriver
Irrlicht Engine version 1.7.1
Microsoft Windows XP Professional Service Pack 3 (Build 2600)
Using renderer: Direct3D 9.0
Mobile Intel(R) 4 Series Express Chipset Family igxprd32.dll 6.14.10.5009
Loaded texture: C:/Documents and Settings/vtu_user/Desktop/shared/20.ManagedLigh
ts_irr_1.7.1/particle.bmp
Resizing window (640 480)
Resetting D3D9 device.
Present failed: DIRECT3D9 device lost.
Resizing window (640 480)
Resetting D3D9 device.
Present failed: DIRECT3D9 device lost.
Resizing window (640 480)
Resetting D3D9 device.
Present failed: DIRECT3D9 device lost.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (160 31)
Resetting D3D9 device.
Resetting failed due to device lost.
Resetting D3D9 device.
Resetting failed due to invalid call: You need to release some more surfaces.
DIRECT3D9 end scene failed.
Resizing window (1280 800)
Resetting D3D9 device.
Irr 1.6.1 - NO problem
Please select the driver you want for this example:
(a) Direct3D 9.0c
(b) Direct3D 8.1
(c) OpenGL 1.5
(d) Software Renderer
(e) Burning's Software Renderer
(f) NullDevice
(otherKey) exit

Irrlicht Engine version 1.6.1
Microsoft Windows XP Professional Service Pack 3 (Build 2600)
Using renderer: Direct3D 9.0
Mobile Intel(R) 4 Series Express Chipset Family igxprd32.dll 6.14.10.5009
Loaded texture: C:/Documents and Settings/vtu_user/Desktop/shared/20.ManagedLigh
ts_irr_1.6.1/particle.bmp
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
ilovedessy
Posts: 16
Joined: Tue Mar 16, 2010 6:17 pm
Location: BULGARIA
Contact:

Post by ilovedessy »

Above results are with compiled EXE!

In MS VC++ 2008 Express

Irr 1.7.1 - exception
'20.ManagedLights.exe': Loaded 'D:\New folder\Irrlicht\irrlicht-1.7.1\irrlicht-1.7.1\irrlicht-1.7.1\bin\Win32-VisualStudio\20.ManagedLights.exe', Binary was not built with debug information.
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\ntdll.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\kernel32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\KernelBase.dll'
'20.ManagedLights.exe': Loaded 'D:\New folder\Irrlicht\irrlicht-1.7.1\irrlicht-1.7.1\irrlicht-1.7.1\bin\Win32-VisualStudio\Irrlicht.dll', Binary was not built with debug information.
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\user32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\gdi32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\lpk.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\usp10.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\msvcrt.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\advapi32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\sechost.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\rpcrt4.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\opengl32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\glu32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\ddraw.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\dciman32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\setupapi.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\cfgmgr32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\oleaut32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\ole32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\devobj.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\dwmapi.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\winmm.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\apphelp.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\sspicli.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\shell32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\shlwapi.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\userenv.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\profapi.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\winspool.drv'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\mpr.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\imm32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\msctf.dll'
Irrlicht Engine version 1.7.1
Professional (Build 7600)
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\uxtheme.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\cryptbase.dll'
Using renderer: Direct3D 9.0
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\d3d9.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\version.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\d3d8thk.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\nvd3dum.dll'
NVIDIA GeForce 9800 GT nvd3dum.dll 8.17.11.9562
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\powrprof.dll'
'20.ManagedLights.exe': Loaded 'C:\Program Files\NVIDIA Corporation\3D Vision\nvSCPAPI.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\nvapi.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\wintrust.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\crypt32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\msasn1.dll'
Loaded texture: d:/New folder/Irrlicht/irrlicht-1.7.1/irrlicht-1.7.1/irrlicht-1.7.1/examples/20.ManagedLights/particle.bmp
Resizing window (640 480)
Resetting D3D9 device.
'20.ManagedLights.exe': Loaded 'D:\New folder\_CapsUnlock\CapsUnlock\CapsUnlock.dll', Binary was not built with debug information.
Present failed: DIRECT3D9 device lost.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (160 27)
Resetting D3D9 device.
First-chance exception at 0x100635d3 in 20.ManagedLights.exe: 0xC0000005: Access violation reading location 0xfeeeff1e.
Unhandled exception at 0x100635d3 in 20.ManagedLights.exe: 0xC0000005: Access violation reading location 0xfeeeff1e.
Irr 1.6.1 - NO exception. NO Problem
'20.ManagedLights.exe': Loaded 'D:\New folder\Irrlicht\irrlicht-1.6.1\irrlicht-1.6.1\bin\Win32-VisualStudio\20.ManagedLights.exe', Symbols loaded.
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\ntdll.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\kernel32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\KernelBase.dll'
'20.ManagedLights.exe': Loaded 'D:\New folder\Irrlicht\irrlicht-1.6.1\irrlicht-1.6.1\bin\Win32-VisualStudio\Irrlicht.dll', Binary was not built with debug information.
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\user32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\gdi32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\lpk.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\usp10.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\msvcrt.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\advapi32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\sechost.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\rpcrt4.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\opengl32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\glu32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\ddraw.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\dciman32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\setupapi.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\cfgmgr32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\oleaut32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\ole32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\devobj.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\dwmapi.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\winmm.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\apphelp.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\sspicli.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\shell32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\shlwapi.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\userenv.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\profapi.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\winspool.drv'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\mpr.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\imm32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\msctf.dll'
Irrlicht Engine version 1.6.1
Professional (Build 7600)
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\uxtheme.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\cryptbase.dll'
Using renderer: Direct3D 9.0
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\d3d9.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\version.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\d3d8thk.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\nvd3dum.dll'
NVIDIA GeForce 9800 GT nvd3dum.dll 8.17.11.9562
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\powrprof.dll'
'20.ManagedLights.exe': Loaded 'C:\Program Files\NVIDIA Corporation\3D Vision\nvSCPAPI.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\nvapi.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\wintrust.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\crypt32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\msasn1.dll'
Loaded texture: d:/New folder/Irrlicht/irrlicht-1.6.1/irrlicht-1.6.1/examples/20.ManagedLights/particle.bmp
Resizing window (640 480)
Resetting D3D9 device.
'20.ManagedLights.exe': Loaded 'D:\New folder\_CapsUnlock\CapsUnlock\CapsUnlock.dll', Binary was not built with debug information.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
The thread 'Win32 Thread' (0x15b4) has exited with code 0 (0x0).
Resizing window (640 480)
Resetting D3D9 device.
Resizing window (640 480)
Resetting D3D9 device.
ilovedessy
Posts: 16
Joined: Tue Mar 16, 2010 6:17 pm
Location: BULGARIA
Contact:

DX Only

Post by ilovedessy »

BUG with Irr 1.7.1 and DirectX 8.1 & 9 Only (All is ok with Irr 1.7.1 and OpenGL)
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post by Dorth »

Seeing as results vary on various computers, maybe post your dxdiag?
ilovedessy
Posts: 16
Joined: Tue Mar 16, 2010 6:17 pm
Location: BULGARIA
Contact:

Post by ilovedessy »

a little difference with Irr 1.7.1 and DX 8.1

BUG with NO exception in VC++ 2008
Please select the driver you want:
(a) OpenGL 1.x/2.x/3.x
(b) Direct3D 9.0c
(c) Direct3D 8.1
(d) Burning's Video
(e) Software Renderer
(f) NullDriver
c
Irrlicht Engine version 1.7.1
Professional (Build 7600)
Using renderer: Direct3D 8.1
NVIDIA GeForce 9800 GT nvd3dum.dll 8.17.11.9562
Loaded texture: d:/New folder/Irrlicht/irrlicht-1.7.1/irrlicht-1.7.1/irrlicht-1.
7.1/examples/20.ManagedLights/particle.bmp
Resizing window (640 480)
Resetting D3D8 device.
DIRECT3D8 device lost.
Resizing window (640 480)
Resetting D3D8 device.
Resizing window (160 27)
Resetting D3D8 device.
Resetting failed due to device lost.
Resetting D3D8 device.
Resizing window (1680 1050)
Resetting D3D8 device.
Resizing window (160 27)
Resetting D3D8 device.
Resetting failed due to device lost.
Resetting D3D8 device.
Resizing window (1680 1050)
Resetting D3D8 device.
Resizing window (160 27)
Resetting D3D8 device.
Resetting failed due to device lost.
Resetting D3D8 device.
Resizing window (1680 1050)
Resetting D3D8 device.
Resizing window (160 27)
Resetting D3D8 device.
Resetting failed due to device lost.
'20.ManagedLights.exe': Loaded 'D:\New folder\Irrlicht\irrlicht-1.7.1\irrlicht-1.7.1\irrlicht-1.7.1\bin\Win32-VisualStudio\20.ManagedLights.exe', Symbols loaded.
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\ntdll.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\kernel32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\KernelBase.dll'
'20.ManagedLights.exe': Loaded 'D:\New folder\Irrlicht\irrlicht-1.7.1\irrlicht-1.7.1\irrlicht-1.7.1\bin\Win32-VisualStudio\Irrlicht.dll', Binary was not built with debug information.
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\user32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\gdi32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\lpk.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\usp10.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\msvcrt.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\advapi32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\sechost.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\rpcrt4.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\opengl32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\glu32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\ddraw.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\dciman32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\setupapi.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\cfgmgr32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\oleaut32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\ole32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\devobj.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\dwmapi.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\winmm.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\apphelp.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\sspicli.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\shell32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\shlwapi.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\userenv.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\profapi.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\winspool.drv'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\mpr.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\imm32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\msctf.dll'
Irrlicht Engine version 1.7.1
Professional (Build 7600)
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\uxtheme.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\cryptbase.dll'
Using renderer: Direct3D 8.1
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\d3d8.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\version.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\d3d8thk.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\ntmarta.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\Wldap32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\nvd3dum.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\powrprof.dll'
'20.ManagedLights.exe': Loaded 'C:\Program Files\NVIDIA Corporation\3D Vision\nvSCPAPI.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\nvapi.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\wintrust.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\crypt32.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\msasn1.dll'
'20.ManagedLights.exe': Unloaded 'C:\Windows\System32\powrprof.dll'
'20.ManagedLights.exe': Unloaded 'C:\Windows\System32\nvd3dum.dll'
NVIDIA GeForce 9800 GT nvd3dum.dll 8.17.11.9562
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\nvd3dum.dll'
'20.ManagedLights.exe': Loaded 'C:\Windows\System32\powrprof.dll'
Loaded texture: d:/New folder/Irrlicht/irrlicht-1.7.1/irrlicht-1.7.1/irrlicht-1.7.1/examples/20.ManagedLights/particle.bmp
Resizing window (640 480)
Resetting D3D8 device.
DIRECT3D8 device lost.
Resizing window (640 480)
Resetting D3D8 device.
Resizing window (160 27)
Resetting D3D8 device.
Resetting failed due to device lost.
Resetting D3D8 device.
Resizing window (1680 1050)
Resetting D3D8 device.
Resizing window (160 27)
Resetting D3D8 device.
Resetting failed due to device lost.
Resetting D3D8 device.
Resizing window (1680 1050)
Resetting D3D8 device.
Resizing window (160 27)
Resetting D3D8 device.
Resetting failed due to device lost.
The thread 'Win32 Thread' (0xbbc) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xebc) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xc98) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xba8) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x880) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x734) has exited with code 0 (0x0).
Resetting D3D8 device.
Resizing window (1680 1050)
Resetting D3D8 device.
Resizing window (160 27)
Resetting D3D8 device.
Resetting failed due to device lost.
Resetting D3D8 device.
Resizing window (1680 1050)
Resetting D3D8 device.
'20.ManagedLights.exe': Unloaded 'C:\Windows\System32\powrprof.dll'
'20.ManagedLights.exe': Unloaded 'C:\Windows\System32\nvd3dum.dll'
The thread 'Win32 Thread' (0xa00) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x4fc) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x6e4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x5e8) has exited with code 0 (0x0).
The program '[3508] 20.ManagedLights.exe: Native' has exited with code 0 (0x0).
Dareltibus
Posts: 115
Joined: Mon May 17, 2010 7:42 am

bugs location and temporary solution

Post by Dareltibus »

Ok, i had the same problem. And solved it without the need to change anything in irrlicht. You can use my solution code while waiting for the bug being fixed.

Please some credits are not necessary but are wellcome if you use my code :)

Code: Select all

while(device->run())
   {
      u32 bugcatcher1; //ok i check it only if it is == 0. but is usefull have some more data capability
      if(device->isWindowActive())
      {
         if(!device->isWindowMinimized()) //temp bug fix by dareltibus :D. stop drawing if the window is not maximized
         {
            bugcatcher1=driver->beginScene(true, true, SColor(255,100,101,140));
            if(bugcatcher1)
            {
               smgr->drawAll();
               guienv->drawAll();

               bugcatcher1=driver->endScene();
               if(!bugcatcher1)
               {
                  device->drop(); //end scene failed
                  return bugcatcher1;  //debugger BREAKPOINT
               }
            }
            else
            {
               device->drop(); //begin scene failed
               return bugcatcher1; //debugger BREAKPOINT
            }
         }
         else
            device->yield(); //cpu usage down
      }
      else
         device->yield(); //cpu usage down
   }
   device->drop(); //all went rightly

   return 0; 
MORE BUG INFO:

The bug seems to be a failure on EndScene. I tried several ways with different configuration.

The bug appens Immediatly after the first "endScene" call when window is not maximized. I just avoided it by stopping calling drawings when window is not maximized.

I have Windows Vista and Radeon Mobility HD 4570 as video device.

//output:
---(start the device in fullscreen mode)
Resizing window (640 480)
---(pressing ALT TAB)
Resetting D3D8 device.
---(trying to draw something while the window is not maximized)
DIRECT3D8 device lost

WARNING BE AWARE OF SETTING BREAKING POINTS on one of these method
BeginScene
drawAll
EndScene

This will get VISUAL STUDIO to a big crash and need to restart your pc setting a break point in one of these method.
CuteAlien
Admin
Posts: 9633
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Thanks for all the additional info!
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Hmm, sounds as if the reset failed. Probably some dx debugging needs to take place. Guess we missed some release somewhere.
Mani2010
Posts: 107
Joined: Sat Jan 16, 2010 4:35 pm
Location: London,UK
Contact:

Post by Mani2010 »

Just got this, is it fixed in 1.7.2?
Mani2010
Posts: 107
Joined: Sat Jan 16, 2010 4:35 pm
Location: London,UK
Contact:

Post by Mani2010 »

more info...

I have tried the fix suggested and it does not work for me.
The exception happens the first time the IrrDevice->run() is called on the IrrDevice.

i am using windows xp...

output window text...

Resizing window (160 31)
Resetting D3D9 device.
First-chance exception at 0x0091ab70 in Management.exe: 0xC0000005: Access violation reading location 0xfeeeff1e.
Unhandled exception at 0x0091ab70 in Management.exe: 0xC0000005: Access violation reading location 0xfeeeff1e.
The program '[3604] Management.exe: Native' has exited with code 0 (0x0).
Post Reply