view canvas example crashes

Bug #1064918 reported by Eleni Maria Stea
0
Affects Status Importance Assigned to Milestone
Nux
Fix Released
High
Unassigned
Nux Playground
Fix Committed
Undecided
Unassigned
nux (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Nuxplayground view-canvas example crashes with the following error (Tested with lp:nux and lp:~unity-team/nux/nux.improve-redirect-rendering):

(gdb) run
Starting program: /home/eleni/staging/source/playgroundbranches/nuxplayground/src/view-canvas/view-canvas
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
nux::logging::Writer::Writer()
Nux: Gpu Vendor: NVIDIA Corporation
Nux: Gpu Renderer: GeForce GT 520/PCIe/SSE2/3DNOW!
Nux: Gpu OpenGL Version: 4.2.0 NVIDIA 304.43
Nux: Gpu OpenGL Major Version: 4
Nux: Gpu OpenGL Minor Version: 2
Nux: The GraphicsEngine is using the GLSL shader code path.
terminate called after throwing an instance of 'std::logic_error'
  what(): basic_string::_S_construct null not valid

Program received signal SIGABRT, Aborted.
0xb7fdd424 in __kernel_vsyscall ()
(gdb)

Catch throw:

(gdb) catch throw
Function "__cxa_throw" not defined.
Catchpoint 1 (throw)
(gdb) run
Starting program: /home/eleni/staging/playgroundtobe/nuxplayground/src/view-canvas/view-canvas
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
nux::logging::Writer::Writer()
Catchpoint 1 (exception thrown), 0xb7160f40 in __cxa_throw ()
   from /usr/lib/i386-linux-gnu/libstdc++.so.6

(gdb) frame 1
#1 0xb71bad54 in std::__throw_logic_error(char const*) ()
   from /usr/lib/i386-linux-gnu/libstdc++.so.6

(gdb) frame 2
#2 0xb71c85ca in char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) ()
   from /usr/lib/i386-linux-gnu/libstdc++.so.6

(gdb) frame 3
#3 0xb71c8d16 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) ()
   from /usr/lib/i386-linux-gnu/libstdc++.so.6

(gdb) frame 4
#4 0xb7906b17 in nux::IOpenGLShaderProgram::LoadVertexShader (this=0x82e8e00,
    glslshader=0x8079654 ' ' <repeats 12 times>, "\n uniform mat4 ViewProjectionMatrix; \n attribute vec4 AVertex;", ' ' <repeats 17 times>, "\n attribute vec4 VertexColor;", ' ' <repeats 13 times>, "\n void main()", ' ' <repeats 21 times>..., VtxShaderPreprocessorDefines=0x0)
    at ./IOpenGLGLSLShader.cpp:518
518 std::string Defines(VtxShaderPreprocessorDefines);

(gdb) frame 5
#5 0xb78d89be in nux::GLSh_ColorPicker::GLSh_ColorPicker (this=0x82e8cf8,
    color_channel=137268560) at ./GLSh_ColorPicker.cpp:303
303 sprog->LoadVertexShader(VtxShader.GetTCharPtr(), NULL);

(gdb) frame 6
#6 0xb7a0e9e6 in nux::ColorEditor::ColorEditor (this=0x82a3f80,
    __Nux_FileName__=0xb71f35bc "HX\005\bFη\034·p,\037·HX\005\bVη\034·Ό5\037·HX\005\bgη\034·Ό5\037·HX\005\b|η\034·Ό5\037·HX\005\b\215η\034·Ό5\037·HX\005\b\236η\034·p,\037·HX\005\b°η\034·ψ5\037·HX\005\bΐη\034·ψ5\037·HX\005\bΣη\034·ψ5\037·", __Nux_LineNumber__=-1222691396) at ./ColorEditor.cpp:329
329 m_RedShader = new GLSh_ColorPicker(color::RED);

(gdb) frame 7
#7 0x0804e015 in UIInitialization (thread=0x8085af8, InitData=0x0)
    at view-canvas.cpp:129
warning: Source file is more recent than executable.
129 nux::ColorEditor* color_editor = new nux::ColorEditor(NUX_TRACKER_LOCATION);

Tags: view-canvas

Related branches

description: updated
Changed in nux:
assignee: nobody → Eleni Maria Stea (hikiko)
Revision history for this message
Eleni Maria Stea (hikiko) wrote :

!!! There might be similar problems elsewhere !!!!

Changed in nux:
importance: Undecided → High
status: New → Fix Committed
Changed in nuxplayground:
status: New → Fix Committed
assignee: nobody → Eleni Maria Stea (hikiko)
Stephen M. Webb (bregma)
Changed in nux:
status: Fix Committed → Fix Released
Changed in nux:
assignee: Eleni Maria Stea (hikiko) → nobody
Changed in nuxplayground:
assignee: Eleni Maria Stea (hikiko) → nobody
Changed in nux (Ubuntu):
status: New → Fix Released
importance: Undecided → High
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.