[Gambas-bugtracker] Bug #1664: Error with gb.scanner with Brother DCPL2550DW scanner

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Mon Oct 14 11:59:53 CEST 2019


http://gambaswiki.org/bugtracker/edit?object=BUG.1664&from=L21haW4-

Safiur RAHMAN reported a new bug.

Summary
-------

Error with gb.scanner with Brother DCPL2550DW scanner

Type             : Request
Priority         : High
Gambas version   : 3.13
Product          : Bugtracker


Description
-----------

Error with gb.scanner with Brother DCPL2550DW scanner

1)I get the scanner name without any problem:

      Dim xScanName As String[]
      Dim xscanner As String

       xScanName = New String[]
       For Each xscanner In Scanners
       xScanName.Add(xscanner)
       Next
       Print xScanName[0]

The result is :  brother4:net1;dev0

2) When I run $ scanimage --device-name='brother4:net1;dev0' -A

The result is:

scanimage: rounded value of br-x from 215.9 to 215.88
scanimage: rounded value of br-y from 355.6 to 355.567

All options specific to device `brother4:net1;dev0':
  Mode:
    --mode Black & White|Gray[Error Diffusion]|True Gray|24bit Color|24bit Color[Fast] [24bit Color[Fast]]
        Select the scan mode
    --resolution 100|150|200|300|400|600|1200|2400|4800|9600dpi [200]
        Sets the resolution of the scanned image.
    --source FlatBed|Automatic Document Feeder(left aligned)|Automatic Document Feeder(left aligned,Duplex)|Automatic Document Feeder(centrally aligned)|Automatic Document Feeder(centrally aligned,Duplex) [Automatic Document Feeder(left aligned)]
        Selects the scan source (such as a document-feeder).
    --brightness -50..50% (in steps of 1) [inactive]
        Controls the brightness of the acquired image.
    --contrast -50..50% (in steps of 1) [inactive]
        Controls the contrast of the acquired image.
  Geometry:
    -l 0..215.9mm (in steps of 0.0999908) [0]
        Top-left x position of scan area.
    -t 0..355.6mm (in steps of 0.0999908) [0]
        Top-left y position of scan area.
    -x 0..215.9mm (in steps of 0.0999908) [215.88]
        Width of scan-area.
    -y 0..355.6mm (in steps of 0.0999908) [355.567]
        Height of scan-area.

3) When I do scanning 
       $himage = Scanners["brother4:net1;dev0"].Scan()
       DrawingArea1.Refresh

I get error: [6] Type mismatch: wanted float got string instead
             Scanners.GetOptions.164


System information
------------------

[System]
Gambas=3.14
OperatingSystem=Linux
Kernel=4.15.0-65-generic
Architecture=x86_64
Distribution=Ubuntu 18.04.3 LTS
Desktop=UBUNTU:GNOME
Theme=Fusion
Language=en_US.UTF-8
Memory=7874M

[Libraries]
Cairo=libcairo.so.2.11510.0
Curl=libcurl.so.4.5.0
DBus=libdbus-1.so.3.19.4
GStreamer=libgstreamer-1.0.so.0.1405.0
GTK+2=libgtk-x11-2.0.so.0.2400.32
GTK+3=libgtk-3.so.0.2200.30
OpenGL=libGL.so.1.0.0
Poppler=libpoppler.so.73.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.9.5
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
CLUTTER_IM_MODULE=xim
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=ubuntu
DISPLAY=:0
GB_GUI=gb.qt5
GDMSESSION=ubuntu
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=13809
GJS_DEBUG_OUTPUT=stderr
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_SHELL_SESSION_MODE=ubuntu
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GTK_IM_MODULE=ibus
GTK_MODULES=gail:atk-bridge
HOME=/home/cogent<hostname>
IM_CONFIG_PHASE=2
LANG=en_US.UTF-8
LC_ADDRESS=bho_NP
LC_IDENTIFICATION=bho_NP
LC_MEASUREMENT=bho_NP
LC_MONETARY=bho_NP
LC_NAME=bho_NP
LC_NUMERIC=bho_NP
LC_PAPER=bho_NP
LC_TELEPHONE=bho_NP
LC_TIME=bho_NP
LOGNAME=cogent<hostname>
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/cogent<hostname>/.dotnet/tools
PWD=/home/cogent<hostname>
QT4_IM_MODULE=xim
QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1269,unix/<hostname>:/tmp/.ICE-unix/1269
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_PID=1379
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TEXTDOMAIN=im-config
TEXTDOMAINDIR=/usr/share/locale/
TZ=:/etc/localtime
USER=cogent<hostname>
USERNAME=cogent<hostname>
WINDOWPATH=1
XAUTHORITY=/run/user/1000/gdm/Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
XDG_CURRENT_DESKTOP=ubuntu:GNOME
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_ID=1
XDG_SESSION_TYPE=x11
XDG_VTNR=1
XMODIFIERS=@im=ibus
_WSREP_START_POSITION=




More information about the Bugtracker mailing list