DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th November 2018
rdikarlus rdikarlus is offline
Real Name: Carlosn
Fdisk Soldier
 
Join Date: Nov 2018
Location: IBZ ISLAND
Posts: 63
Default Using an HP DeskJet 2540 for scanning

Hi all,

I am trying to use my HP Deskjet 2540 to scan documents at home. It's a network printer-scanner that prints perfectly in my OpenBSD 6.4 and even starts scanning, but after some seconds this message appears and the scanning process finishes:
Code:
openbsdnew$ scanimage -p > image.pnm
dbus[57502]: arguments to dbus_connection_send() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 3307.
This is normally a bug in some application using the D-Bus library.

  D-Bus not compiled with backtrace support so unable to print a backtrace
Abort trap (core dumped) 
openbsdnew$ scanimage > image.pnm    
dbus[40602]: arguments to dbus_connection_send() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 3307.
This is normally a bug in some application using the D-Bus library.

D-Bus not compiled with backtrace support so unable to print a backtrace
Abort trap (core dumped
It seems that the D-Bus library was not correctly compiled. I assume it was installed in my system as part of a dependency when installing any package using the pkg_add command. Any idea how to solve this?

Thanks !

Last edited by rdikarlus; 25th November 2018 at 07:01 AM. Reason: Please use [code] & [/code] tags when posting console output.
Reply With Quote
  #2   (View Single Post)  
Old 24th November 2018
johnR johnR is offline
Fdisk Soldier
 
Join Date: Nov 2017
Posts: 57
Default

Quote:
D-Bus not compiled with backtrace support so unable to print a backtrace
This just means D-Bus was compiled without debugging symbols, which is normal. To get a meaningful backtrace from it you'd have to recompile it with debugging symbols.

What happens if you just turn D-Bus off? I have D-Bus installed as a dependency but I've never bothered to switch it on. Scanning, usually with xsane here, works fine.

To switch off D-Bus:
Code:
# /etc/rc.d/messagebus -f stop
To start it again (without rebooting):
Code:
# /etc/rc.d/messagebus start
Reply With Quote
  #3   (View Single Post)  
Old 24th November 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

rcctl(8) is the recommended command control for rc.d(8) operational management. For example, # rcctl stop messagebus.
Reply With Quote
  #4   (View Single Post)  
Old 25th November 2018
johnR johnR is offline
Fdisk Soldier
 
Join Date: Nov 2017
Posts: 57
Default

Quote:
Originally Posted by jggimi View Post
rcctl(8) is the recommended command control for rc.d(8) operational management. For example, # rcctl stop messagebus.
Thanks jggimi, that's good to know. I'm still getting used to OpenBSD after many years of Linux use.
Reply With Quote
  #5   (View Single Post)  
Old 24th November 2018
rdikarlus rdikarlus is offline
Real Name: Carlosn
Fdisk Soldier
 
Join Date: Nov 2018
Location: IBZ ISLAND
Posts: 63
Default

I found out the failure, thanks! messagebus must be started. It seems that with the default OpenBSD installation configurations it doesn't start by default when booting. Xsane and simple-scan are working fine now!

/etc/rc.d/messagebus start

Thanks,

Last edited by rdikarlus; 25th November 2018 at 07:02 AM.
Reply With Quote
  #6   (View Single Post)  
Old 24th November 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

If you wish, you can use rcctl(8) to make this permanent.

# rcctl enable messagebus
Reply With Quote
  #7   (View Single Post)  
Old 25th November 2018
rdikarlus rdikarlus is offline
Real Name: Carlosn
Fdisk Soldier
 
Join Date: Nov 2018
Location: IBZ ISLAND
Posts: 63
Default

Great!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
scanning network using ioctl problem munchiez Programming 1 26th November 2012 09:07 PM
Nessus 5.0 accelerates vulnerability scanning J65nko News 0 17th February 2012 12:51 PM
Scanning network neighbors badguy OpenBSD General 2 7th December 2011 11:51 PM
Scanning without root with sane backrow OpenBSD Packages and Ports 4 16th May 2011 11:36 PM
Payment Card Industry compliance scanning dk_netsvil General software and network 2 21st July 2008 05:32 AM


All times are GMT. The time now is 06:21 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick