opengl error with i830_vtbl.c:465: i830_emit_state: Assertion `0' failed.

Bug #292010 reported by Eero Pajarre
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
mesa (Ubuntu)
Won't Fix
Wishlist
Unassigned

Bug Description

Binary package hint: libgl1-mesa-dri

this happens with my own OpenGL program on 8.10.
I have been porting the program from Windows and from
a more capable graphics card to Ubuntu and not so powerful
Intel graphics chip, so it is quite possible that my program still has
bugs in it. Still this failure is not proper way for OpenGL to behave.

I probably should go with this directly to Mesa people?

  Eero

[lspci]
00:00.0 Host bridge [0600]: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface [8086:2570] (rev 02)
     Subsystem: Hewlett-Packard Company Device [103c:12bc]
00:02.0 VGA compatible controller [0300]: Intel Corporation 82865G Integrated Graphics Controller [8086:2572] (rev 02)
     Subsystem: Hewlett-Packard Company Device [103c:12bc]

Revision history for this message
Eero Pajarre (epajarre) wrote :

The reason for the program crash is that for some reason the distributed version has been
compiled with assertions active, and the code contains assert(0).

This assert is after the DRI code which sets up an an out of memory error message.
   if (ret) {
       if (count == 0) {
    count++;
    intel_batchbuffer_flush(intel->batch);
    goto again;
       } else {
    _mesa_error(ctx, GL_OUT_OF_MEMORY, "i830 emit state");
    assert(0);
       }
   }

I suspect that in this case the GL_OUT_OF_MEMORY condition would have been
more useful for me as an application developer. Maybe the library should be distributed
without the asserts compiled in?

Revision history for this message
Bryce Harrington (bryce) wrote :

Hi epajarre,

Please attach the output of `lspci -vvnn`, and attach your /var/log/Xorg.0.log file from after reproducing this issue. If you've made any customizations to your /etc/X11/xorg.conf please attach that as well.

Changed in mesa:
status: New → Incomplete
Revision history for this message
Eero Pajarre (epajarre) wrote :

Adding requested attachments.
The Xorg.0.log seems to indicate an "out of texture memory"
condition, which can be disappointing, but true.
(Still the OpenGL should return the corresponding error,
not abort)

Revision history for this message
Eero Pajarre (epajarre) wrote :

(got only one attachment per message ?)

Revision history for this message
Geir Ove Myhr (gomyhr) wrote :

Yes, the web interface currently only allows only one attachment per message. See bug 82652 for progress on this. The email interface allows you to upload many attachments at once by sending an email with a comment and attachments to <bugnr>@bugs.launchpad.net.

Changed in mesa:
status: Incomplete → New
Bryce Harrington (bryce)
Changed in mesa:
status: New → Confirmed
Bryce Harrington (bryce)
description: updated
Revision history for this message
Bryce Harrington (bryce) wrote :

Indeed, it's asserting on the memory condition rather than returning an error code, so this is a legitimate problem. The particular function this occurs in, i830_emit_state() has a void return though, so it's not clear what should be done differently. However probably we should send this upstream for their comment.

Changed in mesa (Ubuntu):
importance: Undecided → Wishlist
status: Confirmed → Triaged
Revision history for this message
Jon Stumpf (jon-stumpf) wrote :

Is there a workaround for this (e.g., disable desktop effects)?
Is there a timeframe to fix this issue?

Timo Aaltonen (tjaalton)
Changed in mesa (Ubuntu):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.