google-code-export / gambas

Automatically exported from code.google.com/p/gambas
1 stars 0 forks source link

Crash with OpenGL projects #190

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1) Describe the problem.

OpenGL projects crash when run.

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):

Version: TRUNK
Revision: r4396
Operating system: Linux
Distribution: Xubuntu
Architecture: x86_64
Desktop used: XFCE

3) Provide a little project that reproduces the bug or the crash.

Try example TunnelSDL.

Valgrind logs attached in case of problems to reproduce the problem.

[System]
OperatingSystem=Linux
Kernel=3.0.0-14-generic
Architecture=x86_64
Memory=4056292 kB
DistributionVendor=Ubuntu
DistributionRelease="Ubuntu 11.10"
Desktop=Xfce

[Gambas 3]
Version=3.0.90
Path=/usr/local/bin/gbx3

Original issue reported on code.google.com by jussi.la...@gmail.com on 11 Jan 2012 at 7:12

Attachments:

GoogleCodeExporter commented 9 years ago
It works perfectly there... Can you provide the full output of your compilation 
process?

Can you run the project inside gdb and at crash, run that inside gdb:

(gdb) p DEBUG_get_current_position()

and send me the result?

Original comment by benoit.m...@gmail.com on 12 Jan 2012 at 5:29

GoogleCodeExporter commented 9 years ago
See compile.log for normal compilation.
And gbxcomp.log for debug compilation of gbx3.
( make "CFLAGS=-O0 -g" "CXXFLAGS=-O0 -g" && sudo make install ) > 
~/Desktop/gbxcomp.log 2>&1

From compile.log, I spotted this "gbi3: warning: component gb.qt4 not found"!?
However gb.qt4 can be selected from IDE component list, and it works perfectly.

Starting program: /usr/local/bin/gbx3 
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffee84f700 (LWP 24094)]

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) p DEBUG_get_current_position()
$1 = 0x67d0c0 "CTunnel.tunnelAfficher.122"

(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007ffff196ffe0 in ?? ()
   from /usr/lib/nvidia-current/libnvidia-glcore.so.280.13
#2  0x000000000041035d in EXEC_native_quick () at gbx_exec.c:1084
#3  0x0000000000410213 in EXEC_native_check (defined=1 '\001')
    at gbx_exec.c:1031
#4  0x0000000000455aeb in EXEC_loop () at gbx_exec_loop.c:993
#5  0x000000000040f860 in EXEC_function_loop () at gbx_exec.c:859
#6  0x000000000040f7b1 in EXEC_function_real () at gbx_exec.c:846
#7  0x000000000041214a in EXEC_public_desc (class=0x6b5348, object=0x6b5348, 
    desc=0x6f44a8, nparam=0) at gbx_exec.c:1497
#8  0x00000000004319e4 in raise_event (observer=0x6b5348, object=0x7023a8, 
    func_id=1, nparam=0) at gbx_api.c:534
#9  0x0000000000432004 in GB_Raise (object=0x7023a8, event_id=11, nparam=0)
    at gbx_api.c:655
#10 0x00007ffff4ce4e21 in Update (this=0x702450) at Cwindow.cpp:339
#11 myWin::Update (this=0x702450) at Cwindow.cpp:309
#12 0x00007ffff4ce0211 in SDLapplication::ManageEvents (this=<optimized out>, 
    no_input=false) at SDLapp.cpp:189
#13 0x00007ffff4ce5085 in my_loop () at main.cpp:146
#14 0x000000000043e7d7 in main (argc=1, argv=0x7fffffffe278) at gbx.c:389

Original comment by jussi.la...@gmail.com on 12 Jan 2012 at 4:00

Attachments:

GoogleCodeExporter commented 9 years ago
"CTunnel.tunnelAfficher.122" points to "gl.end()"

I had extra newline in sources from trying to debug it.

Original comment by jussi.la...@gmail.com on 12 Jan 2012 at 4:25

GoogleCodeExporter commented 9 years ago
Put this issue on hold!

Seems like there are problems with current nvidia driver.

Original comment by jussi.la...@gmail.com on 20 Jan 2012 at 7:23

GoogleCodeExporter commented 9 years ago
I think so. What does "put ... on hold" mean?

Original comment by benoit.m...@gmail.com on 20 Jan 2012 at 7:58

GoogleCodeExporter commented 9 years ago
It means, it is wise to ignore this issue until driver problems are resolved 
(if you or anyone were actively investigating this issue). But if you are sure 
that this is not problem of Gambas, I think this issue should be marked as 
invalid.

Original comment by jussi.la...@gmail.com on 20 Jan 2012 at 9:05

GoogleCodeExporter commented 9 years ago
OK.

Original comment by benoit.m...@gmail.com on 21 Jan 2012 at 3:22

GoogleCodeExporter commented 9 years ago

Original comment by benoit.m...@gmail.com on 21 Jan 2012 at 3:25