Effacer les filtres
Effacer les filtres

Possible OpenGL problem when using the figure command

2 vues (au cours des 30 derniers jours)
Bade
Bade le 25 Avr 2012
Was running an a matlab code put together in an m-file and I got the following error. I don't know if it is reproducable and if I just try to use the figure command it works fine. But trying to use it from the m-file (i.e. running the code) I get:
============================================================
Warning: OpenGL appears to be installed incorrectly.
============================================================
Looking at the details of the crash, I get:
============================================================
MATLAB crash file:/home/user/matlab_crash_dump.6916-1:
------------------------------------------------------------------------
Illegal instruction detected at Wed Apr 25 13:07:00 2012
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Current Visual : 0x22 (class 4, depth 24)
Default Encoding: UTF-8
GNU C Library : 2.12 stable
MATLAB Root : /usr/local/MATLAB/R2011b
MATLAB Version : 7.13.0.564 (R2011b)
Operating System: Linux 2.6.32-220.7.1.el6.x86_64 #1 SMP Wed Mar 7 00:52:02 GMT 2012 x86_64
Processor ID : x86 Family 15 Model 9 Stepping 1, AuthenticAMD
Virtual Machine : Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : The X.Org Foundation (11003000), display localhost:15.0
Fault Count: 1
Abnormal termination:
Illegal instruction
Register State (from fault):
RAX = 00007f6c300aad60 RBX = 00007f6b1e299150
RCX = 0000003d056172a0 RDX = 00007f6c3ec49a10
RSP = 00007f6c3ec435c8 RBP = 00007f6c3ec43600
RSI = 00007f6c317d5540 RDI = 0000000000001f01
R8 = 00007f6c3ec43430 R9 = 0000000000000000
R10 = 0000000000000000 R11 = 0000003d0d8001c8
R12 = 00007f6b1eb048d0 R13 = 00007f6b1eb048d0
R14 = 0000000000000001 R15 = 00007f6b1e299150
RIP = 0000003d0d8001ca EFL = 0000000000010282
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007f6c55eb75de /usr/local/MATLAB/R2011b/bin/glnxa64/libmwfl.so+00210398 _ZN2fl4diag15stacktrace_base7captureERKNS0_14thread_contextEm+000158
[ 1] 0x00007f6c55eb962d /usr/local/MATLAB/R2011b/bin/glnxa64/libmwfl.so+00218669
[ 2] 0x00007f6c55eb98f5 /usr/local/MATLAB/R2011b/bin/glnxa64/libmwfl.so+00219381 _ZN2fl4diag13terminate_logEPKcRKNS0_14thread_contextEb+000165
[ 3] 0x00007f6c54ebd4f5 /usr/local/MATLAB/R2011b/bin/glnxa64/libmwmcr.so+00447733 _ZN2fl4diag13terminate_logEPKcPK8ucontextb+000085
[ 4] 0x00007f6c54eba5b4 /usr/local/MATLAB/R2011b/bin/glnxa64/libmwmcr.so+00435636
[ 5] 0x00007f6c54ebb333 /usr/local/MATLAB/R2011b/bin/glnxa64/libmwmcr.so+00439091
[ 6] 0x00007f6c54ebb4c7 /usr/local/MATLAB/R2011b/bin/glnxa64/libmwmcr.so+00439495
[ 7] 0x00007f6c54ebc85f /usr/local/MATLAB/R2011b/bin/glnxa64/libmwmcr.so+00444511
[ 8] 0x00007f6c54ebca15 /usr/local/MATLAB/R2011b/bin/glnxa64/libmwmcr.so+00444949
[ 9] 0x0000003d0540f4a0 /lib64/libpthread.so.0+00062624
[ 10] 0x0000003d0d8001ca /usr/lib64/libXcursor.so.1+00000458
If this problem is reproducible, please submit a Service Request via: http://www.mathworks.com/support/contact_us/
============================================================

Réponses (2)

Walter Roberson
Walter Roberson le 25 Avr 2012
Try using
opengl software
and see if that fixes the problem.
  1 commentaire
Daniel Shub
Daniel Shub le 26 Avr 2012
You might try "opengl info" to see if it gives you anything useful

Connectez-vous pour commenter.


Thomas
Thomas le 26 Avr 2012
You could try the following from terminal (not MATLAB command)..
$ glxinfo | less
make sure the following is right:
direct rendering: Yes
Test your openGL from linux.
$ glxgears
It should show three spinning gears (though this is a 3d test, works for 2d as well..)
If the above are clear, then your openGL installation seems to have installed correctly.. Try Walter and Daniel's suggestions above and see if you get any improvement..
I have also found that changing the renderer helps sometimes.. (though it might not be what you want)

Catégories

En savoir plus sur Graphics Performance dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by