Axis and Allies - SetDisplayMode Failed! [SOLVED]
Moderator: Barb@Invincea
Axis and Allies - SetDisplayMode Failed! [SOLVED]
Hi,
I have installed a game on my unsandboxed system (Win 8.1 32-bit) and it runs fine there with no problem, but whenever I try to run it in sandboxed mode, I just get a little popup window with the following error message (and the game does not open):
LIB_InitVideo: ERROR 0x80004001
SetDisplayModeFailed!
Can someone help me figure out how to avoid this error in sandboxed mode? In case this helps, the game is Axis and Allies (1998 version).
Thanks!
MERGED POST
Sorry for the typo; the last line of the error message actually has a space, hence:
LIB_InitVideo: ERROR 0x80004001
SetDisplayMode Failed!
I have installed a game on my unsandboxed system (Win 8.1 32-bit) and it runs fine there with no problem, but whenever I try to run it in sandboxed mode, I just get a little popup window with the following error message (and the game does not open):
LIB_InitVideo: ERROR 0x80004001
SetDisplayModeFailed!
Can someone help me figure out how to avoid this error in sandboxed mode? In case this helps, the game is Axis and Allies (1998 version).
Thanks!
MERGED POST
Sorry for the typo; the last line of the error message actually has a space, hence:
LIB_InitVideo: ERROR 0x80004001
SetDisplayMode Failed!
-
- Sandboxie Support
- Posts: 2337
- Joined: Mon Nov 07, 2016 3:10 pm
Re: SetDisplayMode Failed!
Hello newuser1,
What are your Sandboxie and Antivirus versions?
Was the game working before? Does it require a launcher? How are you opening it?
Please provide the output of the Resource Access Monitor (use the "</" Code button in the forum to format it)
https://www.sandboxie.com/index.php?Res ... essMonitor
Regards,
Barb.-
What are your Sandboxie and Antivirus versions?
Was the game working before? Does it require a launcher? How are you opening it?
Please provide the output of the Resource Access Monitor (use the "</" Code button in the forum to format it)
https://www.sandboxie.com/index.php?Res ... essMonitor
Regards,
Barb.-
Re: SetDisplayMode Failed!
Hi Barb,
Thanks so much for your help. My Sandboxie version is 5.20 (32 bit), and my only "antivirus" is AppGuard, but the problem I mentioned happens all the time regardless of whether Appguard is running or turned off. I run the program by right clicking it and choosing "Run Sandboxed". If I run it from within the Sandboxie Control Window, same problem, it won't open, but the popup error message content changes to: "Can't Find Axis Resource 1"
Here is the resource monitor readout:
MERGED POST
Oh, and also, yes, I remember it used to work when I ran it sandboxed at some point in the past, but that was a while ago (can't remember what year that was).
Thanks so much for your help. My Sandboxie version is 5.20 (32 bit), and my only "antivirus" is AppGuard, but the problem I mentioned happens all the time regardless of whether Appguard is running or turned off. I run the program by right clicking it and choosing "Run Sandboxed". If I run it from within the Sandboxie Control Window, same problem, it won't open, but the popup error message content changes to: "Can't Find Axis Resource 1"
Here is the resource monitor readout:
Code: Select all
(Drive) \Device\HarddiskVolume3
Clsid -------------------------------
Clsid {D7B70EE0-4340-11CF-B063-0020AFC2CD35} DirectDraw Object
File/Key -------------------------------
Image -------------------------------
Ipc -------------------------------
Ipc \BaseNamedObjects\__ComCatalogCache__
Ipc \BaseNamedObjects\{A3BD3259-3E4F-428a-84C8-F0463A9D3EB5}
Ipc \BaseNamedObjects\{A64C7F33-DA35-459b-96CA-63B51FB0CDB9}
Ipc \BaseNamedObjects\C:*ProgramData*Microsoft*Windows*Caches*{6AF0698E-D558-4F6E-9B3C-3716689AF493}.2.ver0x0000000000000012.db
Ipc \BaseNamedObjects\C:*ProgramData*Microsoft*Windows*Caches*{DDF571F2-BE98-426D-8288-1A9A39C3FDA2}.2.ver0x0000000000000004.db
Ipc \BaseNamedObjects\C:*ProgramData*Microsoft*Windows*Caches*cversions.2.ro
Ipc \BaseNamedObjects\RotHintTable
Ipc \BaseNamedObjects\SC_AutoStartComplete
Ipc \BaseNamedObjects\windows_shell_global_counters
Ipc \RPC Control\actkernel
Ipc \RPC Control\epmapper
Ipc \RPC Control\OLE2D6046041016B3C20484E0E4127D
Ipc \Sessions\1\BaseNamedObjects\__ComCatalogCache__
Ipc \Sessions\1\BaseNamedObjects\{A3BD3259-3E4F-428a-84C8-F0463A9D3EB5}
Ipc \Sessions\1\BaseNamedObjects\{A64C7F33-DA35-459b-96CA-63B51FB0CDB9}
Ipc \Sessions\1\BaseNamedObjects\C:*ProgramData*Microsoft*Windows*Caches*{6AF0698E-D558-4F6E-9B3C-3716689AF493}.2.ver0x0000000000000012.db
Ipc \Sessions\1\BaseNamedObjects\C:*ProgramData*Microsoft*Windows*Caches*{DDF571F2-BE98-426D-8288-1A9A39C3FDA2}.2.ver0x0000000000000004.db
Ipc \Sessions\1\BaseNamedObjects\C:*ProgramData*Microsoft*Windows*Caches*cversions.2.ro
Ipc \Sessions\1\BaseNamedObjects\C:*Users*****AppData*Local*Microsoft*Windows*Caches*{AFBF9F1A-8EE8-4C77-AF34-C647E37CA0D9}.1.ver0x0000000000000339.db
Ipc \Sessions\1\BaseNamedObjects\C:*Users*****AppData*Local*Microsoft*Windows*Caches*cversions.1.ro
Ipc \Sessions\1\BaseNamedObjects\ComPlusCOMRegTable
Ipc \Sessions\1\BaseNamedObjects\RotHintTable
Ipc \Sessions\1\BaseNamedObjects\SBIE_BOXED_DummyEvent_1756
Ipc \Sessions\1\BaseNamedObjects\SBIE_BOXED_DummyEvent_3016
Ipc \Sessions\1\BaseNamedObjects\SBIE_BOXED_DummyEvent_3560
Ipc \Sessions\1\BaseNamedObjects\SBIE_BOXED_DummyEvent_3712
Ipc \Sessions\1\BaseNamedObjects\SBIE_BOXED_RPCSS_SXS_READY
Ipc \Sessions\1\BaseNamedObjects\SBIE_BOXED_ServiceInitComplete_DcomLaunch
Ipc \Sessions\1\BaseNamedObjects\SBIE_BOXED_ServiceInitComplete_Mutex1
Ipc \Sessions\1\BaseNamedObjects\SBIE_BOXED_ServiceInitComplete_RpcEptMapper
Ipc \Sessions\1\BaseNamedObjects\SBIE_BOXED_ServiceInitComplete_RpcSs
Ipc \Sessions\1\BaseNamedObjects\SboxSession
Ipc \Sessions\1\BaseNamedObjects\SC_AutoStartComplete
Ipc \Sessions\1\BaseNamedObjects\ScmCreatedEvent
Ipc \Sessions\1\BaseNamedObjects\SyncRootManager
Ipc \Sessions\1\BaseNamedObjects\windows_shell_global_counters
Ipc O \BaseNamedObjects\msctf.serverDefault1
Ipc O \KernelObjects\MaximumCommitCondition
Ipc O \KnownDlls\advapi32.dll
Ipc O \KnownDlls\CFGMGR32.dll
Ipc O \KnownDlls\COMDLG32.dll
Ipc O \KnownDlls\gdi32.dll
Ipc O \KnownDlls\kernel32.dll
Ipc O \KnownDlls\kernelbase.dll
Ipc O \KnownDlls\MSCTF.dll
Ipc O \KnownDlls\MSVCRT.dll
Ipc O \KnownDlls\NSI.dll
Ipc O \KnownDlls\ole32.dll
Ipc O \KnownDlls\OLEAUT32.dll
Ipc O \KnownDlls\PSAPI.DLL
Ipc O \KnownDlls\rpcrt4.dll
Ipc O \KnownDlls\Setupapi.dll
Ipc O \KnownDlls\SHCORE.dll
Ipc O \KnownDlls\SHELL32.dll
Ipc O \KnownDlls\SHLWAPI.dll
Ipc O \KnownDlls\SspiCli.dll
Ipc O \KnownDlls\user32.dll
Ipc O \KnownDlls\WS2_32.dll
Ipc O \RPC Control\lsapolicylookup
Ipc O \RPC Control\lsasspirpc
Ipc O \RPC Control\SbieSvcPort
Ipc O \Security\LSA_AUTHENTICATION_INITIALIZED
Ipc O \Sessions\1\BaseNamedObjects\__DDrawCheckExclMode__
Ipc O \Sessions\1\BaseNamedObjects\__DDrawExclMode__
Ipc O \Sessions\1\BaseNamedObjects\CicLoadWinStaWinSta0
Ipc O \Sessions\1\BaseNamedObjects\CTF.AsmListCache.FMPDefault1
Ipc O \Sessions\1\BaseNamedObjects\DDrawCheckFullscreenSemaphore
Ipc O \Sessions\1\BaseNamedObjects\DDrawDriverObjectListMutex
Ipc O \Sessions\1\BaseNamedObjects\DDrawWindowListMutex
Ipc O \Sessions\1\BaseNamedObjects\DirectSound DllMain mutex (0x00000DE8)
Ipc O \Sessions\1\BaseNamedObjects\DWM_DX_FULLSCREEN_TRANSITION_EVENT
Ipc O \Sessions\1\BaseNamedObjects\MSCTF.Asm.MutexDefault1
Ipc O \Sessions\1\BaseNamedObjects\MSCTF.CtfMonitorInstMutexDefault1
Ipc O \Sessions\1\Windows\ApiPort
Ipc O \Sessions\1\Windows\SharedSection
Ipc O \Sessions\1\Windows\Theme2029120713
Ipc O \Sessions\1\Windows\ThemeSection
Ipc O \ThemeApiPort
Ipc O \Windows\Theme282453274
Pipe -------------------------------
Pipe ?
Pipe \Device\CNG
Pipe \Device\HarddiskVolume3
Pipe \Device\HarddiskVolume4
Pipe \Device\KsecDD
Pipe \Device\MountPointManager
Pipe \Device\Ndis
WinCls -------------------------------
WinCls O Shell_TrayWnd
WinCls X Axis_Allies_Class
MERGED POST
Oh, and also, yes, I remember it used to work when I ran it sandboxed at some point in the past, but that was a while ago (can't remember what year that was).
-
- Sandboxie Support
- Posts: 2337
- Joined: Mon Nov 07, 2016 3:10 pm
Re: SetDisplayMode Failed!
Hello newuser1,
Why do you need to run this game inside Sandboxie?
I am not seeing much in your Resource Access Monitor, but here's something you can try:
Right click on your Sandbox ---> Sandbox Settings --->Resource Access ---> Windows Access
Click add, and paste:
Axis_Allies_Class
Hit Apply, Hit Okay
Go to Configure ---> Reload configuration
Delete contents of the Sandbox, and re try launching the game.
If that doesn't help, remove the Windows Class from your Sandbox.
Have you tried launching it in a new Sandbox with default settings?
You can see if the game would install inside Sandboxie (this may or may not work at all), as another test.
Regards,
Barb.-
Why do you need to run this game inside Sandboxie?
I am not seeing much in your Resource Access Monitor, but here's something you can try:
Right click on your Sandbox ---> Sandbox Settings --->Resource Access ---> Windows Access
Click add, and paste:
Axis_Allies_Class
Hit Apply, Hit Okay
Go to Configure ---> Reload configuration
Delete contents of the Sandbox, and re try launching the game.
If that doesn't help, remove the Windows Class from your Sandbox.
Have you tried launching it in a new Sandbox with default settings?
You can see if the game would install inside Sandboxie (this may or may not work at all), as another test.
Regards,
Barb.-
Re: SetDisplayMode Failed!
Hi Barb,
I need to run it sandboxed because a gaming website that launches this game and connects me to other users is best run sandboxed for security reasons. I will try the steps that you mentioned and get back to you, but sorry, can you explain what you mean and how to remove the Windows Class from my Sandbox? And would doing so create other security risks? And also sorry I'm not sure what you mean by launching the game in a "new" Sandbox with default settings? Do you mean if I just click "Delete Contents", my Sandbox (I only have one Sandbox on my computer) would become a new Sandbox again? Yes, I have tried that, but still get the same problem. Have also tried uninstalling Sandbox and re-installing it, same thing happens.
I need to run it sandboxed because a gaming website that launches this game and connects me to other users is best run sandboxed for security reasons. I will try the steps that you mentioned and get back to you, but sorry, can you explain what you mean and how to remove the Windows Class from my Sandbox? And would doing so create other security risks? And also sorry I'm not sure what you mean by launching the game in a "new" Sandbox with default settings? Do you mean if I just click "Delete Contents", my Sandbox (I only have one Sandbox on my computer) would become a new Sandbox again? Yes, I have tried that, but still get the same problem. Have also tried uninstalling Sandbox and re-installing it, same thing happens.
-
- Sandboxie Support
- Posts: 2337
- Joined: Mon Nov 07, 2016 3:10 pm
Re: SetDisplayMode Failed!
Hello newuser1,
You are always punching holes in the Sandbox in order to allow communication between Sandboxed apps and your host. Some are more risky than others. In this case, it is a specific class related to a game, it should be fine as long as you use it on a specific Sandbox.
Regards,
Barb.-
Is there a launcher involved? If so, it may not work Sandboxed.a gaming website that launches this game and connects me to other users
The steps I provided are for you to add a class for the particular game, if they do not work, revert them by removing the class from your Sandbox.can you explain what you mean and how to remove the Windows Class from my Sandbox?
You are always punching holes in the Sandbox in order to allow communication between Sandboxed apps and your host. Some are more risky than others. In this case, it is a specific class related to a game, it should be fine as long as you use it on a specific Sandbox.
Sandboxie Control ---> Sandbox --> Create new SandboxI'm not sure what you mean by launching the game in a "new" Sandbox with default settings?
Regards,
Barb.-
Re: SetDisplayMode Failed!
Hi Barb,
Thanks for all your instructions. I will try them. Sorry, I'm not sure what you mean by a "launcher", but the same SetDisplayMode Failed error popup appears regardless of whether I try to run the game offline manually, without using the website, from my hard drive (by clicking the game's .exe file) or whether the website tries to launch the game automatically, so would that fact mean that there is no launcher involved?
Thanks for all your instructions. I will try them. Sorry, I'm not sure what you mean by a "launcher", but the same SetDisplayMode Failed error popup appears regardless of whether I try to run the game offline manually, without using the website, from my hard drive (by clicking the game's .exe file) or whether the website tries to launch the game automatically, so would that fact mean that there is no launcher involved?
-
- Sandboxie Support
- Posts: 2337
- Joined: Mon Nov 07, 2016 3:10 pm
Re: SetDisplayMode Failed!
Hello newuser1,
A launcher is an application that launches another application.
When conducting your tests, try launching the game via its executable file, without using the website, as you mentioned.
(Make sure it works outside Sandboxie first).
Regards,
Barb.-
A launcher is an application that launches another application.
When conducting your tests, try launching the game via its executable file, without using the website, as you mentioned.
(Make sure it works outside Sandboxie first).
Regards,
Barb.-
Re: SetDisplayMode Failed!
Yes, as I had mentioned, the game runs outside Sandboxie with no problem (both offline and via the website). I guess the gaming website must have some kind of launcher, but given the circumstances (same problem both offline and online) I guess the launcher can't be the cause of the error message I'm getting.
How do I right click a program and make it "Run Sandboxed" in the new alternate Sandbox that I created (instead of in the Default box) ?
Also, in the "Create a New Sandbox" tab, under "Copy settings from existing sandbox", do I select "None" or "Default Box" in order to create a new Sandbox with truly default settings?
How do I right click a program and make it "Run Sandboxed" in the new alternate Sandbox that I created (instead of in the Default box) ?
Also, in the "Create a New Sandbox" tab, under "Copy settings from existing sandbox", do I select "None" or "Default Box" in order to create a new Sandbox with truly default settings?
-
- Sandboxie Support
- Posts: 2337
- Joined: Mon Nov 07, 2016 3:10 pm
Re: SetDisplayMode Failed!
Hello newuser1,
After you create the new Sandbox, when you right-click on a file and select Run Sandboxed, you will be prompted with options to select which Sandbox you want to use.
Regards,
Barb.-
How do I right click a program and make it "Run Sandboxed" in the new alternate Sandbox that I created (instead of in the Default box)
After you create the new Sandbox, when you right-click on a file and select Run Sandboxed, you will be prompted with options to select which Sandbox you want to use.
"None" is correct, as it will be creating a New Sandbox, instead of copying another one.Also, in the "Create a New Sandbox" tab, under "Copy settings from existing sandbox", do I select "None" or "Default Box" in order to create a new Sandbox with truly default settings?
Regards,
Barb.-
Re: SetDisplayMode Failed!
Hi Barb,
Adding that Windows Access Windows Class to a new Sandbox with default settings did not work did not work. I still get the same SetDisplayMode Failed! popup error that prevents the application from running. Are there any ideas that you can think of as to why this is happening and also whether there might be some other way to get it to work (besides trying to install it in a Sandbox) ? Thanks again for all your time and help with this.
Adding that Windows Access Windows Class to a new Sandbox with default settings did not work did not work. I still get the same SetDisplayMode Failed! popup error that prevents the application from running. Are there any ideas that you can think of as to why this is happening and also whether there might be some other way to get it to work (besides trying to install it in a Sandbox) ? Thanks again for all your time and help with this.
-
- Sandboxie Support
- Posts: 2337
- Joined: Mon Nov 07, 2016 3:10 pm
Re: SetDisplayMode Failed!
Hello newuser1,
You can try running the game in compatibility mode, see if any combinations work (plenty of options to choose from such as different OS, run as admin, color, windowed, etc... ).
Also try running the game in OpenGL if that option is available (you may have to google this to see if there is such an option for it).
One more thing to try in Sandboxie:
Right click on your Sandbox ---> Sandbox Settings --->Resource Access ---> COM Access
Click add, and paste:
{D7B70EE0-4340-11CF-B063-0020AFC2CD35}
Hit Apply, Hit Okay
Go to Configure ---> Reload configuration
Delete contents of the Sandbox, and re try launching the game.
If that doesn't help, remove the Windows Class from your Sandbox.
Other than that, you can try installing it in the Sandbox and see if that works.
It may be that the game doesn't work Sandboxed.
Regards,
Barb.-
You can try running the game in compatibility mode, see if any combinations work (plenty of options to choose from such as different OS, run as admin, color, windowed, etc... ).
Also try running the game in OpenGL if that option is available (you may have to google this to see if there is such an option for it).
One more thing to try in Sandboxie:
Right click on your Sandbox ---> Sandbox Settings --->Resource Access ---> COM Access
Click add, and paste:
{D7B70EE0-4340-11CF-B063-0020AFC2CD35}
Hit Apply, Hit Okay
Go to Configure ---> Reload configuration
Delete contents of the Sandbox, and re try launching the game.
If that doesn't help, remove the Windows Class from your Sandbox.
Other than that, you can try installing it in the Sandbox and see if that works.
It may be that the game doesn't work Sandboxed.
Regards,
Barb.-
Re: SetDisplayMode Failed!
Hi again Barb,
Sorry for my delay in reporting back to you after trying all the things that you mentioned, but I am happy to say that I have some new information and clues to provide you now and hope, with you as the master detective, these might help us crack this case.
First of all, the game does install fine in the Sandbox, and the very first time the game opens and runs there, it does so with no problem, BUT after closing the game, on every subsequent attempt to open and run the game in the Sandbox, the exact same SetDisplayMode Failed! error popup appears (preventing the game from opening again).
When I add the Windows Access class that you mentioned, the same error appears.
But when I add the COM Access class that you mentioned (I added it in addition to the existing Windows Access class, but was I supposed to add it only by itself after removing the Windows Access class ? ), this somewhat different popup error message appears:
LIB_InitVideo: ERROR 0x80040155
Can't Create the DirectDraw2 object.
So I hope these new clues might be helpful to your tireless efforts in trying to figure out what is going on.
Most grateful for all your assistance.
Sorry for my delay in reporting back to you after trying all the things that you mentioned, but I am happy to say that I have some new information and clues to provide you now and hope, with you as the master detective, these might help us crack this case.
First of all, the game does install fine in the Sandbox, and the very first time the game opens and runs there, it does so with no problem, BUT after closing the game, on every subsequent attempt to open and run the game in the Sandbox, the exact same SetDisplayMode Failed! error popup appears (preventing the game from opening again).
When I add the Windows Access class that you mentioned, the same error appears.
But when I add the COM Access class that you mentioned (I added it in addition to the existing Windows Access class, but was I supposed to add it only by itself after removing the Windows Access class ? ), this somewhat different popup error message appears:
LIB_InitVideo: ERROR 0x80040155
Can't Create the DirectDraw2 object.
So I hope these new clues might be helpful to your tireless efforts in trying to figure out what is going on.
Most grateful for all your assistance.
-
- Sandboxie Support
- Posts: 2337
- Joined: Mon Nov 07, 2016 3:10 pm
Re: SetDisplayMode Failed!
Hello newuser1,
Try navigating to your Sandbox location, typically C:\Sandbox\Username\SandboxName\PathToTheInstalledFile and launch the game via there.
The COM class I provided for your installation outside Sandboxie was the one related to DirectDraw, so if that doesn't do it, it may just not work in Sandboxie.
Regards,
Barb.-
Are you running the game from the location inside the Sandbox or from a previously created shortcut? (If the game is on your host, you will have to create a new shortcut to the Sandboxed installed version).First of all, the game does install fine in the Sandbox, and the very first time the game opens and runs there, it does so with no problem, BUT after closing the game, on every subsequent attempt to open and run the game in the Sandbox, the exact same SetDisplayMode Failed! error popup appears (preventing the game from opening again).
Try navigating to your Sandbox location, typically C:\Sandbox\Username\SandboxName\PathToTheInstalledFile and launch the game via there.
The COM class I provided for your installation outside Sandboxie was the one related to DirectDraw, so if that doesn't do it, it may just not work in Sandboxie.
Regards,
Barb.-
Re: Axis and Allies - SetDisplayMode Failed!
Yes, I was always running the game from inside the Sandbox and didn't use a shortcut. But I found a solution: running the Compatibility Troubleshooter and choosing any version of Windows at all and saving those settings (my only guess is that maybe Windows does not consider the Sandbox volume to be any version of "real" Windows? )
Who is online
Users browsing this forum: No registered users and 1 guest