What could be causing Ghostscript rangecheck error?
조회 수: 11 (최근 30일)
이전 댓글 표시
I know next to nothing about MATLAB. I have three MATLAB modules developed by one of our scientists. Using MATLAB Builder JA, I have created Java libraries and these libraries are at the core of three RESTful services running on Tomcat6 using MCR. All three modules produce a slew of plots which are stored as either JPEG or PNG. All three call the "saveas" function to store the plots. On a non-headless Linux server, either Ubuntu 12.04, RHEL6 or CentOS 6.5, all three run as expected and produce the requested plots. On a headless server, again running either Ubuntu 12.04, RHEL6 or CentOS 6.5, two out of three run fine. The third always crashes and reports the following:
Error using ghostscript (line 186)
Problem converting PostScript. System returned error: -1.
Failed to convert to output format;
Ghostscript status: -15.Unrecoverable error: rangecheck in .putdeviceprops
rangecheck
Error in print>LocalPrint (line 305)
Error in print (line 231)
Error in saveas (line 169)
Error in PAtool_sliding_window_analysis (line 616)
... Matlab M-code Stack Trace ...
file /usr/local/MATLAB/MATLAB_Compiler_Runtime/v82/mcr/toolbox/matlab/graphics/private/ghostscript.m, name ghostscript, line 186.
file /usr/local/MATLAB/MATLAB_Compiler_Runtime/v82/mcr/toolbox/matlab/graphics/print.m, name LocalPrint, line 305.
file /usr/local/MATLAB/MATLAB_Compiler_Runtime/v82/mcr/toolbox/matlab/graphics/print.m, name print, line 231.
file /usr/local/MATLAB/MATLAB_Compiler_Runtime/v82/mcr/toolbox/matlab/general/saveas.m, name saveas, line 169.
file /home/iaiadmin/.mcrCache8.2/jpa_DF0/PDS/CharTools/JPA/PAtool_sliding_window_analysis.m, name PAtool_sliding_window_analysis, line 616.
The "saveas" function is called like this:
saveas(gcf, '/home/someuser/output/data/plot.png');
Does anyone have an idea as to what may be going wrong? Running on a non-headless server is fine for development, but I really need to have this working on a headless server.
Any help would be greatly appreciated. Thanks.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!