Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#98 Crash at photonMap.cpp:419

open-fixed
nobody
None
5
2008-10-15
2008-10-15
Adam Buchbinder
No

Open the attached RAR. Compile the shaders. Run "rndr -p Dispersion_pass1.rib" to generate the photon map. Run "rndr Dispersion_pass2.rib"; rndr will crash with a segfault. Backtrace follows.

$ gdb rndr
[...]
(gdb) run Dispersion_pass2.rib
[...]
[Thread debugging using libthread_db enabled]
[New Thread 0xb78006c0 (LWP 24109)]
Dispersion_pass2.rib (34): Parameter "trace" is not declared.
Dispersion_pass2.rib (45): Parameter "trace" is not declared.
[New Thread 0xb6ea3b90 (LWP 24112)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6ea3b90 (LWP 24112)]
CPhotonMap::lookup (this=0x8111d58, Cl=0xb75dd398, Pl=0x8088a60, maxFound=1120403456) at photonMap.cpp:419
419 searchRadius = (sqrtf(maxFound*maxPower / 0.05f) / (float) C_PI)*0.5f;
(gdb) bt
#0 CPhotonMap::lookup (this=0x8111d58, Cl=0xb75dd398, Pl=0x8088a60, maxFound=1120403456) at photonMap.cpp:419
#1 0xb7bdec64 in CShadingContext::execute (this=0x807afc0, cInstance=0x80f2340, locals=0xb75d8268) at giFunctions.h:354
#2 0xb7cacacb in CProgrammableShaderInstance::illuminate (this=0x80f2340, context=0x807afc0, locals=0xb75d8268) at shader.cpp:641
#3 0xb7bd6a79 in CShadingContext::execute (this=0x807afc0, cInstance=0x80f2420, locals=0xb75ce008) at shaderFunctions.h:825
#4 0xb7cacb0b in CProgrammableShaderInstance::execute (this=0x80f2420, context=0x807afc0, locals=0xb75ce008) at shader.cpp:606
#5 0xb7cb2da6 in CShadingContext::shade (this=0x807afc0, object=0x80f2500, uVertices=16, vVertices=12, dim=SHADING_2D_GRID, usedParameters=1859930224, displaceOnly=0)
at shading.cpp:1079
#6 0xb7c91a6c in CReyes::shadeGrid (this=0x807afc0, grid=0x80fa0d8, Ponly=0) at reyes.cpp:1045
#7 0xb7cca871 in CStochastic::drawQuadGridZminUnshaded (this=0x807afc0, grid=0x80fa0d8) at stochasticQuad.h:617
#8 0xb7e0a858 in CStochastic::rasterDrawPrimitives (this=0x807afc0, grid=0xa0a9a863) at stochasticPrimitives.h:31
#9 0xb7c8f2fb in CReyes::render (this=0x807afc0) at reyes.cpp:373
#10 0xb7c8fe2f in CReyes::renderingLoop (this=0x807afc0) at reyes.cpp:308
#11 0xb7c6a138 in rendererDispatchThread (w=0x0) at renderer.cpp:1116
#12 0xb7b064fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#13 0xb7961e5e in clone () from /lib/tls/i686/cmov/libc.so.6

I'm running Pixie SVN (r1168) on Ubuntu Hardy (i386). I can also reproduce this on Pixie 2.2.4, the release version.

Discussion

  • Scene causing the crash.

     
  • Okan Arikan
    Okan Arikan
    2008-10-15

    Thank you for this bug report. I checked in the fix to the trunk (rev. 1169).

     
  • Okan Arikan
    Okan Arikan
    2008-10-15

    • status: open --> open-fixed
     
  • Okan Arikan
    Okan Arikan
    2008-10-15

    Thank you for this bug report. I checked in the fix to the trunk (rev. 1169).