Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Beta
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Orbiter Beta Topics related to Beta releases of Orbiter and Orbiter development.

Reply
 
Thread Tools
Old 01-26-2016, 01:59 AM   #31
GZR_Ranger
Orbinaut
Default

Quote:
Originally Posted by martins View Post
 No that shouldn't cause crashes. More of a problem might be this:

Did you not install the Mars textures? It's possible that the code requires planet textures at least to the root of the quadtree to be present (resolution level 4). Although I don't know if this would trigger a problem when Mars is not in view (I should test this). And there definitely shouldn't be any correlation with XR-2.

Do you get crashes only with the combination D3D9+XR2? Do each if these work individually in the latest beta?
Thanks for the reply, Martin & everyone else. I've been an Orbiter fan since I first downloaded back in 2006 on my computer before taking a trip to Afghanistan (where I fell in love with the simulator!)... It's obvious I'm still not an expert, tho!

After having issues with the latest beta, I specifically downloaded the latest textures, to include MarsLo.zip dated Nov 26 2015. Orbiter runs, but no matter how I try and "sneak" into the XR-2 (thru scenario editor, etc., and with or without D3D9) I still CTD whenever I load the XR-2.

Tomorrow I will try installing the Orbiter Beta and XR-2 on another computer to see if I get the same result.

Thanks again, everyone!
GZR_Ranger is offline   Reply With Quote
Old 01-26-2016, 04:50 AM   #32
martins
Orbiter Founder
Default

Quote:
Originally Posted by jarmonik View Post
 I made some tests with XR-2 Ravenstar and it is causing a CTD with D3D9 as well as with the inline engine. Debugger shows no leads, no D3D9 calls in a call stack or being executed.

Removed Mars and Moon textures from an installation to test texture dependency. No CTDs, rendered as black spheres.[COLOR="Red"]
Ok, I found a problem that shows up if a Delta-glider is present in the scenario but doesn't have input focus. Essentially, the oapiRedrawArea and oapiPanelRedrawArea functions have a major flaw: they don't know which vessel made the call, so the redraw request can end up in the wrong cockpit.

I have now deprecated those functions and replaced them with VESSEL::RedrawArea and VESSEL::PanelRedrawArea. This will come into effect with the next beta.

How this problem can be related to the Moon and Mars textures is a mystery.

Unfortunately I still get a CTD with the XR2, but now it might actually be a problem in the XR2 code:

I am receiving a call to GDIPad::GetOrigin(int *x, int *y)const from the XR2's clbkDrawHUD with invalid pointers for the x and y arguments. Not sure why this should show up only now, though. Doug, could you have a look?
martins is offline   Reply With Quote
Thanked by:
Old 01-26-2016, 02:16 PM   #33
GZR_Ranger
Orbinaut
Default

This might explain why the XR-2 will still load with a glass cockpit, but not the panel view.

In case it's helpful to have a double check, here are my logs:

