Starcraft 2 Access Violation

Questions about Wine on Linux
Locked
slvr42
Level 1
Level 1
Posts: 5
Joined: Thu Aug 05, 2010 1:48 am

Starcraft 2 Access Violation

Post by slvr42 »

SC was running fine until I changed graphics cards. (nvidia gt120 to quadro fx 3800) Now I can log in but If I try to continue campaign or play a bnet game it crashes with an Access Violation claiming the memory cannot be read or that it can't be written. I've upgraded the kernel, installed the latest drivers from nvidia and I'm running the latest wine build. Anyone have an idea of what is going on?

Ubuntu linux 10.04
Nvidia quadro fx 3800
wine 1.2
SC build 1.0.1.16195
Gert van den Berg

Starcraft 2 Access Violation

Post by Gert van den Berg »

On Thu, Aug 5, 2010 at 08:55, slvr42 <[email protected]> wrote:
I've upgraded the kernel, installed the latest drivers from nvidia and I'm running the latest wine build.  Anyone have an idea of what is going on?
That might be the problem, look at other threads... some new kernel /
driver combinations cause problems for Wine. Post exact kernel (from
'uname -a') and driver (glxinfo / GUI tool should help...) version..
(I'm not suer which versions causes problems, but other people are)
slvr42
Level 1
Level 1
Posts: 5
Joined: Thu Aug 05, 2010 1:48 am

Post by slvr42 »

Kernel Linux XXX 2.6.35-020635-generic #020635 SMP Mon Aug 2 09:08:21 UTC 2010 x86_64 GNU/Linux

OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro FX 3800/PCI/SSE2
OpenGL version string: 3.3.0 NVIDIA 256.44

After I installed the 3800 card I thought the fix 'was' to update to the newer kernel I had been running 2.6.32
slvr42
Level 1
Level 1
Posts: 5
Joined: Thu Aug 05, 2010 1:48 am

Post by slvr42 »

Have tried re installing SC with no effect. Still getting an error that says memory could not be read.
Gert van den Berg

Starcraft 2 Access Violation

Post by Gert van den Berg »

On Thu, Aug 5, 2010 at 09:16, slvr42 <[email protected]> wrote:
Kernel Linux XXX 2.6.35-020635-generic #020635 SMP Mon Aug 2 09:08:21 UTC 2010 x86_64 GNU/Linux

OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro FX 3800/PCI/SSE2
OpenGL version string: 3.3.0 NVIDIA 256.44

After I installed the 3800 card I thought the fix 'was' to update to the newer kernel I had been running 2.6.32
Somewhat different kernel version, might be related though?
http://forum.winehq.org/viewtopic.php?t ... hlight=256

nVidia 256.35 seem to be a better idea...

Gert
slvr42
Level 1
Level 1
Posts: 5
Joined: Thu Aug 05, 2010 1:48 am

Post by slvr42 »

Do you think it will matter that it is the X86 driver vs the 64bit?
Gert van den Berg

Starcraft 2 Access Violation

Post by Gert van den Berg »

On Thu, Aug 5, 2010 at 10:06, slvr42 <[email protected]> wrote:
Do you think it will matter that it is the X86 driver vs the 64bit?
It might...

Different versions of the driver might have different bugs...

You shouldn't be able to get the wrong version installed and
working... (Your OS determines which driver version you need)
slvr42
Level 1
Level 1
Posts: 5
Joined: Thu Aug 05, 2010 1:48 am

Post by slvr42 »

Ok this is quickly turning into one of those things that will force my hand back to windows. The restricted nvidia drivers from ubuntu, installed via the hardware drivers, do not work with the quadro 3800's.(you cannot enable compiz no matter what and wine throws a active x problem at you)

The new drivers from Nvidia work but SC crashed with the whole memory cannot be read error. It has to be the graphics card change and specifically wine not liking it. I'm going to go back to my old card tomorrow and see what the deal is.
ttempje
Level 1
Level 1
Posts: 5
Joined: Thu Aug 05, 2010 8:33 am

Post by ttempje »

I have they same problem after upgrading to a GTX-460 card.
I have the problem using wine 1.2 and also using crossover games 9.1.

StarCraft 2 crashes with an ACCESS_VIOLATION (0xC0000005) when starting a campaign or tutorial or when changing the display settings.

This is using a fresh and updated install of Linux Mint 9 using NVIDIA 256.44 drivers (the first ones to officially support the new GTX-460 cards). I use the default Linux Mint 9 kernel (Linux 2.6.32.21-generic).

When using my old videocard (NVIDIA 7900 GS) and the same 256.44 driver Starcraft works (but the performance is not very good).
It may have something to do that the GTX-460 is detected as a NVIDIA GeForce 8300 GS according to the ErrorReporter. In the Nvidia config tool the GTX-460 is detected normally and the card seems to function fine in other linux applications.

I have also entered a support ticket for crossover games with this problem since the game is officially supported. But if anyone here has a solution for running the game using wine, that is fine for me also.

http://www.codeweavers.com/support/tick ... et_level=3
ttempje
Level 1
Level 1
Posts: 5
Joined: Thu Aug 05, 2010 8:33 am

Post by ttempje »

I tried a lot of different things: upgrading the kernel, upgrading the nvidia driver, newer version of wine etc, installing packages etc. etc.. But these sometimes seem to introduce new problems and not solve the original one.

BUT in the end I did find a solution:
run regedit and add the following key value pairs (all strings) in:
HYKEY_CURRENT_USER > Software > Wine > Direct3D

UseGLSL: disabled
OffscreenRenderingMode: fbo
DirectDrawRenderer: opengl
VideoMemorySize: 768
(since I have a 768 MB geforce GTX 460)

it worked for me :)
ttempje
Level 1
Level 1
Posts: 5
Joined: Thu Aug 05, 2010 8:33 am

