Bug 34154 - [i965] [GL_RENDER] tnl/t_draw.c:406: _tnl_draw_prims: Assertion `ctx->NewState == 0x0' failed.
Summary: [i965] [GL_RENDER] tnl/t_draw.c:406: _tnl_draw_prims: Assertion `ctx->NewStat...
Status: RESOLVED INVALID
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: git
Hardware: All Linux (All)
: medium critical
Assignee: Ian Romanick
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-10 17:40 UTC by logari81
Modified: 2013-02-08 22:54 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
backtrace (13.33 KB, application/octet-stream)
2011-02-10 17:40 UTC, logari81
Details

Description logari81 2011-02-10 17:40:02 UTC
Created attachment 43221 [details]
backtrace

Bug description:

Software Octave crashes on dumping image from a fltk/opengl plot.


System environment:
-- chipset: 8086:0046
-- system architecture: 64-bit
-- xf86-video-intel: 2.13.903+git20110104.a7c7a910-0ubuntu0sarvatt2~lucid
-- xserver: 1.8.2
-- mesa: 7.11.0+git20110118.e4be665b
-- libdrm: 2.4.23+git20110119.550fe2ca-0ubuntu0sarvatt~lucid
-- kernel: 2.6.37-020637
-- Linux distribution: Ubuntu 10.04

Reproducing steps:

1. Download and compile Octave 3.4 with fltk support.
2. Start octave and run
octave:1> graphics_toolkit fltk
octave:2> x = 0:0.1:2*pi; plot(x,sin(x));
libGL: OpenDriver: trying /usr/lib/dri/tls/i965_dri.so
libGL: OpenDriver: trying /usr/lib/dri/i965_dri.so
libGL: Can't open configuration file /etc/drirc: No such file or directory.
...
octave:3> print('tmp.png','-dpng')
octave: tnl/t_draw.c:406: _tnl_draw_prims: Assertion `ctx->NewState == 0x0' failed.
panic: Aborted -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
Aborted


Additional info:

In brw_draw_prims:
1. brw_try_draw_prims fails when it hits a GL_RENDER fallback
2. _tnl_draw_prims is called and hits the assertion that causes the crash
Comment 1 Eric Anholt 2011-07-13 08:44:45 UTC
I've failed before at getting this collection of software installed without building it myself, so this time I tried building a test that would catch the bug on its own (piglit rendermode-feedback test).  It didn't, though.

I wonder, could you get a trace of the failure using apitrace and attach it?  Then we can have a concrete thing to test without whatever developer having to go custom build software.
Comment 2 Eric Anholt 2013-02-08 22:54:06 UTC
Closing due to lack of feedback.  If you can get a trace that reproduces the problem, feel free to attach it and reopen the bug.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.