Segmentation violation detected - matlab
Asked Answered
T

2

6

I get the error Segmentation violation detected in Matlab 7.12.0.635 (R2011a) (on Ubuntu 12.10) whenever I try to save a figure as jpg or png. I can save a figure as .fig, though...

What can I do to fix this problem? Have you encountered this problem?

Tegucigalpa answered 8/11, 2012 at 17:2 Comment(9)
No. I'm on a single monitor.Tegucigalpa
Are you using print or saveas or clicking with the mouse on File > Save as...?Hussar
I am using Save As. I only got this error now. I've used Save as two weeks ago on the same computer...Tegucigalpa
weird...did any updates recently?Hussar
What does print('filename', '-djpeg', '-zbuffer') do?Hussar
Looks like it saves the figure as jpg. At least now I can save it. I wonder what's the problem with the GUI method?Tegucigalpa
Looks like a problem with the default figure renderer. What's get(gcf, 'renderer') say? OpenGl?Hussar
Can you post the complete crash dump?Hussar
let us continue this discussion in chatTegucigalpa
T
7

Solved by changing the default renderer to zbuffer. Add this line to the startup.m file:

set(0, 'DefaultFigureRenderer', 'zbuffer');

Tegucigalpa answered 29/11, 2012 at 12:55 Comment(0)
P
1

I resolved this issue by installing matlab-support package,

 sudo apt-get install matlab-support
Pappano answered 29/3, 2017 at 5:0 Comment(2)
I believe you mean "sudo apt-get install matlab-support", but yeah, it appears as if that fixed the issue for me too.Gunter
Yeap, If you like edit my solution. I will approve it.Pappano

© 2022 - 2024 — McMap. All rights reserved.