← Back to team overview

desktop-packages team mailing list archive

[Bug 1501009] Re: g_type_init error when using cups-browsed

 

There is no problem to use the legacy CUPS broadcasting and browsing
protocol, even if all your machines are CUPS 1.6.x and newer (then the
broadcasting and browsing happens between the cups-browsed daemons on
the machines).

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to cups-filters in Ubuntu.
https://bugs.launchpad.net/bugs/1501009

Title:
  g_type_init error when using cups-browsed

Status in cups-filters package in Ubuntu:
  New

Bug description:
  I'm trying to set up printer browsing using two CUPS servers 2.0.4 and cups-filters 1.0.78 on Ubuntu 12.04 x64.
  Master server has one printer configured, slave has none, and sync over cups-browsed doesn't happen.

  /etc/cups/cups-browsed.conf on the master looks like this:
  BrowseRemoteProtocols none
  BrowseLocalProtocols cups
  AutoShutdown Off

  /etc/cups/cups-browsed.conf on the slave looks like this:
  BrowseRemoteProtocols cups
  BrowseLocalProtocols none
  BrowsePoll printserver-master.acme.com
  AutoShutdown Off

  If I try to run cups-browsed with -d to see what it is going to do, I
  get this output on the slave:

  slave $ sudo /usr/sbin/cups-browsed -d
  cups-browsed: Reading command line: -d
  cups-browsed: Reading config: BrowseRemoteProtocols cups
  cups-browsed: Reading config: BrowseLocalProtocols none
  cups-browsed: Reading config: BrowsePoll printserver-master.acme.com
  cups-browsed: Adding BrowsePoll server: printserver-master.acme.com
  cups-browsed: Reading config: AutoShutdown Off
  cups-browsed: Turning off auto shutdown mode (permanent mode).
  cups-browsed: network interface at 10.0.0.12
  cups-browsed [BrowsePoll localhost:631]: IPP-Create-Subscription
  cups-browsed [BrowsePoll localhost:631]: subscription ID=6314
  cups-browsed [BrowsePoll localhost:631]: cupsGetDests
  cups-browsed: Could not determine system default printer!
  cups-browsed: Using signal handler SIGACTION

  (process:31220): GLib-GObject-CRITICAL **: /tmp/buildd/glib2.0-2.32.4/./gobject/gtype.c:2722: You forgot to call g_type_init()
  (process:31220): GLib-GObject-CRITICAL **: /tmp/buildd/glib2.0-2.32.4/./gobject/gtype.c:2722: You forgot to call g_type_init()
  (process:31220): GLib-GObject-CRITICAL **: g_type_interface_add_prerequisite: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed
  (process:31220): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed
  (process:31220): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
  (process:31220): GLib-GObject-CRITICAL **: /tmp/buildd/glib2.0-2.32.4/./gobject/gtype.c:2722: You forgot to call g_type_init()
  <skip more lines like this>

  master $ sudo /usr/sbin/cups-browsed -d
  cups-browsed: Reading command line: -d
  cups-browsed: Reading config: BrowseRemoteProtocols none
  cups-browsed: Reading config: BrowseLocalProtocols cups
  cups-browsed: Reading config: AutoShutdown Off
  cups-browsed: Turning off auto shutdown mode (permanent mode).
  cups-browsed: network interface at 10.0.0.25
  cups-browsed: network interface at 10.1.24.22
  cups-browsed [BrowsePoll localhost:631]: IPP-Create-Subscription
  cups-browsed [BrowsePoll localhost:631]: subscription ID=8
  cups-browsed [BrowsePoll localhost:631]: cupsGetDests
  cups-browsed: preparing browse data
  cups-browsed: skipping copies (33)
  cups-browsed: skipping job-priority (33)
  cups-browsed: skipping number-up (33)
  cups-browsed: skipping orientation-requested (19)
  cups-browsed: skipping print-quality (35)
  cups-browsed: skipping media-col (52)
  cups-browsed: skipping printer-resolution (50)
  cups-browsed: skipping finishings (35)
  cups-browsed: Using signal handler SIGACTION

  (process:1877): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.32.4/./gobject/gtype.c:2722: You forgot to call g_type_init()
  (process:1877): GLib-GObject-CRITICAL **: g_type_interface_add_prerequisite: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed
  (process:1877): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed
  (process:1877): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
  (process:1877): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.32.4/./gobject/gtype.c:2722: You forgot to call g_type_init()
  (process:1877): GLib-GObject-CRITICAL **: g_type_interface_add_prerequisite: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed

  Also, it cannot quit:

  cups-browsed: Caught signal 2, shutting down ...
  (process:1877): GLib-CRITICAL **: g_main_loop_quit: assertion `loop != NULL' failed

  Am I doing it wrong? Why these errors appear?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1501009/+subscriptions


References