Orbiter.log
Code:
**** Orbiter.log
000000.000: Build Jan 20 2016 [v.160120]
000000.000: Timer precision: 3.94739e-007 sec
000000.000: Found 0 joystick(s)
000000.000: Module AtlantisConfig.dll .... [Build 150906, API 150906]
000000.000: Module AtmConfig.dll ......... [Build 150906, API 150906]
000000.000: Module DGConfigurator.dll .... [Build 150906, API 150906]
000000.000: Module D3D9Client.dll ........ [Build 160121, API 160120]
000000.000: Module ScnEditor.dll ......... [Build 150906, API 150906]
000000.000: Module OrbiterSound.dll ...... [Build 121120, API 100830]
000000.000: 
000000.000: **** Creating simulation session
000000.000: D3D9Client: [DirectX 9 Initialized]
000000.000: D3D9Client: Sytem has XNA math support
000000.000: D3D9Client: [3DDevice Initialized]
000000.000: D3D9Client: [Loading Stars]
000000.000: D3D9Client: [Loading Constellations]
000000.000: D3D9Client: [D3D9Client Initialized]
000000.000: Attempting to clear a texture 0x782A210 color=0x0
000000.000: Module Sun.dll ............... [Build 150906, API 150906]
VSOP87(E) Sun: Precision 1e-006, Terms 554/6634
000000.000: Module Mercury.dll ........... [Build 150906, API 150906]
VSOP87(B) Mercury: Precision 1e-005, Terms 167/7123
000000.000: Module Venus.dll ............. [Build 150906, API 150906]
000000.000: Module VenusAtm2006.dll ...... [Build 150906, API 150906]
VSOP87(B) Venus: Precision 1e-005, Terms 79/1710
000000.000: Module Earth.dll ............. [Build 150906, API 150906]
000000.000: Module EarthAtm2006.dll ...... [Build 150906, API 150906]
VSOP87(B) Earth: Precision 1e-008, Terms 2564/2564
000000.000: Module Moon.dll .............. [Build 150906, API 150906]
ELP82: Precision 1e-005, Terms 116/829
000000.000: Module Mars.dll .............. [Build 150906, API 150906]
000000.000: Module MarsAtm2006.dll ....... [Build 150906, API 150906]
VSOP87(B) Mars: Precision 1e-005, Terms 405/6400
000000.000: Module Phobos.dll ............ [Build ******, API 060425]
000000.000: Module Deimos.dll ............ [Build ******, API 060425]
000000.000: Module Galsat.dll ............ [Build 150906, API 150906]
000000.000: Module Jupiter.dll ........... [Build 150906, API 150906]
VSOP87(B) Jupiter: Precision 1e-006, Terms 1624/3625
000000.000: Module Io.dll ................ [Build 150906, API 150906]
000000.000: Module Europa.dll ............ [Build 150906, API 150906]
000000.000: Module Ganymede.dll .......... [Build 150906, API 150906]
000000.000: Module Callisto.dll .......... [Build 150906, API 150906]
000000.000: Module Satsat.dll ............ [Build 150906, API 150906]
000000.000: Module Saturn.dll ............ [Build 150906, API 150906]
VSOP87(B) Saturn: Precision 1e-006, Terms 2904/6365
000000.000: Module Mimas.dll ............. [Build 150906, API 150906]
SATSAT Mimas: Terms 113
000000.000: Module Enceladus.dll ......... [Build 150906, API 150906]
SATSAT Enceladus: Terms 33
000000.000: Module Tethys.dll ............ [Build 150906, API 150906]
SATSAT Tethys: Terms 101
000000.000: Module Dione.dll ............. [Build 150906, API 150906]
SATSAT Dione: Terms 59
000000.000: Module Rhea.dll .............. [Build 150906, API 150906]
SATSAT Rhea: Terms 68
000000.000: Module Titan.dll ............. [Build 150906, API 150906]
SATSAT Titan: Terms 100
000000.000: Module Iapetus.dll ........... [Build 150906, API 150906]
SATSAT Iapetus: Terms 605
000000.000: Module Uranus.dll ............ [Build 150906, API 150906]
VSOP87(B) Uranus: Precision 1e-006, Terms 1827/5269
000000.000: Module Miranda.dll ........... [Build ******, API 060425]
000000.000: Module Ariel.dll ............. [Build ******, API 060425]
000000.000: Module Umbriel.dll ........... [Build ******, API 060425]
000000.000: Module Titania.dll ........... [Build ******, API 060425]
000000.000: Module Oberon.dll ............ [Build ******, API 060425]
000000.000: Module Neptune.dll ........... [Build 150906, API 150906]
VSOP87(B) Neptune: Precision 1e-006, Terms 391/2024
000000.000: Finished initialising world
000000.000: Module ShuttlePB.dll ......... [Build 150906, API 150906]
000000.000: Module DeltaGlider.dll ....... [Build 160120, API 160120]
000000.000: Module LuaInline.dll ......... [Build 150906, API 150906]
000000.000: Module ShuttleA.dll .......... [Build 151205, API 151205]
000000.000: Finished initialising status
000000.000: Finished initialising camera
000000.000: Finished setting up render state
000000.000: D3D9Client: [Scene Initialized]
000000.000: Finished initialising panels
000000.000: ---------------------------------------------------------------
000000.000: >>> WARNING: Obsolete API function used: VESSEL::GetHorizonAirspeedVector
000000.000: At least one active module is accessing an obsolete interface function.
000000.000: Addons which rely on obsolete functions may not be compatible with
000000.000: future versions of Orbiter.
000000.000: ---------------------------------------------------------------
000088.283: D3D9Client: [Session Closed. Scene deleted.]
000088.283: **** Closing simulation session
000088.283: Invalid Window !! RenderWndProc() called after calling clbkDestroyRenderWindow() uMsg=0x49F370
000088.283: 
000088.283: **** Creating simulation session
000088.283: D3D9Client: [DirectX 9 Initialized]
000088.283: D3D9Client: Sytem has XNA math support
000088.283: D3D9Client: [3DDevice Initialized]
000088.283: D3D9Client: [Loading Stars]
000088.283: D3D9Client: [Loading Constellations]
000088.283: D3D9Client: [D3D9Client Initialized]
000000.000: Attempting to clear a texture 0x1A70A850 color=0x0
000000.000: Module Sun.dll ............... [Build 150906, API 150906]
VSOP87(E) Sun: Precision 1e-006, Terms 554/6634
000000.000: Module Mercury.dll ........... [Build 150906, API 150906]
VSOP87(B) Mercury: Precision 1e-005, Terms 167/7123
000000.000: Module Venus.dll ............. [Build 150906, API 150906]
000000.000: Module VenusAtm2006.dll ...... [Build 150906, API 150906]
VSOP87(B) Venus: Precision 1e-005, Terms 79/1710
000000.000: Module Earth.dll ............. [Build 150906, API 150906]
000000.000: Module EarthAtm2006.dll ...... [Build 150906, API 150906]
VSOP87(B) Earth: Precision 1e-008, Terms 2564/2564
000000.000: Module Moon.dll .............. [Build 150906, API 150906]
ELP82: Precision 1e-005, Terms 116/829
000000.000: Module Mars.dll .............. [Build 150906, API 150906]
000000.000: Module MarsAtm2006.dll ....... [Build 150906, API 150906]
VSOP87(B) Mars: Precision 1e-005, Terms 405/6400
000000.000: Module Phobos.dll ............ [Build ******, API 060425]
000000.000: Module Deimos.dll ............ [Build ******, API 060425]
000000.000: Module Galsat.dll ............ [Build 150906, API 150906]
000000.000: Module Jupiter.dll ........... [Build 150906, API 150906]
VSOP87(B) Jupiter: Precision 1e-006, Terms 1624/3625
000000.000: Module Io.dll ................ [Build 150906, API 150906]
000000.000: Module Europa.dll ............ [Build 150906, API 150906]
000000.000: Module Ganymede.dll .......... [Build 150906, API 150906]
000000.000: Module Callisto.dll .......... [Build 150906, API 150906]
000000.000: Module Satsat.dll ............ [Build 150906, API 150906]
000000.000: Module Saturn.dll ............ [Build 150906, API 150906]
VSOP87(B) Saturn: Precision 1e-006, Terms 2904/6365
000000.000: Module Mimas.dll ............. [Build 150906, API 150906]
SATSAT Mimas: Terms 113
000000.000: Module Enceladus.dll ......... [Build 150906, API 150906]
SATSAT Enceladus: Terms 33
000000.000: Module Tethys.dll ............ [Build 150906, API 150906]
SATSAT Tethys: Terms 101
000000.000: Module Dione.dll ............. [Build 150906, API 150906]
SATSAT Dione: Terms 59
000000.000: Module Rhea.dll .............. [Build 150906, API 150906]
SATSAT Rhea: Terms 68
000000.000: Module Titan.dll ............. [Build 150906, API 150906]
SATSAT Titan: Terms 100
000000.000: Module Iapetus.dll ........... [Build 150906, API 150906]
SATSAT Iapetus: Terms 605
000000.000: Module Uranus.dll ............ [Build 150906, API 150906]
VSOP87(B) Uranus: Precision 1e-006, Terms 1827/5269
000000.000: Module Miranda.dll ........... [Build ******, API 060425]
000000.000: Module Ariel.dll ............. [Build ******, API 060425]
000000.000: Module Umbriel.dll ........... [Build ******, API 060425]
000000.000: Module Titania.dll ........... [Build ******, API 060425]
000000.000: Module Oberon.dll ............ [Build ******, API 060425]
000000.000: Module Neptune.dll ........... [Build 150906, API 150906]
VSOP87(B) Neptune: Precision 1e-006, Terms 391/2024
000000.000: Finished initialising world
000000.000: Module ShuttlePB.dll ......... [Build 150906, API 150906]
000000.000: Module DeltaGlider.dll ....... [Build 160120, API 160120]
000000.000: Module ShuttleA.dll .......... [Build 151205, API 151205]
000000.000: Finished initialising status
000000.000: Finished initialising camera
000000.000: Finished setting up render state
000000.000: D3D9Client: [Scene Initialized]
000000.000: Finished initialising panels
000043.180: ---------------------------------------------------------------
000043.180: >>> WARNING: Obsolete API function used: VESSEL::CreateVariableDragElement
000043.180: At least one active module is accessing an obsolete interface function.
000043.180: Addons which rely on obsolete functions may not be compatible with
000043.180: future versions of Orbiter.
000043.180: ---------------------------------------------------------------
000067.565: D3D9Client: [Session Closed. Scene deleted.]
000067.565: **** Closing simulation session
000067.565: Invalid Window !! RenderWndProc() called after calling clbkDestroyRenderWindow() uMsg=0x49F370
000067.565: 
000067.565: **** Creating simulation session
000067.565: D3D9Client: [DirectX 9 Initialized]
000067.565: D3D9Client: Sytem has XNA math support
000067.565: D3D9Client: [3DDevice Initialized]
000067.565: D3D9Client: [Loading Stars]
000067.565: D3D9Client: [Loading Constellations]
000067.565: D3D9Client: [D3D9Client Initialized]
000000.000: Attempting to clear a texture 0x16741008 color=0x0
000000.000: Module Sun.dll ............... [Build 150906, API 150906]
VSOP87(E) Sun: Precision 1e-006, Terms 554/6634
000000.000: Module Mercury.dll ........... [Build 150906, API 150906]
VSOP87(B) Mercury: Precision 1e-005, Terms 167/7123
000000.000: Module Venus.dll ............. [Build 150906, API 150906]
000000.000: Module VenusAtm2006.dll ...... [Build 150906, API 150906]
VSOP87(B) Venus: Precision 1e-005, Terms 79/1710
000000.000: Module Earth.dll ............. [Build 150906, API 150906]
000000.000: Module EarthAtm2006.dll ...... [Build 150906, API 150906]
VSOP87(B) Earth: Precision 1e-008, Terms 2564/2564
000000.000: Module Moon.dll .............. [Build 150906, API 150906]
ELP82: Precision 1e-005, Terms 116/829
000000.000: Module Mars.dll .............. [Build 150906, API 150906]
000000.000: Module MarsAtm2006.dll ....... [Build 150906, API 150906]
VSOP87(B) Mars: Precision 1e-005, Terms 405/6400
000000.000: Module Phobos.dll ............ [Build ******, API 060425]
000000.000: Module Deimos.dll ............ [Build ******, API 060425]
000000.000: Module Galsat.dll ............ [Build 150906, API 150906]
000000.000: Module Jupiter.dll ........... [Build 150906, API 150906]
VSOP87(B) Jupiter: Precision 1e-006, Terms 1624/3625
000000.000: Module Io.dll ................ [Build 150906, API 150906]
000000.000: Module Europa.dll ............ [Build 150906, API 150906]
000000.000: Module Ganymede.dll .......... [Build 150906, API 150906]
000000.000: Module Callisto.dll .......... [Build 150906, API 150906]
000000.000: Module Satsat.dll ............ [Build 150906, API 150906]
000000.000: Module Saturn.dll ............ [Build 150906, API 150906]
VSOP87(B) Saturn: Precision 1e-006, Terms 2904/6365
000000.000: Module Mimas.dll ............. [Build 150906, API 150906]
SATSAT Mimas: Terms 113
000000.000: Module Enceladus.dll ......... [Build 150906, API 150906]
SATSAT Enceladus: Terms 33
000000.000: Module Tethys.dll ............ [Build 150906, API 150906]
SATSAT Tethys: Terms 101
000000.000: Module Dione.dll ............. [Build 150906, API 150906]
SATSAT Dione: Terms 59
000000.000: Module Rhea.dll .............. [Build 150906, API 150906]
SATSAT Rhea: Terms 68
000000.000: Module Titan.dll ............. [Build 150906, API 150906]
SATSAT Titan: Terms 100
000000.000: Module Iapetus.dll ........... [Build 150906, API 150906]
SATSAT Iapetus: Terms 605
000000.000: Module Uranus.dll ............ [Build 150906, API 150906]
VSOP87(B) Uranus: Precision 1e-006, Terms 1827/5269
000000.000: Module Miranda.dll ........... [Build ******, API 060425]
000000.000: Module Ariel.dll ............. [Build ******, API 060425]
000000.000: Module Umbriel.dll ........... [Build ******, API 060425]
000000.000: Module Titania.dll ........... [Build ******, API 060425]
000000.000: Module Oberon.dll ............ [Build ******, API 060425]
000000.000: Module Neptune.dll ........... [Build 150906, API 150906]
VSOP87(B) Neptune: Precision 1e-006, Terms 391/2024
000000.000: Finished initialising world
000000.000: Module ShuttlePB.dll ......... [Build 150906, API 150906]
000000.000: Module DeltaGlider.dll ....... [Build 160120, API 160120]
000000.000: Module ShuttleA.dll .......... [Build 151205, API 151205]
000000.000: Module XR2Ravenstar.dll ...... [Build 130722, API 130101]
000000.000: Finished initialising status
000000.000: Finished initialising camera
000000.000: Finished setting up render state
000000.000: D3D9Client: [Scene Initialized]
000000.000: Finished initialising panels
000052.965: ---------------------------------------------------------------
000052.965: >>> WARNING: Obsolete API function used: oapiBlt
000052.965: Colour key argument not supported by graphics client
000052.965: ---------------------------------------------------------------
FROM XR2Ravenstar.log... Note, the first load was with glass cockpit, then I exited... The second load I tried to go to panel view and CTD'ed.
Code:
01.26.2016 08:57:59.179 - [] Loading XR2Ravenstar: Version 1.7 BETA-1, Build Date: Jul 22 2013
01.26.2016 08:57:59.236 - [XR-2_01] Using configuration file(s): Config\XR2RavenstarPrefs.cfg (no override found [Config\XR-2_01.xrcfg])
01.26.2016 08:57:59.236 - [XR-2_01] Parsing config file 'Config\XR2RavenstarPrefs.cfg'
01.26.2016 08:57:59.247 - [XR-2_01] Successfully parsed configuration file 'Config\XR2RavenstarPrefs.cfg'
01.26.2016 08:58:01.418 - [XR-2_01] Using UMmu Version: 3.00
01.26.2016 08:58:01.467 - [XR-2_01] Using OrbiterSound Version: 4.00
01.26.2016 08:59:28.943 - [] Loading XR2Ravenstar: Version 1.7 BETA-1, Build Date: Jul 22 2013
01.26.2016 08:59:28.973 - [XR-2_01] Using configuration file(s): Config\XR2RavenstarPrefs.cfg (no override found [Config\XR-2_01.xrcfg])
01.26.2016 08:59:28.973 - [XR-2_01] Parsing config file 'Config\XR2RavenstarPrefs.cfg'
01.26.2016 08:59:28.974 - [XR-2_01] Successfully parsed configuration file 'Config\XR2RavenstarPrefs.cfg'
01.26.2016 08:59:30.655 - [XR-2_01] Using UMmu Version: 3.00
01.26.2016 08:59:30.882 - [XR-2_01] Using OrbiterSound Version: 4.00
01.26.2016 08:59:49.354 - [XR-2_01] Forcing 2D panel width of 1280 pixels per XR configuration file [Config\XR2RavenstarPrefs.cfg (no override found [Config\XR-2_01.xrcfg])].
01.26.2016 09:00:24.273 - [XR-2_01] Forcing 2D panel width of 1280 pixels per XR configuration file [Config\XR2RavenstarPrefs.cfg (no override found [Config\XR-2_01.xrcfg])].
GZR_Ranger is offline   Reply With Quote
Old 01-26-2016, 03:41 PM   #34
jarmonik
Beta Tester

