Skip to contentSkip to conversation

New: [r300g] Sins of a Solar Empire crash when entering menu

Bug 27996 [email protected] 1 participant 11 messages May 6, 2010 – May 14, 2010

lore
Share & tools
lore
#0 lore raw

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

Summary: [r300g] Sins of a Solar Empire crash when entering
menu
Product: Mesa
Version: git
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/r300
AssignedTo: [email protected]
ReportedBy: [email protected]

Created an attachment (id=35461)
--> (https://bugs.freedesktop.org/attachment.cgi?id=35461)
terminal output

I'm trying to run Sins of a Solar Empire with Wine 1.1.43 and r300g driver. Until commit dad962bafe8ffd7fdb35c28cfb8bbd5a297c8083 I was able to enter the menu and even start a new game, however some rendering was broken (almost everything black). Now when entering menu it crashes. I'm attaching terminal output and dmesg.

dad962bafe8ffd7fdb35c28cfb8bbd5a297c8083 is the first bad commit commit dad962bafe8ffd7fdb35c28cfb8bbd5a297c8083

Author: José Fonseca <[email protected]>
Date:   Tue May 4 15:41:19 2010 +0100

mesa/st: Fill in native program limits.

In the lack of more fine grained capabilities in Gallium, assume that if the pipe driver supports GLSL then native limits match Mesa software limits.
(cherry picked from commit 40a90cd11234a09c2477f5c9984dd6d9fac3f52c)

:040000 040000 cfc8a638f5c8e29d63316bc78ba58d808d064c1a
71c19fdbecf5fd0e113de6f79b4c00fd1eac4f29 M src

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
#1 lore raw

[Bug 27996] [r300g] Sins of a Solar Empire crash when entering menu

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

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

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

           Keywords|                            |regression
                 CC|                            |[email protected]
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
#2 lore raw

[Bug 27996] [r300g] Sins of a Solar Empire crash when entering menu

In reply to [email protected]

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

--- Comment #1 from Pavel Ondračka <[email protected]> 2010-05-06 08:51:49 PDT --- Created an attachment (id=35462)
--> (https://bugs.freedesktop.org/attachment.cgi?id=35462)
dmesg

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
#3 lore raw

[Bug 27996] [r300g] Sins of a Solar Empire crash when entering menu

In reply to [email protected]

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

--- Comment #2 from José Fonseca <[email protected]> 2010-05-06 09:25:34 PDT --- Hi Pavel,

The commit you mention enables features which were until now never advertised -- many applications were not using GLSL because they thought the hardware had no native support for it. It's likely the bug is in the this feature (GLSL compilation) and not on the commit itself.

Can you get a stack trace showing where inside the driver the crash is happening?

Jose

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
#4 lore raw

[Bug 27996] [r300g] Sins of a Solar Empire crash when entering menu

In reply to [email protected]

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

--- Comment #3 from Pavel Ondračka <[email protected]> 2010-05-06 09:28:53 PDT --- (In reply to comment #2)

Quoted 2 lines

Can you get a stack trace showing where inside the driver the crash is happening?

How can I do that?

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
#5 lore raw

[Bug 27996] [r300g] Sins of a Solar Empire crash when entering menu

In reply to [email protected]

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

--- Comment #4 from Pavel Ondračka <[email protected]> 2010-05-06 10:47:09 PDT --- Created an attachment (id=35464)
--> (https://bugs.freedesktop.org/attachment.cgi?id=35464)
wine backtrace

I was able to get a Wine backtrace, I hope this is helpful.

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 27996] [r300g] Sins of a Solar Empire crash when entering menu

In reply to [email protected]

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

--- Comment #5 from Marek Olšák <[email protected]> 2010-05-06 11:05:49 PDT --- From the first log:

"r300: Max size of the constant buffer is 256*4 floats."

immediately followed by abort in the code.

We really need fine-grained shader limits, applications seem to make fatal decisions based on them.

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 27996] [r300g] Sins of a Solar Empire crash when entering menu

In reply to [email protected]

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

--- Comment #6 from Marek Olšák <[email protected]> 2010-05-13 18:55:16 PDT --- Could you please re-test the game with current mesa git?

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
#8 lore raw

[Bug 27996] [r300g] Sins of a Solar Empire crash when entering menu

In reply to [email protected]

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

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

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

  Attachment #35461|0                           |1
        is obsolete|                            |
  Attachment #35464|0                           |1
        is obsolete|                            |

--- Comment #7 from Pavel Ondračka <[email protected]> 2010-05-14 05:23:00 PDT --- Created an attachment (id=35650)
--> (https://bugs.freedesktop.org/attachment.cgi?id=35650)
wine log

It still doesn't work, attaching new log.

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 27996] [r300g] Sins of a Solar Empire crash when entering menu

In reply to [email protected]

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

--- Comment #8 from Marek Olšák <[email protected]> 2010-05-14 11:15:04 PDT --- OK so the problem is the game creates a larger constant buffer than hw can handle, but it seems to use only a small portion of the buffer. I've changed the code so that it does not abort (commit 93c997a9146e0b50186df684f4847fb0124ada11). Please close the bug if it helps you.

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
#10 lore raw

[Bug 27996] [r300g] Sins of a Solar Empire crash when entering menu

In reply to [email protected]

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

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

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

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #9 from Pavel Ondračka <[email protected]> 2010-05-14 12:07:26 PDT --- The crash is gone now, closing

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