You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on this part of the code, if resolutions is provided, Clutter and Gtk will be initialized. However, both of them require a GUI for initialization. And that causing the job to fail.
if args.test in ['display', 'still', 'led', 'resolutions']:
import gi
gi.require_version('Gst', '1.0')
from gi.repository import Gst
gi.require_version('GLib', '2.0')
from gi.repository import GLib
gi.require_version('Clutter', '1.0')
from gi.repository import Clutter
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
Gst.init(None)
Clutter.init()
Gtk.init([])
(camera_test.py:15926): Clutter-CRITICAL **: 07:01:18.542: Unable to initialize Clutter: Could not initialize Gdk
(camera_test.py:15926): Gtk-WARNING **: 07:01:18.543: cannot open display:
camera_test.py comes with the following commands. Some of them are used in a graphical environment (desktop) and require some interaction with the operator, some don't, so we can split them like this:
Command
Desktop
Server/Core
detect
Required
Required
led
Required
Not required
display
Required
Not required
still
Required
Not required
resolutions
Required
Required
To-do:
Investigate what parts (detect,led,display,still,resolutions) really require Gtk/Clutter to run
Bug Description
camera/multiple-resolution-images_* job is unable to run on the server and core. This is because it is located in the client-cert-iot-ubuntucore-20.pxu / camera-automated and may require refactoring of the logic in camera_test.py.
Based on this part of the code, if resolutions is provided, Clutter and Gtk will be initialized. However, both of them require a GUI for initialization. And that causing the job to fail.
However, we tried to work around the issue by running the function without initializing Clutter and Gtk, and it seems to work fine.
https://certification.canonical.com/hardware/202305-31566/submission/323229/test/200875/result/34817873/
To Reproduce
camera/multiple-resolution-images.*
on server or coreEnvironment
Relevant log output
https://certification.canonical.com/hardware/202305-31566/submission/323043/test/76060/result/34787566/
Additional context
No response
The text was updated successfully, but these errors were encountered: