Bug 43048 - src/gallium/drivers/llvmpipe/lp_texture.c:93:alloc_layout_array: Assertion `num_slices * tx * ty > 0' failed.
Summary: src/gallium/drivers/llvmpipe/lp_texture.c:93:alloc_layout_array: Assertion `n...
Status: RESOLVED DUPLICATE of bug 43047
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium critical
Assignee: Brian Paul
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-17 14:54 UTC by Vinson Lee
Modified: 2011-11-28 17:12 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Vinson Lee 2011-11-17 14:54:01 UTC
mesa: 08b288be8e3ac7f2781104bf3ca6557731bcd534 (master)

Use llvmpipe.
Open Firefox.
Go to WebGL Conformance Tests.
https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/webgl-conformance-tests.html
Run renderbuffers test.

src/gallium/drivers/llvmpipe/lp_texture.c:93:alloc_layout_array: Assertion `num_slices * tx * ty > 0' failed.

(gdb) bt
#0  0x13fe50cb in _debug_assert_fail (expr=0x14a2ae08 "num_slices * tx * ty > 0", 
    file=0x14a2addc "src/gallium/drivers/llvmpipe/lp_texture.c", line=93, function=0x14a2b6a8 "alloc_layout_array")
    at src/gallium/auxiliary/util/u_debug.c:282
#1  0x13ce6cc2 in alloc_layout_array (num_slices=1, width=0, height=0) at src/gallium/drivers/llvmpipe/lp_texture.c:93
#2  0x13ce7016 in llvmpipe_displaytarget_layout (screen=0x9e636b80, lpr=0x9ecbfd20) at src/gallium/drivers/llvmpipe/lp_texture.c:210
#3  0x13ce7170 in llvmpipe_resource_create (_screen=0x9e636b80, templat=0xbfdda348) at src/gallium/drivers/llvmpipe/lp_texture.c:244
#4  0x13e64312 in st_renderbuffer_alloc_storage (ctx=0xb18e9000, rb=0xa8685e20, internalFormat=32856, width=0, height=0)
    at src/mesa/state_tracker/st_cb_fbo.c:136
#5  0x13db45d7 in renderbuffer_storage (target=36161, internalFormat=32856, width=0, height=0, samples=0)
    at src/mesa/main/fbobject.c:1414
#6  0x13db4af8 in _mesa_RenderbufferStorageEXT (target=36161, internalFormat=32856, width=0, height=0)
    at src/mesa/main/fbobject.c:1539
#7  0x013b983e in fRenderbufferStorage (height=0, width=0, internalFormat=32856, target=36161, this=<optimized out>)
    at ../../../dist/include/GLContext.h:2072
#8  mozilla::WebGLContext::RenderbufferStorage (this=0xb1511700, target=36161, internalformat=32854, width=0, height=0)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/content/canvas/src/WebGLContextGL.cpp:3294
#9  0x0177c0f0 in nsIDOMWebGLRenderingContext_RenderbufferStorage (cx=0xac96a190, argc=4, vp=0xb25fe058)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/obj-i686-linux-gnu/js/src/xpconnect/src/dom_quickstubs.cpp:32976
#10 0x01de54fd in CallJSNative (args=..., native=<optimized out>, cx=0xac96a190)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/js/src/jscntxtinlines.h:296
#11 js::InvokeKernel (cx=0xac96a190, argsRef=..., construct=js::NO_CONSTRUCT)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/js/src/jsinterp.cpp:660
#12 0x01dd2f7a in js::Interpret (cx=0xac96a190, entryFrame=0xb25fe020, interpMode=js::JSINTERP_NORMAL)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/js/src/jsinterp.cpp:4036
#13 0x01de61d5 in ExecuteKernel (result=0x0, thisv=..., scopeChain=<optimized out>, script=0xa78e21f0, cx=0xac96a190, 
    type=<optimized out>, evalInFrame=<optimized out>)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/js/src/jsinterp.cpp:814
#14 js::Execute (cx=0xac96a190, script=0xa78e21f0, scopeChainArg=..., rval=0x0)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/js/src/jsinterp.cpp:853
#15 0x01d40f86 in EvaluateUCScriptForPrincipalsCommon (compileVersion=JSVERSION_DEFAULT, rval=0x0, lineno=19, 
    filename=0x9f57d168 "https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/renderbuffers/framebuffer-object-attachment.html", length=18634, chars=0x9eee4008, principals=0x9eeaae74, obj=0xa9313388, cx=0xac96a190)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/js/src/jsapi.cpp:4933
#16 JS_EvaluateUCScriptForPrincipalsVersion (cx=0xac96a190, obj=0xa9313388, principals=0x9eeaae74, chars=0x9eee4008, length=18634, 
    filename=0x9f57d168 "https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/renderbuffers/framebuffer-object-attachment.html", lineno=19, rval=0x0, version=JSVERSION_DEFAULT)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/js/src/jsapi.cpp:4945
#17 0x014d5f42 in EvaluateString (aIsUndefined=0xbfddaa94, aRetValue=0x0, aVersion=0, aLineNo=19, 
    aURL=0x9f57d168 "https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/renderbuffers/framebuffer-object-attachment.html", aPrincipal=0x9eeaae70, aScopeObject=0xa9313388, aScript=..., this=0x9e643880)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/dom/base/nsJSEnvironment.cpp:1476
#18 nsJSContext::EvaluateString (this=0x9e643880, aScript=..., aScopeObject=0xa9313388, aPrincipal=0x9eeaae70, 
    aURL=0x9f57d168 "https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/renderbuffers/framebuffer-object-attachment.html", aLineNo=19, aVersion=0, aRetValue=0x0, aIsUndefined=0xbfddaa94)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/dom/base/nsJSEnvironment.cpp:1373
#19 0x0137eb15 in nsScriptLoader::EvaluateScript (this=0x9f513180, aRequest=0x9f526790, aScript=...)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/content/base/src/nsScriptLoader.cpp:906
#20 0x0137f68e in nsScriptLoader::ProcessRequest (this=0x9f513180, aRequest=0x9f526790)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/content/base/src/nsScriptLoader.cpp:799
#21 0x013809fb in nsScriptLoader::ProcessScriptElement (this=0x9f513180, aElement=0xa0f636e0)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/content/base/src/nsScriptLoader.cpp:745
#22 0x0137db47 in nsScriptElement::MaybeProcessScript (this=0xa0f636e0)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/content/base/src/nsScriptElement.cpp:182
#23 0x01435206 in nsHTMLScriptElement::MaybeProcessScript (this=0xa0f636a0)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/content/html/content/src/nsHTMLScriptElement.cpp:333
#24 0x01435f00 in nsHTMLScriptElement::DoneAddingChildren (this=0xa0f636a0, aHaveNotified=1)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/content/html/content/src/nsHTMLScriptElement.cpp:260
#25 0x015b7afb in nsHtml5TreeOpExecutor::RunScript (this=0x9e6e9860, aScriptElement=0xa0f636a0)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/parser/html/nsHtml5TreeOpExecutor.cpp:736
#26 0x015b88e9 in nsHtml5TreeOpExecutor::RunFlushLoop (this=0x9e6e9860)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/parser/html/nsHtml5TreeOpExecutor.cpp:531
#27 0x015b8942 in nsHtml5ExecutorReflusher::Run (this=0x9f570230)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/parser/html/nsHtml5TreeOpExecutor.cpp:94
#28 0x01b85fae in nsThread::ProcessNextEvent (this=0xb767f9a0, mayWait=0, result=0xbfddb29c)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/xpcom/threads/nsThread.cpp:631
#29 0x01b549d4 in NS_ProcessNextEvent_P (thread=<optimized out>, mayWait=0)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/obj-i686-linux-gnu/xpcom/build/nsThreadUtils.cpp:245
#30 0x01a7330a in mozilla::ipc::MessagePump::Run (this=0xb7205370, aDelegate=0xb764d900)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/ipc/glue/MessagePump.cpp:110
#31 0x01ba8438 in MessageLoop::RunInternal (this=0xb764d900)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/ipc/chromium/src/base/message_loop.cc:208
#32 0x01ba8560 in RunHandler (this=0xb764d900)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/ipc/chromium/src/base/message_loop.cc:201
#33 MessageLoop::Run (this=0xb764d900)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/ipc/chromium/src/base/message_loop.cc:175
#34 0x019c296e in nsBaseAppShell::Run (this=0xb54d72e0)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/widget/src/xpwidgets/nsBaseAppShell.cpp:189
#35 0x01870181 in nsAppStartup::Run (this=0xb54e35e0)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/toolkit/components/startup/nsAppStartup.cpp:228
#36 0x01033395 in XRE_main (argc=1, argv=0xbfdddb34, aAppData=0xb7616800)
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/toolkit/xre/nsAppRunner.cpp:3557
#37 0x009428ff in do_main (argv=0xbfdddb34, argc=1, exePath=0xbfddba7c "/usr/lib/firefox-9.0/libxpcom.so")
    at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/browser/app/nsBrowserApp.cpp:198
#38 main (argc=1, argv=0xbfdddb34) at /build/buildd/firefox-9.0~b1+build1/build-tree/mozilla/browser/app/nsBrowserApp.cpp:281
(gdb) frame 1
#1  0x13ce6cc2 in alloc_layout_array (num_slices=1, width=0, height=0) at src/gallium/drivers/llvmpipe/lp_texture.c:93
93	   assert(num_slices * tx * ty > 0);
(gdb) print num_slices
$1 = 1
(gdb) print tx
$2 = 0
(gdb) print ty
$3 = 0
Comment 1 Brian Paul 2011-11-28 17:12:05 UTC
Fixed with commit 68564726898308c9fd7ac63169bfc2e2012d6fe3

*** This bug has been marked as a duplicate of bug 43047 ***


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.