0
Docsplit에서 이상한 문제를 파악하려고합니다. 사용자가 PPT/PDF를 업로드 할 수있는 Rails 2.3.14 응용 프로그램이 있고 시스템에서 Docsplit으로 표지 이미지를 추출해야합니다. 내가 실행하면Docsplit은 Rails 자체가 아닌 콘솔에서 작동합니다.
**** Page has no /MediaBox attribute. Using the current page size.
Error: /stackunderflow in --run--
Operand stack:
--dict:8/8(L)-- 612.0 792.0 3
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1846 1 3 %oparray_pop 1845 1 3 %oparray_pop 1829 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval--
Dictionary stack:
--dict:1157/1684(ro)(G)-- --dict:1/20(G)-- --dict:76/200(L)-- --dict:76/200(L)-- --dict:106/127(ro)(G)-- --dict:285/300(ro)(G)-- --dict:21/25(L)-- --dict:2/6(L)--
Current allocation mode is local
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
gm convert: Postscript delegate failed (/var/www/rails/application/releases/20130828151914/public/system/pdfs/6/original/news-scientifica.pdf).
나는이 고스트 스크립트와 관련된 버그가 알고 있지만,이 라인이 오류가 발생
Docsplit.extract_images(self.pdf.path, :size => '370x540', :density => '72', :format => :png, :pages => 1, :output => pdf_dir_path)
:
나는이 라인 모델로의 after_save 콜백이 그 정확한 진술을 콘솔에서 수동으로 모든 것이 잘 작동합니다. 그럼, 뭐가 될 수 있니?
해당 명령을 실행하려고하는 동시 프로세스가 없습니다. Docsplit을 레일스에서 (웹 패널을 통해) 먼저 사용하고 콘솔에서 사용하려고했습니다. 콘솔은 항상 작동하며 웹은 작동하지 않습니다. 불행하게도, 현재 Ghostscript를 업데이트 할 수 없습니다 (나는 더 좋을 것입니다). 왜 이런 일이 일어나는 지 이해할 수 없습니다. 고맙습니다 –