Skip to contentSkip to conversation

New: Command & Conquer 3 crashes with r300g

Bug 30131 [email protected] 1 participant 25 messages Sep 11, 2010 – Feb 17, 2011

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=30131

Summary: Command & Conquer 3 crashes with r300g
Product: Mesa
Version: git
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r300
AssignedTo: [email protected]
ReportedBy: [email protected]

Created an attachment (id=38618)
--> (https://bugs.freedesktop.org/attachment.cgi?id=38618)
wine output when trying to start C&C 3

When I try to start C&C 3 the game crashes during the starting of the game. See attached wine output.

Here are the software versions I use:
Kernel 2.6.35.4
Xorg-server 1.8.2
xf86-video-ati-git 966ac1be81da76c8aa4ea46b63f3ca5358a2c021 mesa-git 5ea092117fb607a5776f52d251f976c5691575c8

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#1 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

https://bugs.freedesktop.org/show_bug.cgi?id=30131

--- Comment #1 from Sven Arvidsson <[email protected]> 2010-09-11 06:30:18 PDT --- Hi,

Can this bug be reproduced with the demo?
http://www.gamershell.com/download_17978.shtml

It seems to be working for me with git master and Wine 1.2.

System environment:
-- system architecture: 32-bit
-- Linux distribution: Debian unstable
-- GPU: RV570
-- Model: Asus EAX1950Pro 256MB
-- Display connector: DVI
-- xf86-video-ati: e9928fe036e9382fd7bc353f3f05531445f08977 -- xserver: 1.8.99.904 (1.9.0 RC 5)
-- mesa: 3ad3cbfb120efa74e77f838d9fd3f1212dd0e47b -- drm: 23287f05cf2443ddf9e028e29beb5bd30979c6cf -- kernel: 2.6.35

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#2 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

Tom Stellard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #38618|application/octet-stream    |text/plain
          mime type|                            |
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#3 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

--- Comment #2 from Martin Stolpe <[email protected]> 2010-09-12 15:29:08 PDT --- Created an attachment (id=38655)
--> (https://bugs.freedesktop.org/attachment.cgi?id=38655)
crash log

The demo crashes the xorg server.
mesa is at git version 5ea092117fb607a5776f52d251f976c5691575c8

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#4 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

--- Comment #3 from Marek Olšák <[email protected]> 2010-09-13 00:35:43 PDT --- What's your GPU?

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

--- Comment #5 from Marek Olšák <[email protected]> 2010-12-17 04:56:40 PST --- Martin, is this still an issue with current Mesa git and latest wine?

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#7 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

--- Comment #6 from Martin Stolpe <[email protected]> 2010-12-22 12:47:13 PST --- Created an attachment (id=41378)
--> (https://bugs.freedesktop.org/attachment.cgi?id=41378)
wine output

Unfortunately this is still a problem with the latest mesa git.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#8 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

--- Comment #7 from Marek Olšák <[email protected]> 2010-12-22 13:21:40 PST --- The game should not crash the X server. If it does, you are probably using indirect rendering, which might happen with 32-bit apps on x86_64 systems. Indirect rendering is buggy, slow, contains only a subset of features r300g offers, and gets very little testing AFAIK. So please make sure the game uses direct rendering. I should mention that using a 32-bit system may help.

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#9 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

--- Comment #8 from Martin Stolpe <[email protected]> 2010-12-23 04:25:51 PST --- Hello Marek,

(In reply to comment #7)

Quoted 1 line

The game should not crash the X server.

It doesn't crash the X server. The game tries to start but it will crash right before it is supposed to switch to the graphical full screen mode.

Quoted 1 line

indirect rendering, which might happen with 32-bit apps on x86_64 systems.

The system is a 32 bit system

Quoted 3 lines

Indirect rendering is buggy, slow, contains only a subset of features r300g offers, and gets very little testing AFAIK. So please make sure the game uses direct rendering. I should mention that using a 32-bit system may help.

Where can I check what type of rendering I'm using. Should it be mentioned in the Xorg.log? I'm not at the system right now so I can't look.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#10 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

--- Comment #9 from Marek Olšák <[email protected]> 2010-12-23 04:37:22 PST --- Then you are most probably using direct rendering. Could you possibly obtain a backtrace (i.e. call stack) of the crash?

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#11 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

--- Comment #10 from Martin Stolpe <[email protected]> 2010-12-23 12:40:36 PST --- (In reply to comment #9)

Quoted 2 lines

Then you are most probably using direct rendering. Could you possibly obtain a backtrace (i.e. call stack) of the crash?

I've tried to switch on wine_d3d, x11drv, x11settings, xrandr, xrender and xvidmode debug channels in wine, but the resulting log file doesn't seem to give any hints about the error (if you're interested I can upload the log file).

Are there any other debug settings which I can turn on, which could help you identifying the cause of the crash?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#12 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

Pavel Ondračka <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #11 from Pavel Ondračka <[email protected]> 2010-12-23 13:26:15 PST ---

Quoted 2 lines

Are there any other debug settings which I can turn on, which could help you identifying the cause of the crash?

You may find some useful info about obtaining backtraces with Wine here:
http://wiki.winehq.org/Backtraces

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#13 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

--- Comment #12 from Marek Olšák <[email protected]> 2011-02-10 17:43:30 PST --- Is this issue still present with the current Mesa master branch?

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#14 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

--- Comment #13 from Martin Stolpe <[email protected]> 2011-02-11 08:42:16 PST --- I've compiled mesa from git today and the error is still the same.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#15 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

--- Comment #14 from Marek Olšák <[email protected]> 2011-02-11 09:33:17 PST --- Too bad there's nothing I can do without the backtrace.

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#16 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

--- Comment #15 from Martin Stolpe <[email protected]> 2011-02-11 11:15:40 PST --- (In reply to comment #14)

Quoted 1 line

Too bad there's nothing I can do without the backtrace.

Sorry, I overlooked your comment about using winedebug. Here is the output from winedebug:

Wine-dbg>set $BreakOnFirstChance=0
Wine-dbg>cont
fixme:imm:ImmDisableTextFrameService Stub fixme:thread:SetThreadIdealProcessor (0x9c): stub fixme:thread:SetThreadIdealProcessor (0x134): stub fixme:thread:SetThreadIdealProcessor (0x138): stub fixme:d3d9:D3DPERF_GetStatus (void) : stub fixme:win:EnumDisplayDevicesW ((null),0,0x335e878,0x00000000), stub!
wine: cannot find L"C:\\windows\\system32\\ShaderAssetBuilder.exe" fixme:font:WineEngAddFontResourceEx Ignoring flags 30 fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x159690,0x15e158): stub fixme:faultrep:ReportFault 0x335efd4 0x0 stub err:mmtime:TIME_MMTimeStop Timer still active?!
Process of pid=002f has terminated

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#17 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

--- Comment #16 from Pavel Ondračka <[email protected]> 2011-02-11 12:57:52 PST --- I've found my copy of C&C3 so I thought I'll try to reproduce this. However I don't get any crash at startup. I get a crash when switching desktops or alt-tabing from game, but backtrace doesn't show any signs of a driver crash, so this is probably some unrelated Wine or C&C3 crash.

Martin, here is what I found when looking into this that you may find useful. IMHO you aren't getting backtrace because the crash is happening in some other process. You need to start the game, switch to terminal, start winedbg, list process, attach to the right one (probably cnc3game.dat or some other) and trigger the crash. Hopefully you will get some backtrace then.

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#18 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

--- Comment #17 from Martin Stolpe <[email protected]> 2011-02-12 00:55:54 PST --- Hi Marek,

thanks a lot for your effort in investigating the problem! I can't attach winedebug because the game crashes right after the splash screen that means that the game is loading for a few seconds before it crashes. I've tried to list the processes during the startup but haven't seen cnc3game.dat in the process list. I'm going to install the game into a clean WINEPREFIX to see what happens then.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#19 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

--- Comment #18 from Martin Stolpe <[email protected]> 2011-02-13 10:03:49 PST --- I've created a new wine bottle and installed the game there. I've also disabled sounds with winecfg as suggested in the wine appDB. Now the game loads just after the splash screen. After the splash screen the game goes to full screen mode but the screen contents is gabled.

I've uploaded my PKGBUILD here: http://aur.pastebin.com/Y7bzfPdV

The commented lines is the configuration I was using before and below is my current configuration for mesa. Marek, can you post your configuration options for mesa so that I can compare if you're using different compile options?

I've also tried to compile mesa with the classic r300 driver and the game doesn't work either (behaviour is exactly the same as with the gallium driver). If I remember correctly the game was running with the classic driver although there were some heavy artifacts in the game appearing. So probably I'm missing something else...

I'll try again with the original packages from my distro and then report back.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#20 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

Martin Stolpe <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |NOTABUG

--- Comment #19 from Martin Stolpe <[email protected]> 2011-02-13 12:21:16 PST --- Ok, it works with the packages from my distro. Still I have no idea what went wrong. I will play a little bit more with mesa and see if I stumble on anything useful on why this wasn't working...

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#21 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

Martin Stolpe <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|RESOLVED                    |REOPENED
         Resolution|NOTABUG                     |

--- Comment #20 from Martin Stolpe <[email protected]> 2011-02-16 14:38:41 PST --- I've found the culprit for the problem and reopened the bug because of this. Perhaps it's worth opening a new bug or report a bug for gcc. The problem is the following:
-I'm running Archlinux 32 Bit
-When I use "-mfpmath=sse" as an option for my CFLAGS and CXXFLAGS the game will crash. Only exception is when I select a processor type which doesn't support SSE as "-march" option. "-mmmx", "-msse", "-msse2" and "-msse3" have no influence on the behaviour (I'm not sure if those options are only valid when used in conjunction with some other option?)

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#22 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

--- Comment #21 from Marek Olšák <[email protected]> 2011-02-16 16:11:48 PST --- I guess it should be filed as a gcc bug. Does any other version of gcc work with the switch?

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#23 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

--- Comment #22 from Matt Turner <[email protected]> 2011-02-16 17:42:25 PST --- (In reply to comment #20)

Quoted 1 line

-When I use "-mfpmath=sse" as an option ...

This flag is not going to make anything faster. Don't use it. (Citation: I'm a Gentoo developer.)

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#24 lore raw

[Bug 30131] Command & Conquer 3 crashes with r300g

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30131

Martin Stolpe <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|REOPENED                    |RESOLVED
         Resolution|                            |NOTABUG

--- Comment #23 from Martin Stolpe <[email protected]> 2011-02-17 11:56:59 PST --- Ok, so obviously this doesn't seem to be a mesa bug. So I think this bug report can be closed.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.