Default

Quote:
Originally Posted by martins View Post
 How this problem can be related to the Moon and Mars textures is a mystery.
Those are not related. Sorry about not being accurate enough, I was merely testing if a lack of planetary textures could cause a CTD in the client. So, the reported CTD with the XR2 was not due to lack of textures.

---------- Post added at 17:41 ---------- Previous post was at 16:46 ----------

Quote:
Originally Posted by martins View Post
 I am receiving a call to GDIPad::GetOrigin(int *x, int *y)const from the XR2's clbkDrawHUD with invalid pointers for the x and y arguments. Not sure why this should show up only now, though. Doug, could you have a look?
Looks like we have forgotten to implement GetOrigin() entirely in D3D9. (Fixed) Yes, I am seeing the same problem of invalid pointers passed to GetOrigin(). Although, by-passing that one results a CTD in somewhere else. Removed all other vessels from a scenario but still it won't run.
jarmonik is offline   Reply With Quote
Thanked by:
Old 01-26-2016, 04:47 PM   #35
dbeachy1
O-F Administrator
 
dbeachy1's Avatar


Default

Quote:
Originally Posted by martins View Post
 Unfortunately I still get a CTD with the XR2, but now it might actually be a problem in the XR2 code:

I am receiving a call to GDIPad::GetOrigin(int *x, int *y)const from the XR2's clbkDrawHUD with invalid pointers for the x and y arguments. Not sure why this should show up only now, though. Doug, could you have a look?
Sure, I'll look into it.
dbeachy1 is offline   Reply With Quote
Thanked by:
Old 01-26-2016, 06:39 PM   #36
dbeachy1
O-F Administrator
 
