Problem when trying to export figure as PNG

15 ビュー (過去 30 日間)
André
André 2025 年 8 月 10 日
コメント済み: André 2025 年 8 月 13 日
Hello there.
I am currently running matlab r2025a in ubuntu 24.04 using gnome as my window manager.
I was trying to plot something and export as a PNG when i get the following crash report that is in the end of this message.
I also get this warning when i start matlab (I know we should only ask 1 question per post, but i cannot help but to think that the warning may be inducing the error) :
"Warning: Initializing MATLAB Graphics failed.
This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was:
MATLAB:hg:set_chck:DimensionsOutsideRange
Width and height must be greater than or equal to 0
> In hgrc (line 225)
In
matlab.graphics.internal.initialize (line 15) "
"MATLAB Log File: /home/andret/matlab_crash_dump.100942-1
------------------------------------------------
MATLAB Log File
------------------------------------------------
--------------------------------------------------------------------------------
Assertion detected at 2025-08-10 20:13:44 +0100
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
Desktop Environment : ubuntu:GNOME
GNU C Library : 2.39 stable
Graphics Driver : Uninitialized software
Graphics card 1 : 0x10de ( 0x10de ) 0x28a0 Version 575.64.3.0 (0-0-0)
Graphics card 2 : 0x8086 ( 0x8086 ) 0xa7a8 Version 0.0.0.0 (0-0-0)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : glnxa64
MATLAB Entitlement ID : 11013405
MATLAB Root : /usr/local/MATLAB/R2025a
MATLAB Version : 25.1.0.2973910 (R2025a) Update 1
OpenGL : software
Operating System : Ubuntu 24.04.3 LTS
Process ID : 100942
Processor ID : x86 Family 6 Model 186 Stepping 2, GenuineIntel
Session Key : c4r3b3uixjn8a2cos3uqoqpwt
Window System : The X.Org Foundation (12101011), display :1
Fault Count: 1
Assertion:
Cannot make QOpenGLContext current in a different thread
Current Thread: 'MCR 0 interpret' id 128347574019776
Register State (captured):
RAX = 0000000000000000 RBX = 000074bc1cdfe428
RCX = 0000000000000000 RDX = 000074bc1cde7d18
RSP = 000074bb3f8e49c0 RBP = 000074bb3f8e4da0
RSI = 000074bc1cdccab5 RDI = 000074bb3f8e49d0
R8 = 0000000000000001 R9 = 000074bb3f8e4cb0
R10 = 0000000000000000 R11 = 0000000000000000
R12 = 000074bc1cdccab5 R13 = 000074bb3f8e4e10
R14 = 000074bb3f8e5270 R15 = 000074b92615c078
RIP = 000074bc1cd700ff EFL = 0000000000000000
CS = 0000 FS = 0000 GS = 0000
Stack Trace (captured):
[ 0] 0x000074bc1cd69b93 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwfl.so+00326547
[ 1] 0x000074bc1cd69ddc /usr/local/MATLAB/R2025a/bin/glnxa64/libmwfl.so+00327132 _ZN10foundation4core4diag15stacktrace_base7captureEm+00000028
[ 2] 0x000074bc1cd6bc9a /usr/local/MATLAB/R2025a/bin/glnxa64/libmwfl.so+00335002
[ 3] 0x000074bc1cd6c8b2 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwfl.so+00338098
[ 4] 0x000074bc1cd6c937 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwfl.so+00338231
[ 5] 0x000074badef9db5a /usr/local/MATLAB/R2025a/bin/glnxa64/pf_impl/foundation/platform/pf_impl/../../../../../../bin/glnxa64/libmwpf_internal.so+00355162
[ 6] 0x000074bbbeea93f1 /usr/local/MATLAB/R2025a/bin/glnxa64/matlab_startup_plugins/cefclient/../../../../bin/glnxa64/libQt5Core.so.5+00693233
[ 7] 0x000074bbbeea9496 /usr/local/MATLAB/R2025a/bin/glnxa64/matlab_startup_plugins/cefclient/../../../../bin/glnxa64/libQt5Core.so.5+00693398
[ 8] 0x000074bbbee9c5cd /usr/local/MATLAB/R2025a/bin/glnxa64/matlab_startup_plugins/cefclient/../../../../bin/glnxa64/libQt5Core.so.5+00640461 _ZNK14QMessageLogger5fatalEPKcz+00000153
[ 9] 0x000074bbbe93acfe /usr/local/MATLAB/R2025a/bin/glnxa64/matlab_startup_plugins/cefclient/../../../../bin/glnxa64/libQt5Gui.so.5+01289470 _ZN14QOpenGLContext11makeCurrentEP8QSurface+00000126
[ 10] 0x000074ba53c859a2 /usr/local/MATLAB/R2025a/bin/glnxa64/builtins/matlab_graphics_web/../../../../bin/glnxa64/libmwgraphics_context.so+00018850
[ 11] 0x000074ba53c84fbb /usr/local/MATLAB/R2025a/bin/glnxa64/builtins/matlab_graphics_web/../../../../bin/glnxa64/libmwgraphics_context.so+00016315
[ 12] 0x000074b98e2f53eb /usr/local/MATLAB/R2025a/bin/glnxa64/builtins/matlab_graphics_hg/../../../../bin/glnxa64/libmwhghardcopy.so+00431083
[ 13] 0x000074b98e2f87dc /usr/local/MATLAB/R2025a/bin/glnxa64/builtins/matlab_graphics_hg/../../../../bin/glnxa64/libmwhghardcopy.so+00444380
[ 14] 0x000074b98e2e3a4c /usr/local/MATLAB/R2025a/bin/glnxa64/builtins/matlab_graphics_hg/../../../../bin/glnxa64/libmwhghardcopy.so+00358988
[ 15] 0x000074b98e2eba1b /usr/local/MATLAB/R2025a/bin/glnxa64/builtins/matlab_graphics_hg/../../../../bin/glnxa64/libmwhghardcopy.so+00391707 _Z22generateGraphicsOutputiPP11mxArray_tagiS1_+00001307
[ 16] 0x000074bc0c4df3f2 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwm_dispatcher.so+00914418
[ 17] 0x000074bc0c4e2e28 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwm_dispatcher.so+00929320
[ 18] 0x000074bc0c4c0b81 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwm_dispatcher.so+00789377
[ 19] 0x000074bc0c4c0e4e /usr/local/MATLAB/R2025a/bin/glnxa64/libmwm_dispatcher.so+00790094 _ZN18Mfh_MATLAB_fn_impl8dispatchEiPSt10unique_ptrI11mxArray_tagN6matrix6detail17mxDestroy_deleterEEiPPS1_+00000030
[ 20] 0x000074bbf76757a7 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwlxemainservices.so+02578343
[ 21] 0x000074bbf2d62fd0 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwm_lxe.so+11939792
[ 22] 0x000074bbf2d5638f /usr/local/MATLAB/R2025a/bin/glnxa64/libmwm_lxe.so+11887503
[ 23] 0x000074bbf2cd9d51 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwm_lxe.so+11378001
[ 24] 0x000074bbf29c86cb /usr/local/MATLAB/R2025a/bin/glnxa64/libmwm_lxe.so+08160971
[ 25] 0x000074bbf29ca41c /usr/local/MATLAB/R2025a/bin/glnxa64/libmwm_lxe.so+08168476
[ 26] 0x000074bbf29c71ff /usr/local/MATLAB/R2025a/bin/glnxa64/libmwm_lxe.so+08155647
[ 27] 0x000074bbf29d8c55 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwm_lxe.so+08227925
[ 28] 0x000074bbf29d94a9 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwm_lxe.so+08230057
[ 29] 0x000074bbf29c6ff4 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwm_lxe.so+08155124
[ 30] 0x000074bbf29c70ff /usr/local/MATLAB/R2025a/bin/glnxa64/libmwm_lxe.so+08155391
[ 31] 0x000074bbf2b3583b /usr/local/MATLAB/R2025a/bin/glnxa64/libmwm_lxe.so+09656379
[ 32] 0x000074bbf2b3a7e4 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwm_lxe.so+09676772
[ 33] 0x000074bbf780b9b4 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwlxemainservices.so+04241844
[ 34] 0x000074bbf76df311 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwlxemainservices.so+03011345
[ 35] 0x000074bbf76df50d /usr/local/MATLAB/R2025a/bin/glnxa64/libmwlxemainservices.so+03011853
[ 36] 0x000074bbf77ac31d /usr/local/MATLAB/R2025a/bin/glnxa64/libmwlxemainservices.so+03851037
[ 37] 0x000074bbf77ac54e /usr/local/MATLAB/R2025a/bin/glnxa64/libmwlxemainservices.so+03851598
[ 38] 0x000074bbf7d56f0f /usr/local/MATLAB/R2025a/bin/glnxa64/libmwm_interpreter.so+01404687 _Z51inEvalCmdWithLocalReturnInDesiredWSAndPublishEventsRKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEEPibbP15inWorkSpace_tagN9MathWorks3lxe10EvalSourceE+00000063
[ 39] 0x000074bc0c921ecc /usr/local/MATLAB/R2025a/bin/glnxa64/libmwiqm.so+00974540 _ZNK3iqm18InternalEvalPlugin24inEvalCmdWithLocalReturnERKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEEP15inWorkSpace_tag+00000108
[ 40] 0x000074bc0c922f35 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwiqm.so+00978741 _ZN3iqm18InternalEvalPlugin7executeEP15inWorkSpace_tag+00000469
[ 41] 0x000074bc0c90a716 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwiqm.so+00878358
[ 42] 0x000074bc0c8d64f9 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwiqm.so+00664825
[ 43] 0x000074bbf7faa0e9 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwbridge.so+00499945
[ 44] 0x000074bbf7faa5c3 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwbridge.so+00501187
[ 45] 0x000074bbf7fc64ba /usr/local/MATLAB/R2025a/bin/glnxa64/libmwbridge.so+00615610 _Z22mnGetCommandLineBufferbRbN7mwboost8optionalIKP15inWorkSpace_tagEEbRKNS0_9function2IN6mlutil14cmddistributor17inExecutionStatusERKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEES4_EE+00000218
[ 46] 0x000074bbf7fc6851 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwbridge.so+00616529 _Z8mnParserv+00000513
[ 47] 0x000074bc0c7a7350 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwmcr.so+00869200
[ 48] 0x000074bc1bd47897 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwmvm.so+03438743 _ZN14cmddistributor15PackagedTaskIIP10invokeFuncIN7mwboost8functionIFvvEEEEENS2_10shared_ptrINS2_6futureIDTclfp_EEEEEERKT_+00000071
[ 49] 0x000074bc1bd47bc8 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwmvm.so+03439560 _ZNSt17_Function_handlerIFN7mwboost3anyEvEZN14cmddistributor15PackagedTaskIIP10createFuncINS0_8functionIFvvEEEEESt8functionIS2_ET_EUlvE_E9_M_invokeERKSt9_Any_data+00000024
[ 50] 0x000074bc0c92ce3b /usr/local/MATLAB/R2025a/bin/glnxa64/libmwiqm.so+01019451 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tag+00000091
[ 51] 0x000074bc0c90a716 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwiqm.so+00878358
[ 52] 0x000074bc0c8d48b2 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwiqm.so+00657586
[ 53] 0x000074bc0c8d567d /usr/local/MATLAB/R2025a/bin/glnxa64/libmwiqm.so+00661117
[ 54] 0x000074bc0c8d5994 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwiqm.so+00661908
[ 55] 0x000074bc0c78ed07 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwmcr.so+00769287
[ 56] 0x000074bc0c78f3ce /usr/local/MATLAB/R2025a/bin/glnxa64/libmwmcr.so+00771022
[ 57] 0x000074bc0c78f69d /usr/local/MATLAB/R2025a/bin/glnxa64/libmwmcr.so+00771741
[ 58] 0x000074bc1cc2eb17 /usr/local/MATLAB/R2025a/bin/glnxa64/libmwboost_thread.so.1.81.0+00043799
[ 59] 0x000074bc1ca9caa4 /lib/x86_64-linux-gnu/libc.so.6+00641700
[ 60] 0x000074bc1cb29c3c /lib/x86_64-linux-gnu/libc.so.6+01219644"

回答 (1 件)

Image Analyst
Image Analyst 2025 年 8 月 11 日
You sent in the crash dump, right? So they should get back to you. But if they say it was due to an unknown error, then I suggest calling tech support.
  1 件のコメント
André
André 2025 年 8 月 13 日
Yes i did sent the crash dump, but until now i have not receive any information on how to procced.
I also put the crash dump here.
I will probably end up calling tech support and put the given solution here.
For the mean time, as a needed to be able to work I downgraded to matlab r2024b and all seems good here. Maybe they changed opengl support to the newer versions

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by