From owner-freebsd-ports@FreeBSD.ORG Wed Dec 22 11:49:44 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB01C1065673; Wed, 22 Dec 2010 11:49:44 +0000 (UTC) (envelope-from tingox@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5E0058FC14; Wed, 22 Dec 2010 11:49:44 +0000 (UTC) Received: by qwj9 with SMTP id 9so4799144qwj.13 for ; Wed, 22 Dec 2010 03:49:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=iuYwKBFFa6fwuKTMRzFPlWLeWGN71f/fSsjl/90hjmg=; b=KWfHTVfrgEm9HfRRP6FccEBGO0YrNZYiE/9UrhbaaUbTKBsB1rld189mJnuMCirEO0 j9dyTGntc6WZhVqayq+RkaiyTMfePNRaL8koIl8XDkd9MYa6oe/WZc5cD+HUXTcAAzvN 3JtSlcc/OksdyqIYKgjDOeRwrXzYHrL9q9StQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Q0HfbIW1kSpWbPho+krJDQQZd2ruj70c4fGvuakIijVeWhMIy4lcx68fh00En/WTUX 3Eh9SAxA+8zF4efIm2k1L2oEufPJupJsq4ju8XUuQZU42hifjdIkYS/J0QLTvH+wvzsE iOrYEhje2XDUV/ND9GaRxe1RmTrSebxBwTb4s= MIME-Version: 1.0 Received: by 10.229.84.147 with SMTP id j19mr5909730qcl.210.1293018583613; Wed, 22 Dec 2010 03:49:43 -0800 (PST) Received: by 10.220.191.132 with HTTP; Wed, 22 Dec 2010 03:49:43 -0800 (PST) In-Reply-To: References: Date: Wed, 22 Dec 2010 12:49:43 +0100 Message-ID: From: Torfinn Ingolfsen To: FreeBSD Ports ML , sylvio@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Re: gscan2pdf - saving hangs X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2010 11:49:44 -0000 After fixing the port so that gscan2pdf 0.9.31 now starts, I'm back to this problem: scanning with gscan2pdf works, but as soom as I try to save, and hit the "save" button, the gui hangs, and there is no more output in the terminal / shell from where I started gscan2pdf. Here is gscan2pdf --debug out after starting gscan2pdf: tingo@kg-v2$ gscan2pdf --debug Constant subroutine main::LC_CTYPE redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 165 Prototype mismatch: sub main::LC_CTYPE () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 165 Constant subroutine main::LC_NUMERIC redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 165 Prototype mismatch: sub main::LC_NUMERIC () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 165 Constant subroutine main::LC_TIME redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 165 Prototype mismatch: sub main::LC_TIME () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 165 Constant subroutine main::LC_COLLATE redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 165 Prototype mismatch: sub main::LC_COLLATE () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 165 Constant subroutine main::LC_MONETARY redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 165 Prototype mismatch: sub main::LC_MONETARY () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 165 Constant subroutine main::LC_MESSAGES redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 165 Prototype mismatch: sub main::LC_MESSAGES () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 165 Constant subroutine main::LC_ALL redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 165 Prototype mismatch: sub main::LC_ALL () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 165 gscan2pdf 0.9.31 Using en_US.ISO8859-1 locale Startup LC_NUMERIC C Running init Running sane_init Gtk2-Perl version 1.221 Built for 2.20.1 Running with 2.22.1 Using GtkImageView version 1.6.4 Using Gtk2::ImageView version 0.05 Using PDF::API2 version 0.73 $VAR1 = { 'no-blackfilter' => '', 'frontend' => 'scanimage-perl', 'mode' => 'Color', 'output-pages' => '1', 'Paper' => { 'US Legal' => { 'l' => '0', 'y' => '356', 'x' => '216', 't' => '0' }, 'US Letter' => { 'l' => '0', 'y' => '279', 'x' => '216', 't' => '0' }, 'A4' => { 'l' => '0', 'y' => '297', 'x' => '210', 't' => '0' } }, 'no-border-scan' => '', 'ocr engine' => 'ocropus', 'no-blurfilter' => '', 'y' => '297', 'layout' => 'single', 'session' => '/tmp/ugiLTsGbpj', 'cwd' => '/usr/home/tingo', 'Paper size' => 'A4', 'no-deskew' => '', 'user_defined_tools' => 'gimp %i', 'startup warning' => '1', 'default filename' => '%a %y-%m-%d', 'no-grayfilter' => '', 'no-border-align' => '', 'rotate facing' => '0', 'cache options' => '', 'window_x' => '297', 'quality' => '75', 'window_y' => '0', 'date offset' => '0', 'version' => '0.9.31', 'scan prefix' => '', 'device' => 'snapscan:libusb:/dev/usb:/dev/ugen2.2', 'no-noisefilter' => '', 'black-threshold' => '0.33', 'profile' => {}, 'unsharp radius' => '0', 'window_maximize' => '', 'white-threshold' => '0.9', 'pid' => '99120', 'unsharp amount' => '1', 'OCR output' => 'replace', 't' => '0', 'OCR on scan' => '', 'Page range' => 'all', 'default' => { 'snapscan:libusb:/dev/usb:/dev/ugen2.2' => { 'br-x' => '210' } }, 'window_height' => '992', 'rotate reverse' => '0', 'brightness' => '0', 'Dark threshold' => '0.12', 'pages to scan' => '1', 'resolution' => '300', 'Blank threshold' => '0.005', 'unpaper on scan' => '', 'libsane-perl version' => '0.03', 'x' => '210', 'downsample dpi' => '150', 'window_width' => '1009', 'deskew-scan-direction' => 'left,right', 'threshold tool' => '80', 'unsharp sigma' => '1', 'thumb panel' => '100', 'contrast' => '0', 'unsharp threshold' => '0.05', 'l' => '0', 'SANE version' => '1.0.21', 'no-mask-scan' => '', 'downsample' => '', 'restore window' => '1', 'pdf compression' => 'auto' }; Found Image::Magick Found ImageMagick Found scanadf Found xdg-email Found gocr Found tesseract Found cjb2 (djvu) Found unpaper Found libtiff Restoring session in /tmp/ugiLTsGbpj All my ports are updated. I don't know what else to try. On Tue, Jul 6, 2010 at 9:11 PM, Torfinn Ingolfsen wrote: > > > On Thu, Jun 3, 2010 at 9:00 PM, Torfinn Ingolfsen wrote: >> >> Hello, >> >> gscan2pdf 0.9.30 hangs when I am trying to save a document. Scanning >> works. >> When started from a shell, here is the output: >> gscan2pdf 0.9.30 >> Startup LC_NUMERIC C >> [snapscan] Scanner warming up - waiting 15 seconds. >> >> (gscan2pdf:76879): GVFS-RemoteVolumeMonitor-WARNING **: remote volume >> monitor with dbus name org.gtk.Private.HalVolumeMonitor is not supported >> >> (gscan2pdf:76879): GVFS-RemoteVolumeMonitor-WARNING **: remote volume >> monitor with dbus name org.gtk.Private.GPhoto2VolumeMonitor is not supported >> >> Note: this is without hald running (the way I normally run my >> workstation). >> With hald running, the output is like this: >> tingo@kg-v2$ gscan2pdf >> gscan2pdf 0.9.30 >> Startup LC_NUMERIC C >> >> And here is the partial output from 'gcan2pdf --debug' (with hald >> running): >> Running sane_start for SANE_Handle 15203456 >> Getting parameters for SANE_Handle 15203456 >> gscan2pdf: scanning image of size 2480x3507 pixels at 24 bits/pixel >> gscan2pdf: acquiring RGB frame >> gscan2pdf: min/max graylevel value = 21/255 >> gscan2pdf: read 26092080 bytes in total >> Scanned page /tmp/H3m0OSoUmg/out1.pnm. (scanner status = 5) >> importing scan with resolution=300 >> Format is P6 >> Header is 37 >> Header suggests 26092117 >> Expecting 26092117, found 26092117 >> Importing /tmp/H3m0OSoUmg/out1.pnm, format Portable anymap >> Added /tmp/H3m0OSoUmg/ckocqVTI8S.pnm at page 1 with resolution 300 >> >> As you can see, there is no output after scanning finishes. And after I >> press "save", the gui hangs and must be killed. >> Notes: >> - selecting a different format (for example jpeg) instead of PDF when >> saving doesn't change anything >> >> Any ideas on what I can do to fix it? >> -- >> Regards, >> Torfinn Ingolfsen > > I tried portdowngrading ImageMagick to ImageMagick-6.5.8.10_2, then > re-installing (portupgrade -f) gscan2pdf, but that didn't help either. > -- > Regards, > Torfinn Ingolfsen > -- mvh Torfinn