dbeachy1's Avatar


Default

OK I took a quick look here and the CTD only occurs for me if I load a DeltaGlider in the same scenario -- Martin, can you please confirm? Here is what I did:

1. Updated to the latest Orbiter Beta code using SVN.
2. Copied the XR2 1.7 Beta-1 DLL to $ORBITER_HOME\Modules.
3. Ran orbiter.exe and loaded the XR2 Ravenstar\1 - Ready for Takeoff to ISS scenario and got a CTD on load.
4. Cloned the above scenario file and removed this section from it:
Code:
GL-02:DeltaGlider
  STATUS Landed Mars
  BASE Olympus:3
  POS -135.4300000 12.7366196
  HEADING 0.00
  PRPLEVEL 0:1.000 1:1.000
  NAVFREQ 0 0 0 0
  XPDR 0
  GEAR 1 1.0000
END
5. Re-ran orbiter.exe and loaded the above scenario; Orbiter started successfully this time.

Oddly, if I run orbiter.exe in step 3 under the VS 2013 debugger it does not CTD. So then I ran orbiter.exe directly and attached a debugger remotely after the CTD occurred in step 3, and it showed this in the call stack:

Code:
>	orbiter.exe!0046526b()	Unknown
 	[Frames below may be incorrect and/or missing, no symbols loaded for orbiter.exe]	
 	orbiter.exe!004653af()	Unknown
 	orbiter.exe!0046224a()	Unknown
 	orbiter.exe!00464599()	Unknown
 	orbiter.exe!004b794e()	Unknown
 	DeltaGlider.dll!29a989cc()	Unknown
 	DeltaGlider.dll!29a98ae5()	Unknown
 	DeltaGlider.dll!29a8f495()	Unknown
 	DeltaGlider.dll!29a984db()	Unknown
 	DeltaGlider.dll!29a90175()	Unknown
 	DeltaGlider.dll!29a88132()	Unknown
 	orbiter.exe!00486179()	Unknown
 	orbiter.exe!0041c8fb()	Unknown
 	orbiter.exe!0041f760()	Unknown
 	orbiter.exe!004225e4()	Unknown
 	orbiter.exe!004228bb()	Unknown
 	orbiter.exe!005094fd()	Unknown
 	kernel32.dll!774738f4()	Unknown
 	ntdll.dll!775f56c3()	Unknown
 	ntdll.dll!775f568e()	Unknown
