Bug 1816487

Summary: requires X11 to run
Product: [Fedora] Fedora Reporter: Przemek Klosowski <przemek>
Component: gazeboAssignee: Rich Mattes <richmattes>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: logans, mrokita, richmattes, rkudyba, robotics
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gazebo-10.1.0-4.fc32 gazebo-9.5.0-9.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 02:30:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot showing black screen none

Description Przemek Klosowski 2020-03-24 05:32:34 UTC
Description of problem:
gazebo crashes in Wayland. It requires X11 graphic backend.

Version-Release number of selected component (if applicable):
gazebo-9.5.0-8.fc31.x86_64

How reproducible: every time

Steps to Reproduce:
1. gazebo

Actual results:
terminate called after throwing an instance of 'gazebo::common::Exception'
AL lib: (WW) alcCloseDevice: Releasing context 0x55d05dc072f0
AL lib: (WW) alcSetError: Error generated on device (nil), code 0xa002


Expected results: no crash, visible main window

Comment 1 Przemek Klosowski 2020-03-24 05:33:49 UTC
A workaround is to override the session with environment variable XDG_SESSION_TYPE

XDG_SESSION_TYPE=x11 gazebo

Comment 2 Rich Mattes 2020-04-18 18:40:30 UTC
*** Bug 1815270 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2020-04-19 22:09:28 UTC
FEDORA-2020-9d19841886 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-9d19841886

Comment 4 Fedora Update System 2020-04-19 22:10:25 UTC
FEDORA-2020-0c996c59ba has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-0c996c59ba

Comment 5 Fedora Update System 2020-04-20 16:18:38 UTC
FEDORA-2020-9d19841886 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-9d19841886`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-9d19841886

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2020-04-20 22:37:05 UTC
FEDORA-2020-0c996c59ba has been pushed to the Fedora 31 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-0c996c59ba`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-0c996c59ba

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2020-04-28 02:30:36 UTC
FEDORA-2020-9d19841886 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2020-04-28 02:56:03 UTC
FEDORA-2020-0c996c59ba has been pushed to the Fedora 31 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 RobbieTheK 2020-08-20 15:38:44 UTC
Created attachment 1712048 [details]
screenshot showing black screen

Same problem on Fedora 32 with X2Go and suggested work around in c1 does not work:
XDG_SESSION_TYPE=x11 gazebo
AL lib: (WW) alcCloseDevice: Releasing context 0x555b916a1950
AL lib: (WW) alcSetError: Error generated on device (nil), code 0xa002

Process 177179 (gzclient-10.1.0) crashed in ??()
Aug 20 11:29:06 storm kernel: gzclient[178535]: segfault at 20 ip 00007f5c67666cc6 sp 00007ffe7777d220 error 4 in libOgreMain.
so.1.9.0[7f5c67462000+2f0000]
Aug 20 11:29:06 storm kernel: Code: 00 5b 5d 41 5c 41 5d 41 5e c3 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 55 48 89 e5 41 56
49 89 fe 41 55 41 54 53 48 83 ec 60 <48> 8b 7f 20 64 48 8b 04 25 28 00 00 00 48 89 45 d8 31 c0 48 85 ff
Aug 20 11:29:06 storm systemd[1]: Started Process Core Dump (PID 178868/UID 0).
Aug 20 11:29:08 storm systemd-coredump[178871]: Core file was truncated to 2147483648 bytes.

Also using MobaXterm (which has X11 forwarding built in), the scene never appears, just a black screen.

Note Gazebo 11 has been available for a while and https://bugzilla.redhat.com/show_bug.cgi?id=1694168 mentions it's coming in the next release, which I presume to mean Fedora 33?

Comment 10 Rich Mattes 2020-08-22 01:12:24 UTC
I'm seeing the same thing shown in your screenshot on f32 with gazebo-10.1.0. I filed a bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1871291