Post by ttempje »

I did some more testing and it appears that the following the fact the registry key is missing causes the problem:
VideoMemorySize: 768

I assume this is a bug in the automatic detection of the amount of memory on the card. Or maybe a bug in the nvidia driver in reporting the amount of memory.
ttempje
Level 1
Level 1
Posts: 5
Joined: Thu Aug 05, 2010 8:33 am

Post by ttempje »

ash11tw
Newbie
Newbie
Posts: 1
Joined: Tue Sep 07, 2010 10:53 am

Post by ash11tw »

Thanks for your work.
It fixed my GTX 460 problems.

But I still get low performance issue
In graphic setting, medium, high, utra high generates the same fps (around 10) and low gives me around 20 fps.
Do you have the same problem?
ttempje
Level 1
Level 1
Posts: 5
Joined: Thu Aug 05, 2010 8:33 am

Post by ttempje »

hmm, yes.
There have been more reports the performance is a LOT worse than on windows. I don't think it is an Nvidia only problem. I think people should just play it in low graphics mode, but I'm not sure.

I played (and finished) the game using crossover games on low graphic settings in 2560x1600. That runs perfectly acceptably on my computer (an old core 2 duo bought in 2007 but with 4GB RAM, a cheap intel 40GB SSD and this new graphics card). I briefly tried it using wine, I didn't notice much difference in performance. Both have the same bug btw that require you to set the video memory in the registry.

I haven't measured the fps (don't know how), but it appears smooth on low. On medium or higher setting it definitely isn't, that is quite choppy.
wengjiaren
Newbie
Newbie
Posts: 2
Joined: Thu Nov 15, 2012 4:29 am

Re: Starcraft 2 Access Violation

Post by wengjiaren »

I have this error too,But it's run on anothers software,When I click menu bar, Wine send this warring "AccessViolation",How can I solve this problem!
User avatar
dimesio
Moderator
Moderator
Posts: 13266
Joined: Tue Mar 25, 2008 10:30 pm

Re: Starcraft 2 Access Violation

Post by dimesio »

wengjiaren wrote:I have this error too,But it's run on anothers software,When I click menu bar, Wine send this warring "AccessViolation",How can I solve this problem!
Don't hijack threads. Start a new one with the details of your problem.
Locked