So I'm not seeing any XR2 code involved when the crash occurs for me, and everything works fine if I remove the DeltaGlider from the scenario. [I also recompiled the XR2 DLL against the latest Orbiter libraries but it didn't change anything.] Martin -- do you have any ideas??
dbeachy1 is offline   Reply With Quote
Thanked by:
Old 01-26-2016, 07:13 PM   #37
JMW
Aspiring Addon Developer
 
JMW's Avatar
Default

Scuse my ignorance, but where should the Matlab runtimes be installed for use with tileedit.... Program files, or somewhere else.......?
JMW is offline   Reply With Quote
Old 01-26-2016, 07:15 PM   #38
GZR_Ranger
Orbinaut
Default

Quote:
Originally Posted by dbeachy1 View Post
 OK I took a quick look here and the CTD only occurs for me if I load a DeltaGlider in the same scenario -- Martin, can you please confirm?
I've replicated this result; by deleting the Delta Gliders from a scenario, the XR-2 works fine.
GZR_Ranger is offline   Reply With Quote
Thanked by:
Old 01-26-2016, 08:53 PM   #39
jarmonik
Beta Tester

Default

After re-installing XR-2 and removing the Delta Glider I got the XR-2 to run but there is still a CTD when switching to a virtual cockpit. I get the same results with D3D9 and inline engine. Although, everything is working just fine with Orbiter 2010-P1. I have no idea what's going on there.
Attached Thumbnails
CTD.png  
jarmonik is offline   Reply With Quote
Thanked by:
Old 01-27-2016, 12:22 AM   #40
dbeachy1
O-F Administrator
 
