use with mesa
Burlen Loring
bloring at lbl.gov
Thu Nov 7 18:42:57 CET 2013
On 11/07/2013 09:31 AM, Alexander Monakov wrote:
>
> On Thu, 7 Nov 2013, Burlen Loring wrote:
>
>> Hi,
>>
>> I tried to use apitrace with a debug build of mesa today and it segv'd.
>> However it works fine when used with the system installed ATI drivers. With
>> the mesa build I tried setting LD_PRELOAD and LD_LIBRARY_PATH to no avail. Any
>> ideas what am I doing wrong?
> No. Many people use apitrace with Mesa, including debug builds. Try showing
> your exact command line and backtrace from gdb. Details on how you configured
> Mesa might also help.
>
> Alexander
Alexandr, thanks for trying to help, here are details you asked about.
my mesa conig:
./configure CXXFLAGS="-O2 -g" CFLAGS="-O2 -g" --disable-xvmc
--disable-glx --disable-dri --with-dri-drivers= --with-gallium-drivers=
--enable-texture-float --disable-shared-glapi --disable-egl
--with-egl-platforms= --enable-osmesa --with-osmesa-bits=32
--enable-gallium-llvm=no --prefix=/work/apps/mesa/devel/classic
how I ran apitrace
LD_PRELOAD=/work/apps/mesa/devel/classic/lib/libOSMesa32.so
/work/apps/apitrace/devel/bin/apitrace trace --output=mesa-line-trace
/work/VTK/vtk-mesa-dev/bin/vtkChartsCoreCxxTests "TestPieChart" "-D"
"/work/VTK/vtk-mesa-dev/ExternalData/Testing" "-T"
"/work/VTK/vtk-mesa-dev/Testing/Temporary" "-V"
"/work/VTK/vtk-mesa-dev/ExternalData/Charts/Core/Testing/Data/Baseline/TestPieChart.png"
apitrace: loaded
apitrace: tracing to mesa-line-trace
osmesa_choose_line_function
=========================================================
Process id 15522 Caught SIGSEGV at 0x0 address not mapped to object
Program Stack:
0x36eb635a90 : ??? [(???) ???:-1]
0x7fc71e5ee117 : ??? [(???) ???:-1]
0x7fc71e5e9566 : vtkPixelBufferObject::Upload3D(int, void*, unsigned
int*, int, long long*, int, int*) [(libvtkRenderingOpenGL-6.1.so.1) ???:-1]
0x7fc71e5e540a : ??? [(???) ???:-1]
0x7fc71e5e1594 : vtkOpenGLTexture::Load(vtkRenderer*)
[(libvtkRenderingOpenGL-6.1.so.1) ???:-1]
0x7fc71fa8e291 : vtkTexture::Render(vtkRenderer*)
[(libvtkRenderingCore-6.1.so.1) ???:-1]
0x7fc71fdba0b4 : vtkOpenGLContextDevice2D::DrawString(float*,
vtkUnicodeString const&) [(libvtkRenderingContext2D-6.1.so.1) ???:-1]
0x7fc71fdb9e20 : vtkOpenGLContextDevice2D::DrawString(float*,
vtkStdString const&) [(libvtkRenderingContext2D-6.1.so.1) ???:-1]
0x7fc71fd9f1df : vtkContext2D::DrawString(float, float, vtkStdString
const&) [(libvtkRenderingContext2D-6.1.so.1) ???:-1]
0x7fc723fa312a : vtkChartLegend::Paint(vtkContext2D*)
[(libvtkChartsCore-6.1.so.1) ???:-1]
0x7fc71fd97944 : ??? [(???) ???:-1]
0x7fc71fd968d1 : vtkAbstractContextItem::PaintChildren(vtkContext2D*)
[(libvtkRenderingContext2D-6.1.so.1) ???:-1]
0x7fc723faee0b : vtkChartPie::Paint(vtkContext2D*)
[(libvtkChartsCore-6.1.so.1) ???:-1]
0x7fc71fd97944 : ??? [(???) ???:-1]
0x7fc71fda9690 : vtkContextScene::Paint(vtkContext2D*)
[(libvtkRenderingContext2D-6.1.so.1) ???:-1]
0x7fc71fda2a6c : vtkContextActor::RenderOverlay(vtkViewport*)
[(libvtkRenderingContext2D-6.1.so.1) ???:-1]
0x7fc71fa5e18b : vtkRenderer::UpdateGeometry()
[(libvtkRenderingCore-6.1.so.1) ???:-1]
0x7fc71e5c4cc6 : vtkOpenGLRenderer::DeviceRender()
[(libvtkRenderingOpenGL-6.1.so.1) ???:-1]
0x7fc71fa5d3ba : vtkRenderer::Render() [(libvtkRenderingCore-6.1.so.1)
???:-1]
0x7fc71fa5ba75 : vtkRendererCollection::Render()
[(libvtkRenderingCore-6.1.so.1) ???:-1]
0x7fc71fa712f0 : vtkRenderWindow::DoStereoRender()
[(libvtkRenderingCore-6.1.so.1) ???:-1]
0x7fc71fa711f5 : vtkRenderWindow::DoFDRender()
[(libvtkRenderingCore-6.1.so.1) ???:-1]
0x7fc71fa70bc8 : vtkRenderWindow::DoAARender()
[(libvtkRenderingCore-6.1.so.1) ???:-1]
0x7fc71fa701ab : vtkRenderWindow::Render()
[(libvtkRenderingCore-6.1.so.1) ???:-1]
0x7fc71fa7cd39 : vtkRenderWindowInteractor::Render()
[(libvtkRenderingCore-6.1.so.1) ???:-1]
0x7fc71fa7e8fd : vtkRenderWindowInteractor::Initialize()
[(libvtkRenderingCore-6.1.so.1) ???:-1]
0x43867e : TestPieChart(int, char**) [(vtkChartsCoreCxxTests) ???:-1]
0x41a746 : main [(vtkChartsCoreCxxTests) ???:-1]
0x36eb621b75 : __libc_start_main [(libc.so.6) ???:-1]
0x419e89 : ??? [(???) ???:-1]
=========================================================
apitrace: warning: caught signal 6
apitrace: flushing trace due to an exception
/work/apps/apitrace/devel/bin/../lib/apitrace/wrappers/glxtrace.so+0x192427
More information about the apitrace
mailing list