I recently had a big problem with a document that uses pstrick code to figure inside a document. While the document compiled perfectly, an update that I didn't pay attention to, gives me the following error for each figure:
Current allocation mode is local
Last OS error: Permission denied
Current file position is 69
GPL Ghostscript 9.53.3: Unrecoverable error, exit code 1
Error: / invalidfileaccess in --run--
Operand stack:
(/usr/local/texlive/2021/texmf-dist/dvips/pstricks/pstricks.pro) (r)
Execution stack:
% interp_exit .runexec2 --nostringval-- run --nostringval-- 2% stopped_push --nostringval-- run run false 1% stopped_push 1974 1 3% oparray_pop 1973 1 3% oparray_pop 1961 1 3% oparray_pop 1817 1 3% oparray_pop - -nostringval--% errorexec_pop .runexec2 --nostringval-- run --nostringval-- 2% stopped_push --nostringval-- 1974 1 3% oparray_pop run
Dictionary stack:
--dict: 756/1123 (ro) (G) - --dict: 0/20 (G) - --dict: 75/200 (L) -
and the pdf produced only includes the text present in the figures not the figures (curves, axes ...)
I am using texlive 2021 under macOS 11.3.1, mac-mini M1, texshop, xelatex
On an old iMac from 2010 running macOS 10.13.6, with texive 2018 texshop and xelatex, I do not encounter the problem
Related
I'm trying to convert a pdf document that contains multiple layers to a .jpg image. But it gives me an error. Please see below:
with this command:
convert test.pdf test.jpeg
The result:
Error: /rangecheck in --run--
Operand stack:
--dict:7/16(L)-- Im0 0.0 --nostringval-- true 2292 0 0 1
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1878 1 3 %oparray_pop 1877 1 3 %oparray_pop 1861 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- false 1 %stopped_push --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1162/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- --dict:108/127(ro)(G)-- --dict:290/300(ro)(G)-- --dict:22/25(L)-- --dict:6/8(L)-- --dict:21/40(L)-- --dict:5/5(L)-- --dict:1/1(ro)(G)-- --dict:5/5(L)-- --dict:8/15(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.71: Unrecoverable error, exit code 1
convert: Postscript delegate failed `test.pdf': ACzp.cache # error/pdf.c/ReadPDFImage/638.
convert: missing an image filename `test.pdf' # error/convert.c/ConvertImageCommand/2940.
i also tried
convert --flatten test.pdf test.jpeg
but also no luck.
Can please anyone help me with this problem im stuck on the moment?
A bazel binary that I am building completes unsuccessfully during the analysis phase. What flags and tools can I use to debug why it fails during analysis.
Currently, clean builds return the following output
ERROR: build interrupted
INFO: Elapsed time: 57.819 s
FAILED: Build did NOT complete successfully (133 packages loaded)
If I retry building after failed completion, I receive the following output
ERROR: build interrupted
INFO: Elapsed time: 55.514 s
FAILED: Build did NOT complete successfully (68 packages loaded)
What flags can I use to identify
what packages are being loaded
what package the build is being interrupted on
whether the interruption is coming from a timeout or an external process.
Essentially, something similar to --verbose_failures but for the analysis phase rather than the execution phrase.
So far I have ran my build through the build profiler, and have not been able to glean any insight. Here is the output of my build:
WARNING: This information is intended for consumption by Blaze developers only, and may change at any time. Script against it at your own risk
INFO: Loading /<>/result
INFO: bazel profile for <> at Mon Jun 04 00:10:11 GMT 2018, build ID: <>, 49405 record(s)
INFO: Aggregating task statistics
=== PHASE SUMMARY INFORMATION ===
Total launch phase time 9.00 ms 0.02%
Total init phase time 91.0 ms 0.16%
Total loading phase time 1.345 s 2.30%
Total analysis phase time 57.063 s 97.53%
Total run time 58.508 s 100.00%
=== INIT PHASE INFORMATION ===
Total init phase time 91.0 ms
Total time (across all threads) spent on:
Type Total Count Average
=== LOADING PHASE INFORMATION ===
Total loading phase time 1.345 s
Total time (across all threads) spent on:
Type Total Count Average
CREATE_PACKAGE 0.67% 9 3.55 ms
VFS_STAT 0.69% 605 0.05 ms
VFS_DIR 0.96% 255 0.18 ms
VFS_OPEN 2.02% 8 12.1 ms
VFS_READ 0.00% 5 0.01 ms
VFS_GLOB 23.74% 1220 0.93 ms
SKYFRAME_EVAL 24.44% 3 389 ms
SKYFUNCTION 36.95% 8443 0.21 ms
SKYLARK_LEXER 0.19% 31 0.29 ms
SKYLARK_PARSER 0.68% 31 1.04 ms
SKYLARK_USER_FN 0.03% 5 0.27 ms
SKYLARK_BUILTIN_FN 5.91% 349 0.81 ms
=== ANALYSIS PHASE INFORMATION ===
Total analysis phase time 57.063 s
Total time (across all threads) spent on:
Type Total Count Average
CREATE_PACKAGE 0.30% 138 3.96 ms
VFS_STAT 0.05% 2381 0.03 ms
VFS_DIR 0.19% 1020 0.35 ms
VFS_OPEN 0.04% 128 0.61 ms
VFS_READ 0.00% 128 0.01 ms
VFS_GLOB 0.92% 3763 0.45 ms
SKYFRAME_EVAL 31.13% 1 57.037 s
SKYFUNCTION 65.21% 32328 3.70 ms
SKYLARK_LEXER 0.01% 147 0.10 ms
SKYLARK_PARSER 0.03% 147 0.39 ms
SKYLARK_USER_FN 0.20% 343 1.08 ms
As far as my command, I am running
bazel build src:MY_TARGET --embed_label MY_LABEL --stamp --show_loading_progress
Use the --host_jvm_debug startup flag to debug Bazel itself during a build.
From https://bazel.build/contributing.html:
Debugging Bazel
Start creating a debug configuration for both C++ and
Java in your .bazelrc with the following:
build:debug -c dbg
build:debug --javacopt="-g"
build:debug --copt="-g"
build:debug --strip="never"
Then you can rebuild Bazel with bazel build --config debug //src:bazel and use your favorite debugger to start debugging.
For debugging the C++ client you can just run it from gdb or lldb as
you normally would. But if you want to debug the Java code, you must
attach to the server using the following:
Run Bazel with debugging option --host_jvm_debug before the command (e.g., bazel --batch --host_jvm_debug build //src:bazel).
Attach a debugger to the port 5005. With jdb for instance, run jdb -attach localhost:5005. From within Eclipse, use the remote
Java application launch configuration.
Our IntelliJ plugin has built-in debugging support
there, I ran into a 'Segmentation fault' error when using travis-ci for my project : IPython-Dashboard
there is no error msg and it works fine on local, I feel a little confusing. any one can give any idea on fixing this, thanks.
here is the travis build log on cloud:
travis-log
$ nosetests --with-coverage --cover-package=dashboard
../home/travis/build.sh: line 45: 3187 Segmentation fault (core dumped)
nosetests --with-coverage --cover-package=dashboard
The command "nosetests --with-coverage --cover-package=dashboard" exited with 139.
here is the build log on local [osx]
taotao#mac007:~/Desktop/github/IPython-Dashboard$sudo nosetests --with-coverage --cover-package=dashboard
.../Users/chenshan/Desktop/github/IPython-Dashboard/dashboard/tests/testCreateData.py:78: Warning: Can't create database 'IPD_data'; database exists
conn.cursor().execute('CREATE DATABASE IF NOT EXISTS {};'.format(config.sql_db))
/Library/Python/2.7/site-packages/pandas/io/sql.py:599: FutureWarning: The 'mysql' flavor with DBAPI connection is deprecated and will be removed in future versions. MySQL will be further supported with SQLAlchemy engines.
warnings.warn(_MYSQL_WARNING, FutureWarning)
...
Name Stmts Miss Cover Missing
---------------------------------------------------------------------
dashboard.py 13 0 100%
dashboard/client.py 1 0 100%
dashboard/client/sender.py 11 3 73% 26-27, 33
dashboard/conf.py 0 0 100%
dashboard/conf/config.py 29 0 100%
dashboard/server.py 0 0 100%
dashboard/server/resources.py 0 0 100%
dashboard/server/resources/dash.py 35 10 71% 36, 55-56, 67-69, 86-89
dashboard/server/resources/home.py 40 12 70% 25, 28-30, 83-91
dashboard/server/resources/sql.py 27 11 59% 30, 52-75
dashboard/server/resources/status.py 8 1 88% 19
dashboard/server/resources/storage.py 13 5 62% 26-28, 43-47
dashboard/server/utils.py 79 18 77% 20-24, 78-80, 82-83, 86, 96, 99-100, 126-127, 140-142
dashboard/server/views.py 21 1 95% 16
---------------------------------------------------------------------
TOTAL 277 61 78%
----------------------------------------------------------------------
Ran 6 tests in 4.600s
OK
taotao#mac007:~/Desktop/github/IPython-Dashboard$
I've using Ghostscript and ImageMagick for pdf to png conversion. PDF files are nothing but font file.
On some specific fonts like Avenir-BlackOblique, Avenir-BookOblique, Avenir-HeavyOblique etc.. (Fonts having suffix Oblique), I'm getting following error while converting to png.
Error: /rangecheck in --run--
Operand stack:
--dict:6/15(L)-- --dict:13/15(ro)(L)-- 1 A -string-
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- --nostringval-- --nostringval-- %array_continue %finish_show --nostringval-- --nostringval-- 9 10 1 --nostringval-- (gs_show_enum) %op_show_continue
Dictionary stack:
--dict:1155/1684(ro)(G)-- --dict:1/20(G)-- --dict:77/200(L)-- --dict:77/200(L)-- --dict:106/127(ro)(G)-- --dict:286/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- --dict:21/40(L)-- --dict:7/15(L)--
Current allocation mode is local
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
convert: Postscript delegate failed /var/www/smartmarketerca.pbsmartqa.pb.com/data/temp/32946b403f985cd25ee0fde2d309a17a/Avenir-HeavyOblique.pdf': No such file or directory # pdf.c/ReadPDFImage/611.
convert: missing an image filename/var/www/smartmarketerca.pbsmartqa.pb.com/data/temp/daba4128fccab3d646f0980d91660c30/72e2e9945e37481977500d7fdbb00b00.jpg' # convert.c/ConvertImageCommand/2800.
I'm using following configuration:
ImageMagick 6.5.4-7 2014-01-30 Q16
GPL Ghostscript 8.70 (2009-07-31)
Red Hat Enterprise Linux Server release 6.4 (Santiago)
I tried to upgrade GhostScript to 9.15 but even though its giving same but bit other message:
convert: **PDFDelegateFailed [ghostscript library 8.70]** -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" "-sOutputFile=/tmp/magick-13460R723BggmiU56%d" "-f/tmp/magick-13460xmDYin8GYPzD" "-f/tmp/magick-13460gVQPulJIgS39"': Error: /rangecheck in --run--
Operand stack:
--dict:6/15(L)-- --dict:13/15(ro)(L)-- 1 A -string-
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- --nostringval-- --nostringval-- %array_continue %finish_show --nostringval-- --nostringval-- 9 10 1 --nostringval-- (gs_show_enum) %op_show_continue
Dictionary stack:
--dict:1154/1684(ro)(G)-- --dict:1/20(G)-- --dict:77/200(L)-- --dict:77/200(L)-- --dict:106/127(ro)(G)-- --dict:286/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- --dict:21/40(L)-- --dict:7/15(L)--
Current allocation mode is local
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
# error/pdf.c/InvokePDFDelegate/271.
convert: no images defined/var/www/smartmarketerca/data/temp/0d9e22bf29b00073cfeb51edd2f4d906/9d1f6dbc420b659b6f9489912061c540.jpg' # error/convert.c/ConvertImageCommand/3212.
Please suggest. Thanks.
I am trying to convert an html file to an image by using html2ps and imagemagick. This is the command that is being executed:
convert ./test.html ./test.png
and this is the error I am recieving:
Use of assignment to $[ is deprecated at /usr/bin/html2ps line 3409.
*** Error opening /tmp/magick-mEFhFOmU
Error: /nocurrentpoint in --currentpoint--
Operand stack:
--nostringval--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1910 1 3 %oparray_pop 1909 1 3 %oparray_pop 1893 1 3 %oparray_pop 1787 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval--
Dictionary stack:
--dict:1166/1684(ro)(G)-- --dict:0/20(G)-- --dict:79/200(L)-- --dict:407/2000(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 27444
GPL Ghostscript 9.05: Unrecoverable error, exit code 1
Error: /nocurrentpoint in --currentpoint--
Operand stack:
--nostringval--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1910 1 3 %oparray_pop 1909 1 3 %oparray_pop 1893 1 3 %oparray_pop 1787 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval--
Dictionary stack:
--dict:1166/1684(ro)(G)-- --dict:0/20(G)-- --dict:79/200(L)-- -- dict:407/2000(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 27444
GPL Ghostscript 9.05: Unrecoverable error, exit code 1
convert: unable to open image `./test.html': # error/blob.c/OpenBlob/2587.
convert: Postscript delegate failed `/tmp/magick-Dm8Uf9H1': # error/ps.c/ReadPSImage/806.
convert: missing an image filename `./test.png' # error/convert.c/ConvertImageCommand/3011.
I have tried searching but had no luck. I partly understand what is going on here but lost on how to fix it.
edit: I am running this on Ubuntu 32-bit