dbeachy1's Avatar


Default

Quote:
Originally Posted by jarmonik View Post
 After re-installing XR-2 and removing the Delta Glider I got the XR-2 to run but there is still a CTD when switching to a virtual cockpit. I get the same results with D3D9 and inline engine. Although, everything is working just fine with Orbiter 2010-P1. I have no idea what's going on there.
I just tried that here with both the inline engine and the latest D3D9 client and both work fine for me. Can you dupe the CTD you are seeing in a clean Orbiter beta install?
dbeachy1 is offline   Reply With Quote
Old 01-27-2016, 01:37 AM   #41
martins
Orbiter Founder
Default

Hi Doug, here are my findings:

- Installed fresh Orbiter beta from SVN
- Installed OrbiterSound 4.0 and UCGO3.0
- Installed XR2Ravenstar-1.6a
- Run Scenarios | XR2 Ravenstar | 1 - Ready for takeoff to ISS (after removing all vessels except XR2-01, XR2-01_Bay, XR2PayloadCHM-01-1

Result: CTD at start.

Running an Orbiter debug build on this scenario, I get a crash in GDIPad::GetOrigin, called from the Ravenstar's clbkDrawHUD method, as mentioned above.

If I bypass the GetOrigin code, the crash seems to happen directly in clbkDrawHUD.

The crash happens at the same location when starting in panel, VC, or glass cockpit mode.
martins is offline   Reply With Quote
Thanked by:
Old 01-27-2016, 01:46 AM   #42
dbeachy1
O-F Administrator
 
dbeachy1's Avatar


Default

Oh, you'll need to manually copy the XR2's beta-compatible 1.7 DLL to $ORBITER_HOME\Modules before running it -- I had to recompile the XR DLLs against the Orbiter beta libraries a while back. You can download the beta-compatible XR2 1.7 DLL here: XR2 1.7 Beta-1

I suspect the cause of the beta CTD with the Orbiter 2010-compatible XR2 DLL is because the vtables changed between Orbiter versions, because recompiling the XR DLLs fixed the startup CTD for me back in 2013. More information is here: http://orbiter-forum.com/showthread....7&postcount=10
dbeachy1 is offline   Reply With Quote
Old 01-27-2016, 02:07 AM   #43
martins
Orbiter Founder
Default

Ah ok, my bad. The beta-compatible DLL seems to have cleared up the problem. GDIPad::GetOrigin is now no longer called at all, so this does look like a vtable mismatch, as you say. Sorry for the false alarm.

With my fix for the Delta-glider, the original XR2 scenario including the DG also seems to work, so I'll upload a new beta asap.
martins is offline   Reply With Quote
Thanked by:
Old 01-27-2016, 03:16 AM   #44
martins
Orbiter Founder
Default New Orbiter Beta Released (r.46, Jan 27 2016)

Change log:
  1. API: oapiTriggerPanelRedrawArea and oapiTriggerRedrawArea deprecated
  2. Vessel API: added VESSEL::TriggerPanelRedrawArea and VESSEL::TriggerRedrawArea
  3. DeltaGlider: replaced deprecated redraw functions with new VESSEL versions (fix CTD in scenarios with non-focus DGs)
martins is offline   Reply With Quote
Old 01-27-2016, 01:44 PM   #45
jarmonik
Beta Tester

Default

Thanks about the update.

If there is a vtable mismatch and add-ons need to be re-compiled for the latest beta then would it be practical to add CopyRect and StretchRect functionality in the sketchpad interface ? To allow blitting in MFDs and avoid a need to release and re-acquire the sketchpad interface between drawing and blitting.

Also, In the D3D9 we would reroute all color-key, stretch, color conversion operations from oapiBlt to the modified sketchpad interface.

Any thoughts ?

BTW, does the DirectDraw support alpha-blending ?
jarmonik is offline   Reply With Quote
Thanked by:
Reply

  Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Beta


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 10:16 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.