gscan2pdf was opening with a blank window with only title bar.

Bug #1869579 reported by Utku BERBEROĞLU
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gscan2pdf (Ubuntu)
New
Undecided
Unassigned

Bug Description

When I open gscan2pdf, a blank window(white)with only title bar come.

Description: Ubuntu 19.10
Release: 19.10

gscan2pdf:
  Insallled: 2.5.7-1

Steps:

1) Install gscan2pdf package
2) Click gscan2pdf icon on menu.
3) A blank window(white)with only title bar opens.

I expected to open gscan2pdf app normally.

P.S. There was no problem on Xubuntu.

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: gscan2pdf 2.5.7-1
ProcVersionSignature: Ubuntu 5.3.0-42.34-generic 5.3.18
Uname: Linux 5.3.0-42-generic x86_64
ApportVersion: 2.20.11-0ubuntu8.7
Architecture: amd64
CurrentDesktop: GNOME-Flashback:GNOME
Date: Sun Mar 29 15:57:38 2020
InstallationDate: Installed on 2020-03-29 (0 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=tr_TR.UTF-8
 SHELL=/bin/bash
SourcePackage: gscan2pdf
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Utku BERBEROĞLU (boluluutku) wrote :
Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote :

Please start gscan2pdf from the command line with the --log=log option, reproduce the problem, quit, and post the log.xz file.

You can upgrade to the latest version from my ppa:

 sudo apt-add-repository ppa:jeffreyratcliffe
 sudo apt-get update
 sudo apt-get install gscan2pdf

Revision history for this message
Utku BERBEROĞLU (boluluutku) wrote :
Download full text (8.7 KiB)

INFO - Starting gscan2pdf 2.5.7
INFO - Log level DEBUG
INFO - Using tr_TR.UTF-8 locale
INFO - Startup LC_NUMERIC C
INFO - Reading config from /home/utku/.config/gscan2pdfrc
INFO - Config file version 2
DEBUG - $VAR1 = {};

INFO - Operating system: linux
INFO - DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=19.10
DISTRIB_CODENAME=eoan
DISTRIB_DESCRIPTION="Ubuntu 19.10"
INFO - NAME="Ubuntu"
VERSION="19.10 (Eoan Ermine)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 19.10"
VERSION_ID="19.10"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=eoan
UBUNTU_CODENAME=eoan
INFO - Perl version v5.28.1
INFO - Glib-Perl version 1.3291
INFO - Glib::Object::Introspection version 0.047
INFO - Built for Glib 2.62.0
INFO - Running with Glib 2.62.4
INFO - Gtk3-Perl version 0.036
INFO - Built for GTK 3.24.12
INFO - Running with GTK 3.24.12
INFO - Gscan2pdf::Document version 2.5.7
INFO - Using PDF::API2 version 2.033
INFO - Using Sane version 1.0.27
INFO - Using libimage-sane-perl version 0.14
DEBUG - $VAR1 = {
          'Blank threshold' => '0.005',
          'Dark threshold' => '0.12',
          'OCR on scan' => 1,
          'OCR output' => 'replace',
          'Page range' => 'all',
          'Paper' => {
                       'A3' => {
                                 'l' => 0,
                                 't' => 0,
                                 'x' => 297,
                                 'y' => 420
                               },
                       'A4' => {
                                 'l' => 0,
                                 't' => 0,
                                 'x' => 210,
                                 'y' => 297
                               },
                       'US Legal' => {
                                       'l' => 0,
                                       't' => 0,
                                       'x' => 216,
                                       'y' => 356
                                     },
                       'US Letter' => {
                                        'l' => 0,
                                        't' => 0,
                                        'x' => 216,
                                        'y' => 279
                                      }
                     },
          'SANE version' => '1.0.27',
          'TMPDIR' => undef,
          'adf-defaults-scan-all-pages' => 1,
          'allow-batch-flatbed' => '',
          'author' => undef,
          'author-suggestions' => undef,
          'auto-open-scan-dialog' => 1,
          'available-tmp-warning' => 10,
          'brightness tool' => 65,
          'cache' => undef,
          'cache options' => 1,
          'cancel-between-pages' => '',
          'close_dialog_on_save' => 1,
          'contrast tool' => 65,
          'convert whitespace to underscores' => '',
          'current_psh' => undef,
          'current_udt' => undef,
          'cwd' => undef,
          'cycle sane handle' => '',
          'datetime offset' => [
                                 0...

Read more...

Revision history for this message
Utku BERBEROĞLU (boluluutku) wrote :
Download full text (9.2 KiB)

Same problem with ppa version. (By the way, thank you for this nice software.)

INFO - Starting gscan2pdf 2.6.5
INFO - Log level DEBUG
INFO - Using tr_TR.UTF-8 locale
INFO - Startup LC_NUMERIC C
INFO - Reading config from /home/utku/.config/gscan2pdfrc
INFO - Config file version 2
DEBUG - $VAR1 = {};

INFO - Operating system: linux
INFO - DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=19.10
DISTRIB_CODENAME=eoan
DISTRIB_DESCRIPTION="Ubuntu 19.10"
INFO - NAME="Ubuntu"
VERSION="19.10 (Eoan Ermine)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 19.10"
VERSION_ID="19.10"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=eoan
UBUNTU_CODENAME=eoan
INFO - Perl version v5.28.1
INFO - Glib-Perl version 1.3291
INFO - Glib::Object::Introspection version 0.047
INFO - Built for Glib 2.62.0
INFO - Running with Glib 2.62.4
INFO - Gtk3-Perl version 0.036
INFO - Built for GTK 3.24.12
INFO - Running with GTK 3.24.12
INFO - Gscan2pdf::Document version 2.6.5
INFO - Using PDF::API2 version 2.033
INFO - Using Sane version 1.0.27
INFO - Using libimage-sane-perl version 5
DEBUG - $VAR1 = {
          'Blank threshold' => '0.005',
          'Dark threshold' => '0.12',
          'OCR on scan' => 1,
          'OCR output' => 'replace',
          'Page range' => 'all',
          'Paper' => {
                       'A3' => {
                                 'l' => 0,
                                 't' => 0,
                                 'x' => 297,
                                 'y' => 420
                               },
                       'A4' => {
                                 'l' => 0,
                                 't' => 0,
                                 'x' => 210,
                                 'y' => 297
                               },
                       'US Legal' => {
                                       'l' => 0,
                                       't' => 0,
                                       'x' => 216,
                                       'y' => 356
                                     },
                       'US Letter' => {
                                        'l' => 0,
                                        't' => 0,
                                        'x' => 216,
                                        'y' => 279
                                      }
                     },
          'SANE version' => '1.0.27',
          'TMPDIR' => undef,
          'adf-defaults-scan-all-pages' => 1,
          'allow-batch-flatbed' => '',
          'author' => undef,
          'author-suggestions' => undef,
          'auto-open-scan-dialog' => 1,
          'available-tmp-warning' => 10,
          'brightness tool' => 65,
          'cache' => undef,
          'cache options' => 1,
          'cancel-between-pages' => '',
          'close_dialog_on_save' => 1,
          'contrast tool' => 65,
          'convert whitespace to underscores' => '',
          'current_psh' => undef,
          'current_udt' => undef,
          'cwd' => undef,
          'cycle sane handl...

Read more...

Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote :

There is evidently something about the TIFF from imagemagick that PDF::API2 doesn't like. Please

 convert rose: /tmp/rose.tif

and post /tmp/rose.tif

The /tmp/ might be important, so please leave it in when creating the file.

Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote :

What I don't understand is that gscan2pdf builds (including the complete test suite) in eoan fine:

https://launchpadlibrarian.net/467999908/buildlog_ubuntu-eoan-amd64.gscan2pdf_2.6.5-0~ppa1eoan_BUILDING.txt.gz

What do the following return:

 ls -l `which convert`
 ls -l `which pdftk`

?

Revision history for this message
Utku BERBEROĞLU (boluluutku) wrote :

$ ls -l `which convert`
lrwxrwxrwx 1 root root 25 Mar 29 15:53 /usr/bin/convert -> /etc/alternatives/convert

$ ls -l `which pdftk`
lrwxrwxrwx 1 root root 23 Mar 29 15:53 /usr/bin/pdftk -> /etc/alternatives/pdftk

Revision history for this message
Utku BERBEROĞLU (boluluutku) wrote :

I can't understand Comment #5.

Whats is rose.tiff? How to convert this file?

Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote :

The command:

 convert rose: /tmp/rose.tif
 ls -l /tmp/rose.tif

should create a TIFF of a rose in the file /tmp/rose.tif

If it doesn't, that explains the problem, because evidently something is preventing imagemagick from accessing /tmp.

What does the following produce:

 ls -l /etc/alternatives/convert /etc/alternatives/pdftk

?

Revision history for this message
Utku BERBEROĞLU (boluluutku) wrote :

~$ convert rose: /tmp/rose.tif
convert-im6.q16: unable to open image `rose:': Böyle bir dosya ya da dizin yok @ error/blob.c/OpenBlob/2874.
convert-im6.q16: no decode delegate for this image format `' @ error/constitute.c/ReadImage/560.
convert-im6.q16: no images defined `/tmp/rose.tif' @ error/convert.c/ConvertImageCommand/3258.

~$ ls -l /tmp/rose.tif
ls: '/tmp/rose.tif''e erişilemedi: Böyle bir dosya ya da dizin yok

(The last one is(in Turkish) "no such file or directory. error")

~$ ls -l /etc/alternatives/convert /etc/alternatives/pdftk
lrwxrwxrwx 1 root root 24 Mar 29 15:53 /etc/alternatives/convert -> /usr/bin/convert-im6.q16
lrwxrwxrwx 1 root root 25 Mar 29 15:53 /etc/alternatives/pdftk -> /usr/bin/pdftk.pdftk-java

Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote :
Download full text (15.1 KiB)

If

 convert rose: /tmp/rose.tif

cannot read rose:, then your imagemagick installation is broken.

What does

 convert -list format

return?

I get:

   Format Module Mode Description
-------------------------------------------------------------------------------
      3FR DNG r-- Hasselblad CFV/H3D39II
      3G2 MPEG r-- Media Container
      3GP MPEG r-- Media Container
      AAI* AAI rw+ AAI Dune image
       AI PDF rw- Adobe Illustrator CS2
      ART* ART rw- PFS: 1st Publisher Clip Art
      ARW DNG r-- Sony Alpha Raw Image Format
      AVI MPEG r-- Microsoft Audio/Visual Interleaved
      AVS* AVS rw+ AVS X image
      BGR* BGR rw+ Raw blue, green, and red samples
     BGRA* BGR rw+ Raw blue, green, red, and alpha samples
     BGRO* BGR rw+ Raw blue, green, red, and opacity samples
      BIE* JBIG rw- Joint Bi-level Image experts Group interchange format (2.1)
      BMP* BMP rw- Microsoft Windows bitmap image
     BMP2* BMP rw- Microsoft Windows bitmap image (V2)
     BMP3* BMP rw- Microsoft Windows bitmap image (V3)
      BRF* BRAILLE -w- BRF ASCII Braille format
      CAL* CALS rw- Continuous Acquisition and Life-cycle Support Type 1
           Specified in MIL-R-28002 and MIL-PRF-28002
     CALS* CALS rw- Continuous Acquisition and Life-cycle Support Type 1
           Specified in MIL-R-28002 and MIL-PRF-28002
   CANVAS* XC r-- Constant image uniform color
  CAPTION* CAPTION r-- Caption
      CIN* CIN rw- Cineon Image File
      CIP* CIP -w- Cisco IP phone image format
     CLIP* CLIP rw+ Image Clip Mask
     CMYK* CMYK rw+ Raw cyan, magenta, yellow, and black samples
    CMYKA* CMYK rw+ Raw cyan, magenta, yellow, black, and alpha samples
      CR2 DNG r-- Canon Digital Camera Raw Image Format
      CRW DNG r-- Canon Digital Camera Raw Image Format
      CUR* ICON rw- Microsoft icon
      CUT* CUT r-- DR Halo
     DATA* INLINE rw+ Base64-encoded inline images
      DCM* DCM r-- Digital Imaging and Communications in Medicine image
           DICOM is used by the medical community for images like X-rays. The
           specification, "Digital Imaging and Communications in Medicine
           (DICOM)", is available at http://medical.nema.org/. In particular,
           see part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),
           and supplement 61 which adds JPEG-2000 encoding.
      DCR DNG r-- Kodak Digital Camera Raw Image File
      DCX* PCX rw+ ZSoft IBM PC multi-page Paintbrush
      DDS* DDS rw+ Microsoft DirectDraw Surface
    DFONT* TTF r-- Multi-face font package (Freetype 2.9.1)
     DJVU* DJVU r-- Deja vu
           See http://www.djvuzone.org/ for details about the DJVU format. The
           DJVU 1.2 specification is available there and at
           ftp://swrinde.nde.swri.edu/pub/djvu/documents/.
      DNG DNG r-- Digital Negative
      DOT DOT --- Graphviz
      DPX* DPX rw- SMPTE 268M-2003 ...

Revision history for this message
Utku BERBEROĞLU (boluluutku) wrote :
Download full text (11.8 KiB)

There was no error message. Here is the output.

~$ convert -list format
   Format Module Mode Description
-------------------------------------------------------------------------------
      3FR DNG r-- Hasselblad CFV/H3D39II
      3G2 MPEG r-- Media Container
      3GP MPEG r-- Media Container
      IIQ DNG r-- Phase One Raw Image Format
      ICB* TGA rw- Truevision Targa image
       AI PDF rw- Adobe Illustrator CS2
      ART* ART rw- PFS: 1st Publisher Clip Art
      ARW DNG r-- Sony Alpha Raw Image Format
      AVI MPEG r-- Microsoft Audio/Visual Interleaved
      AVS* AVS rw+ AVS X image
      BGR* BGR rw+ Raw blue, green, and red samples
     BGRA* BGR rw+ Raw blue, green, red, and alpha samples
     BGRO* BGR rw+ Raw blue, green, red, and opacity samples
      BMP* BMP rw- Microsoft Windows bitmap image
     BMP2* BMP rw- Microsoft Windows bitmap image (V2)
     BMP3* BMP rw- Microsoft Windows bitmap image (V3)
      CAL* CALS rw- Continuous Acquisition and Life-cycle Support Type 1
           Specified in MIL-R-28002 and MIL-PRF-28002
     CALS* CALS rw- Continuous Acquisition and Life-cycle Support Type 1
           Specified in MIL-R-28002 and MIL-PRF-28002
   CANVAS* XC r-- Constant image uniform color
     CMYK* CMYK rw+ Raw cyan, magenta, yellow, and black samples
    CMYKA* CMYK rw+ Raw cyan, magenta, yellow, black, and alpha samples
      CR2 DNG r-- Canon Digital Camera Raw Image Format
      CRW DNG r-- Canon Digital Camera Raw Image Format
      CUT* CUT r-- DR Halo
      DCM* DCM r-- Digital Imaging and Communications in Medicine image
           DICOM is used by the medical community for images like X-rays. The
           specification, "Digital Imaging and Communications in Medicine
           (DICOM)", is available at http://medical.nema.org/. In particular,
           see part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),
           and supplement 61 which adds JPEG-2000 encoding.
      DCR DNG r-- Kodak Digital Camera Raw Image File
      DCX* PCX rw+ ZSoft IBM PC multi-page Paintbrush
      DDS* DDS rw+ Microsoft DirectDraw Surface
    DFONT* TTF r-- Multi-face font package (Freetype 2.9.1)
     DJVU* DJVU r-- Deja vu
           See http://www.djvuzone.org/ for details about the DJVU format. The
           DJVU 1.2 specification is available there and at
           ftp://swrinde.nde.swri.edu/pub/djvu/documents/.
      DNG DNG r-- Digital Negative
      DOT DOT --- Graphviz
      DPX* DPX rw- SMPTE 268M-2003 (DPX 2.0)
           Digital Moving Picture Exchange Bitmap, Version 2.0.
           See SMPTE 268M-2003 specification at http://www.smtpe.org

     DXT1* DDS rw+ Microsoft DirectDraw Surface
     DXT5* DDS rw+ Microsoft DirectDraw Surface
      EPI PS rw- Encapsulated PostScript Interchange format
     EPDF PDF rw- Encapsulated Portable Document Format
      EPS PS rw- E...

Revision history for this message
Utku BERBEROĞLU (boluluutku) wrote :

I solved the problem. When I switch language of the computer to English, there was no problem.

Revision history for this message
Utku BERBEROĞLU (boluluutku) wrote :

I used computer with Turkish Language.

Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote :

Ooh. That must be a bug in imagemagick. What about:

 convert logo: file.png

or

 convert wizard: file.png

?

There are lots of non-English users of gscan2pdf and this has never been a problem before.

Can you file a bug against imagemagick that

 convert rose: file.png

doesn't work?

Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote :

Just to confirm that /tmp is not the problem, please try:

 convert rose: rose.tif

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.