So here you are encoding one of the submessages:

> if (!pb_encode_submessage(ostream, Cluster_fields, &(source->rep[i])))
> {
> const char * error = PB_GET_ERROR(ostream);
> printf("SimpleMessage_encode_numbers error: %s\n", error);
> return false;
> }

You could do before pb_encode_submessage() call something like:

Cluster *submsg = &(source->rep[i]);
submsg->xaxis.arg = &(source->xaxis_data[i]);
submsg->xaxis.func = xaxis_callback_func;

and xaxis_callback_func would write the array data similar to e.g. this
test function write_repeated_varint():
[
https://github.com/nanopb/nanopb/blob/master/tests/alltypes_callback/encode_alltypes_callback.c#L57
](https://github.com/nanopb/nanopb/blob/master/tests/alltypes_callback/encode_alltypes_callback.c#L57)

Basically think of pb_encode_submessage() as if it was just a normal
pb_encode(). Before calling it, setup the callbacks that the submessage
contains.

\--

Notes about alternative methods if this gets too complex:

1) If your purpose is to encode only, you can also define
type:FT_POINTER for the field, and then you can provide a pointer to the
array you want to encode directly. For decoding FT_POINTER would require
malloc() support, but for encoding it works also without.

2) You can also use pb_encode_submessage() and pb_encode_varint() etc.
directly from the main program, without having to use callbacks. This
tends to be easier if most of your fields would be callback fields, with
few fields that benefit from the structs. But again, for decoding it's
not as useful, and callbacks are easier there.


#  geometry_msgs Msg/Srv Documentation
See also:
  * [ Website ](http://wiki.ros.org/geometry_msgs)
  * [ Code API Documentation ](index.html)
##  Message types
  * [ Accel ](msg/Accel.html)
  * [ AccelStamped ](msg/AccelStamped.html)
  * [ AccelWithCovariance ](msg/AccelWithCovariance.html)
  * [ AccelWithCovarianceStamped ](msg/AccelWithCovarianceStamped.html)
  * [ Inertia ](msg/Inertia.html)
  * [ InertiaStamped ](msg/InertiaStamped.html)
  * [ Point ](msg/Point.html)
  * [ Point32 ](msg/Point32.html)
  * [ PointStamped ](msg/PointStamped.html)
  * [ Polygon ](msg/Polygon.html)
  * [ PolygonStamped ](msg/PolygonStamped.html)
  * [ Pose ](msg/Pose.html)
  * [ Pose2D ](msg/Pose2D.html)
  * [ PoseArray ](msg/PoseArray.html)
  * [ PoseStamped ](msg/PoseStamped.html)
  * [ PoseWithCovariance ](msg/PoseWithCovariance.html)
  * [ PoseWithCovarianceStamped ](msg/PoseWithCovarianceStamped.html)
  * [ Quaternion ](msg/Quaternion.html)
  * [ QuaternionStamped ](msg/QuaternionStamped.html)
  * [ Transform ](msg/Transform.html)
  * [ TransformStamped ](msg/TransformStamped.html)
  * [ Twist ](msg/Twist.html)
  * [ TwistStamped ](msg/TwistStamped.html)
  * [ TwistWithCovariance ](msg/TwistWithCovariance.html)
  * [ TwistWithCovarianceStamped ](msg/TwistWithCovarianceStamped.html)
  * [ Vector3 ](msg/Vector3.html)
  * [ Vector3Stamped ](msg/Vector3Stamped.html)
  * [ Wrench ](msg/Wrench.html)
  * [ WrenchStamped ](msg/WrenchStamped.html)
_autogenerated on Wed, 02 Mar 2022 00:06:53_


[ 
](https://groups.google.com/group/nanopb/attach/25028042845d5/function_callback.h?part=0.3)


Sign in to forward


Reserved Field Name
Warning


Forward


Hi,

In your proto you have 'repeated' which can contain many items:


**[ umanayana ](/umanayana) ** commented  Aug 17, 2018


edited


Jun 12, 2019, 1:01:46 AM  6/12/19


On Mon., Aug. 20, 2018, 10:27 a.m. Petteri Aimonen, < ***@***.***> wrote:
That's because those are repeated fields, so to make them into (two-
dimensional) arrays, you need to specify max_count also. — You are receiving
this because you authored the thread. Reply to this email directly, view it on
GitHub < [ #331 (comment)
](https://github.com/nanopb/nanopb/issues/331#issuecomment-414335261) >, or
mute the thread < [ https://github.com/notifications/unsubscribe-
auth/AgjcnS9tK8q4bBNi95fPvqmUSMiFS0HIks5uSsdPgaJpZM4WCLMg
](https://github.com/notifications/unsubscribe-
auth/AgjcnS9tK8q4bBNi95fPvqmUSMiFS0HIks5uSsdPgaJpZM4WCLMg) > .

---

All reactions


  1. [ Reference Guides ](https://protobuf.dev/reference/)
  2. [ Ruby ](https://protobuf.dev/reference/ruby/)
  3. [ Generated Code Guide ](https://protobuf.dev/reference/ruby/ruby-generated/)


TIBCO Rendezvous® 8.7.0


Reply to author


{{ message }}


Copy link


###  Grooo


The protocol buffer compiler generates a class called ` Foo ` . The generated
class derives from the Ruby ` Object ` class (protos have no common base
class). Unlike C++ and Java, Ruby generated code is unaffected by the `
optimize_for ` option in the ` .proto ` file; in effect, all Ruby code is
optimized for code size.


[
![@PetteriAimonen](https://avatars.githubusercontent.com/u/922265?s=80&u=14ce5a89695c2e2e9f4a45948345741e7c9ea90a&v=4)
](/PetteriAimonen)


All reactions


Jump to bottom


> I could wait for a few days if you say so ?


#  Search code, repositories, users, issues, pull requests...


Send feedback to Google


Member


[ ![@PetteriAimonen](https://avatars.githubusercontent.com/u/922265?s=52&v=4)
](/PetteriAimonen) [
![@umanayana](https://avatars.githubusercontent.com/u/34135197?s=52&v=4)
](/umanayana)


I could wait for a few days if you say so ?


and then wrapping that in a submessage if that is the structure you want. The
protobuf encoding spec will help building the correct structure, which is the
same whether you use callbacks from pb_encode() or just call the functions
directly: [ https://developers.google.com/protocol-buffers/docs/encoding
](https://developers.google.com/protocol-buffers/docs/encoding)

---

All reactions


**[ umanayana ](/umanayana) ** commented  Aug 18, 2018  •


[
![@umanayana](https://avatars.githubusercontent.com/u/34135197?s=80&u=2f4a514b0e2ce5c2d97488daab852ae11d37538d&v=4)
](/umanayana)


edited


callbacks.proto


If you must store array elements as individual fields, be careful mapping array indices to field identifiers. Zero-based arrays are common in C++ programs, but zero has a special meaning as a field identifier—it represents the absence of an identifier. Do not map the zeroth element of an array (myArray[0]) to a field with identifier zero; it is impossible to retrieve such a field by its identifier (because it does not have one).


Reply to author


unread,


Report message


Either email addresses are anonymous for this group or you need the view
member email addresses permission to view the original message


#  Callbacks Repeated Field


Forward


Unlike singular fields, ` has_...? ` methods are never generated for repeated
fields.


Thank you !


        * [ ](/reference/java/api-docs/com/google/protobuf/compiler/pluginprotos.codegeneratorrequest.builder/)
        * [ ](/reference/java/api-docs/com/google/protobuf/compiler/pluginprotos.codegeneratorrequest/)
        * [ ](/reference/java/api-docs/com/google/protobuf/compiler/pluginprotos.codegeneratorrequestorbuilder/)
        * [ ](/reference/java/api-docs/com/google/protobuf/compiler/pluginprotos.codegeneratorresponse.builder/)
        * [ ](/reference/java/api-docs/com/google/protobuf/compiler/pluginprotos.codegeneratorresponse.feature/)
        * [ ](/reference/java/api-docs/com/google/protobuf/compiler/pluginprotos.codegeneratorresponse.file.builder/)
        * [ ](/reference/java/api-docs/com/google/protobuf/compiler/pluginprotos.codegeneratorresponse.file/)
        * [ ](/reference/java/api-docs/com/google/protobuf/compiler/pluginprotos.codegeneratorresponse.fileorbuilder/)
        * [ ](/reference/java/api-docs/com/google/protobuf/compiler/pluginprotos.codegeneratorresponse/)
        * [ ](/reference/java/api-docs/com/google/protobuf/compiler/pluginprotos.codegeneratorresponseorbuilder/)
        * [ ](/reference/java/api-docs/com/google/protobuf/compiler/pluginprotos/)
        * [ ](/reference/java/api-docs/com/google/protobuf/compiler/pluginprotos.version.builder/)
        * [ ](/reference/java/api-docs/com/google/protobuf/compiler/pluginprotos.version/)
        * [ ](/reference/java/api-docs/com/google/protobuf/compiler/pluginprotos.versionorbuilder/)
      * [ Kotlin  ](/reference/kotlin/ "Kotlin Reference")
        * [ Kotlin  ](/reference/kotlin/api-docs/ "Kotlin Reference")
          * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/)
            * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-dsl-list/)
              * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-dsl-list/-dsl-list/)
              * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-dsl-list/equals/)
              * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-dsl-list/hash-code/)
              * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-dsl-list/iterator/)
              * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-dsl-list/list-iterator/)
              * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-dsl-list/to-string/)
            * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-dsl-map/)
              * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-dsl-map/-dsl-map/)
              * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-dsl-map/entries/)
              * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-dsl-map/equals/)
              * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-dsl-map/hash-code/)
              * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-dsl-map/keys/)
              * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-dsl-map/to-string/)
              * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-dsl-map/values/)
            * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-dsl-proxy/)
            * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-extension-list/)
              * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-extension-list/-extension-list/)
              * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-extension-list/equals/)
              * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-extension-list/extension/)
              * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-extension-list/hash-code/)
              * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-extension-list/iterator/)
              * [ ](/reference/kotlin/api-docs/protobuf-kotlin/com.google.protobuf.kotlin/-extension-list/list-iterator/)


message Foo {}


Sign in to reply to author


For singular primitive fields (numbers, strings, and boolean), the value you
assign to the field should be of the correct type and must be in the
appropriate range:


  * Compiler Invocation
  * Packages
  * Messages
    * Nested Types
  * Fields
    * Singular Fields
    * Singular Message Fields
    * Repeated Fields
    * Map Fields
  * Enumerations
  * Oneof


Sign in to report message


Given a simple message declaration:


    message = MyMessage.new(:int_field => 1,
                            :string_field => "String",
                            :repeated_int_field => [1, 2, 3, 4],
                            :submessage_field => SubMessage.new(:foo => 42))
    serialized = MyMessage.encode(message)

    message2 = MyMessage.decode(serialized)
    raise unless message2.int_field == 1


[
![](https://fonts.gstatic.com/s/i/productlogos/groups/v9/web-48dp/logo_groups_color_1x_web_48dp.png)
Groups  ](./my-groups "Groups")


231 views


[ Sign up for free ](/join?source=comment-repo) **to join this conversation on
GitHub** . Already have an account? [ Sign in to comment
](/login?return_to=https%3A%2F%2Fgithub.com%2Fnanopb%2Fnanopb%2Fissues%2F331)


[ 
](https://groups.google.com/group/nanopb/attach/25028042845d5/encode_callbacks.c?part=0.2)


Did you find this helpful?


Milestone


Close search


Since Ruby does not have native enums, we create a module for each enum with
constants to define the values. Given the ` .proto ` file:


Hi,


You do not have permission to delete messages in this group


For submessages, unset fields will return ` nil ` , so you can always tell if
the message was explicitly set or not. To clear a submessage field, set its
value explicitly to ` nil ` .


Forward


Help


* Open Source


Email Address


Can someone help me in this regard ?? Looking forward to responses !


Sign in to reply to author


###  Petteri Aimonen


Report message


    * [ Learning Pathways  ](https://resources.github.com/learn/pathways/)
    * [ White papers, Ebooks, Webinars  ](https://resources.github.com/)
    * [ Customer Stories ](/customer-stories)
    * [ Partners  ](https://partner.github.com/)


xaxis : {20,50,40,60,12,14,25,19, ....}


![Petteri Aimonen's profile
photo](https://lh3.googleusercontent.com/a/default-user=s40-c)


    message Foo {
      enum SomeEnum {
        VALUE_A = 0;
        VALUE_B = 5;
        VALUE_C = 1234;
      }
      optional SomeEnum bar = 1;
    }


These categories of type-specific convenience methods add a new field:


  * [ Code  ](/nanopb/nanopb)
  * [ Issues  ](/nanopb/nanopb/issues)
  * [ Pull requests  ](/nanopb/nanopb/pulls)
  * [ Actions  ](/nanopb/nanopb/actions)
  * [ Projects  ](/nanopb/nanopb/projects)
  * [ Security  ](/nanopb/nanopb/security)
  * [ Insights  ](/nanopb/nanopb/pulse)


Delete


[ About  ](./g/nanopb/about)


##  Footer


Show original message


No milestone


All reactions


[ rviz black screen, mesa upgrade not possible  #1081
](/ros2/rviz/issues/1081)


Copy link


[ ![image](https://user-
images.githubusercontent.com/61921425/215913309-ad4b39f4-7664-49d3-867e-4c7e1f786756.png)
](https://user-
images.githubusercontent.com/61921425/215913309-ad4b39f4-7664-49d3-867e-4c7e1f786756.png)

---

The text was updated successfully, but these errors were encountered:


The images I pulled:


Closed


I'm having some trouble downgrading with that command, after running those and
opening rviz I'm still on 11.2.5. Here are the results of 'apt list --
installed | grep rviz'


**[ clalancette ](/clalancette) ** commented  Feb 1, 2023


Then to 11.2.2:


[ Sign up for free ](/join?source=comment-repo) **to join this conversation on
GitHub** . Already have an account? [ Sign in to comment
](/login?return_to=https%3A%2F%2Fgithub.com%2Fros2%2Frviz%2Fissues%2F948)


](/rosbridge_library?distro=lunar) | [ rosbridge_server
](/rosbridge_server?distro=lunar) _
**Package Links**
  * [ Tutorials ](/rosbridge_suite/Tutorials)
  * [ FAQ ](http://answers.ros.org/questions/scope:all/sort:activity-desc/tags:rosbridge_suite/page:1/)
  * [ Changelog ](http://docs.ros.org/en/lunar/changelogs/rosbridge_suite/changelog.html)
  * [ Change List ](/rosbridge_suite/ChangeList)
  * [ Reviews ](/rosbridge_suite/Reviews)
** Dependencies  (4) **
  * [ catkin ](/catkin?distro=lunar)
  * [ rosapi ](/rosapi?distro=lunar)
  * [ rosbridge_library ](/rosbridge_library?distro=lunar)
  * [ rosbridge_server ](/rosbridge_server?distro=lunar)
#  Package Summary
Released
Continuous Integration
Documented
Rosbridge provides a JSON API to ROS functionality for non-ROS programs. There
are a variety of front ends that interface with rosbridge, including a
WebSocket server for web browsers to interact with. Rosbridge_suite is a meta-
package containing rosbridge, various front end packages for rosbridge like a
WebSocket package, and helper packages.
  * Maintainer status: maintained
  * Maintainer: Russell Toris <rctoris AT wpi DOT edu>, Jihoon Lee <jihoonlee.in AT gmail DOT com>
  * Author: Jonathan Mace <jonathan.c.mace AT gmail DOT com>
  * License: BSD
  * Bug / feature tracker: [ https://github.com/RobotWebTools/rosbridge_suite/issues ](https://github.com/RobotWebTools/rosbridge_suite/issues)
  * Source: git [ https://github.com/RobotWebTools/rosbridge_suite.git ](https://github.com/RobotWebTools/rosbridge_suite) (branch: master)
_**rosbridge_suite** : [ rosapi ](/rosapi?distro=melodic) | [
rosbridge_library ](/rosbridge_library?distro=melodic) | [ rosbridge_server
](/rosbridge_server?distro=melodic) _
**Package Links**
  * [ Tutorials ](/rosbridge_suite/Tutorials)
  * [ FAQ ](http://answers.ros.org/questions/scope:all/sort:activity-desc/tags:rosbridge_suite/page:1/)
  * [ Changelog ](http://docs.ros.org/en/melodic/changelogs/rosbridge_suite/changelog.html)
  * [ Change List ](/rosbridge_suite/ChangeList)
  * [ Reviews ](/rosbridge_suite/Reviews)
** Dependencies  (4) **
  * [ catkin ](/catkin?distro=melodic)
  * [ rosapi ](/rosapi?distro=melodic)


  * [ Terms ](https://docs.github.com/site-policy/github-terms/github-terms-of-service)
  * [ Privacy ](https://docs.github.com/site-policy/privacy-policies/github-privacy-statement)
  * [ Security ](/security)
  * [ Status ](https://www.githubstatus.com/)
  * [ Docs ](https://docs.github.com/)
  * [ Contact ](https://support.github.com?tags=dotcom-footer)
  * Manage cookies
  * Do not share my personal information


  * [ Reviews ](/rosbridge_suite/Reviews)
** Dependencies  (4) **
  * [ catkin ](/catkin?distro=indigo)
  * [ rosapi ](/rosapi?distro=indigo)
  * [ rosbridge_library ](/rosbridge_library?distro=indigo)
  * [ rosbridge_server ](/rosbridge_server?distro=indigo)
#  Package Summary
Released
Continuous Integration
Documented
Rosbridge provides a JSON API to ROS functionality for non-ROS programs. There
are a variety of front ends that interface with rosbridge, including a
WebSocket server for web browsers to interact with. Rosbridge_suite is a meta-
package containing rosbridge, various front end packages for rosbridge like a
WebSocket package, and helper packages.
  * Maintainer status: maintained
  * Maintainer: Russell Toris <rctoris AT wpi DOT edu>, Jihoon Lee <jihoonlee.in AT gmail DOT com>
  * Author: Jonathan Mace <jonathan.c.mace AT gmail DOT com>
  * License: BSD
  * Bug / feature tracker: [ https://github.com/RobotWebTools/rosbridge_suite/issues ](https://github.com/RobotWebTools/rosbridge_suite/issues)
  * Source: git [ https://github.com/RobotWebTools/rosbridge_suite.git ](https://github.com/RobotWebTools/rosbridge_suite) (branch: indigo)
_**rosbridge_suite** : [ rosapi ](/rosapi?distro=jade) | [ rosbridge_library
](/rosbridge_library?distro=jade) | [ rosbridge_server
](/rosbridge_server?distro=jade) _
**Package Links**
  * [ Tutorials ](/rosbridge_suite/Tutorials)
  * [ FAQ ](http://answers.ros.org/questions/scope:all/sort:activity-desc/tags:rosbridge_suite/page:1/)
  * [ Changelog ](http://docs.ros.org/en/jade/changelogs/rosbridge_suite/changelog.html)
  * [ Change List ](/rosbridge_suite/ChangeList)
  * [ Reviews ](/rosbridge_suite/Reviews)
** Dependencies  (4) **
  * [ catkin ](/catkin?distro=jade)
  * [ rosapi ](/rosapi?distro=jade)
  * [ rosbridge_library ](/rosbridge_library?distro=jade)
  * [ rosbridge_server ](/rosbridge_server?distro=jade)
#  Package Summary
Released
Continuous Integration
Documented
Rosbridge provides a JSON API to ROS functionality for non-ROS programs. There


Ubuntu 22.04, running in an LXC container.

---

All reactions


Labels


* Open Source


[
![@VRichardJP](https://avatars.githubusercontent.com/u/18645627?s=80&u=18e9a7e8c90b864fe3a73b283a4081a37cfdbf9a&v=4)
](/VRichardJP)


Sign up for GitHub


> Which version of Ubuntu are you on?


If you downgrade _just_ rviz_rendering by doing:


Copy link


* Solutions


I couldn’t find a way to install ` grid-map-rviz-plugin ` on ros foxy. ` local
grid map ` is unchecked.


are a variety of front ends that interface with rosbridge, including a
WebSocket server for web browsers to interact with. Rosbridge_suite is a meta-
package containing rosbridge, various front end packages for rosbridge like a
WebSocket package, and helper packages.
  * Maintainer status: maintained
  * Maintainer: Russell Toris <rctoris AT wpi DOT edu>, Jihoon Lee <jihoonlee.in AT gmail DOT com>
  * Author: Jonathan Mace <jonathan.c.mace AT gmail DOT com>
  * License: BSD
  * Bug / feature tracker: [ https://github.com/RobotWebTools/rosbridge_suite/issues ](https://github.com/RobotWebTools/rosbridge_suite/issues)
  * Source: git [ https://github.com/RobotWebTools/rosbridge_suite.git ](https://github.com/RobotWebTools/rosbridge_suite) (branch: master)
_**rosbridge_suite** : [ rosapi ](/rosapi?distro=kinetic) | [
rosbridge_library ](/rosbridge_library?distro=kinetic) | [ rosbridge_server
](/rosbridge_server?distro=kinetic) _
**Package Links**
  * [ Tutorials ](/rosbridge_suite/Tutorials)
  * [ FAQ ](http://answers.ros.org/questions/scope:all/sort:activity-desc/tags:rosbridge_suite/page:1/)
  * [ Changelog ](http://docs.ros.org/en/kinetic/changelogs/rosbridge_suite/changelog.html)
  * [ Change List ](/rosbridge_suite/ChangeList)
  * [ Reviews ](/rosbridge_suite/Reviews)
** Dependencies  (4) **
  * [ catkin ](/catkin?distro=kinetic)
  * [ rosapi ](/rosapi?distro=kinetic)
  * [ rosbridge_library ](/rosbridge_library?distro=kinetic)
  * [ rosbridge_server ](/rosbridge_server?distro=kinetic)
#  Package Summary
Released
Continuous Integration
Documented
Rosbridge provides a JSON API to ROS functionality for non-ROS programs. There
are a variety of front ends that interface with rosbridge, including a
WebSocket server for web browsers to interact with. Rosbridge_suite is a meta-
package containing rosbridge, various front end packages for rosbridge like a
WebSocket package, and helper packages.
  * Maintainer status: maintained
  * Maintainer: Russell Toris <rctoris AT wpi DOT edu>, Jihoon Lee <jihoonlee.in AT gmail DOT com>
  * Author: Jonathan Mace <jonathan.c.mace AT gmail DOT com>
  * License: BSD
  * Bug / feature tracker: [ https://github.com/RobotWebTools/rosbridge_suite/issues ](https://github.com/RobotWebTools/rosbridge_suite/issues)
  * Source: git [ https://github.com/RobotWebTools/rosbridge_suite.git ](https://github.com/RobotWebTools/rosbridge_suite) (branch: master)
_**rosbridge_suite** : [ rosapi ](/rosapi?distro=lunar) | [ rosbridge_library


[ Sign in
](/login?return_to=https%3A%2F%2Fgithub.com%2Fros2%2Frviz%2Fissues%2F948)


[ ![@Cheny5863](https://avatars.githubusercontent.com/u/40204259?s=80&v=4)
](/Cheny5863)


##  Use saved searches to filter your results more quickly


Open


#  [ Ros2 rviz2 example not working on Jetson AGX Orin Dev Kit with ZED 2i
](/t/ros2-rviz2-example-not-working-on-jetson-agx-orin-dev-kit-with-
zed-2i/2730)


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


Author


[ neutronztar ](/neutronztar) opened this issue  Feb 1, 2023  · 26 comments


[ ![@hidmic](https://avatars.githubusercontent.com/u/13500507?s=40&v=4)
](/hidmic) [ hidmic ](/hidmic) mentioned this issue  Feb 28, 2023


13 participants


I initially had rviz2 11.2.5 installed:


Labels


#  Provide feedback


Hi, were you using the core image for Humble?

---

All reactions


Although this is a recent regression not sure if it affects the original
report but affects ROS2 Humble release for sure atm.


New issue


Simple test with rocker:


Copy link


The solution found by [ @Stefan-working ](https://github.com/Stefan-working)
worked for me too (Thanks Stefan):


    [INFO] [1646095263.850194051] [rviz2]:  * Fragment programs: yes
    [INFO] [1646095263.850220004] [rviz2]:  * Number of floating-point constants for fragment programs: 2048
    [INFO] [1646095263.850247988] [rviz2]:  * Number of integer constants for fragment programs: 0
    [INFO] [1646095263.850272869] [rviz2]:  * Number of boolean constants for fragment programs: 0
    [INFO] [1646095263.850299317] [rviz2]:  * Geometry programs: no
    [INFO] [1646095263.850326365] [rviz2]:  * Number of floating-point constants for geometry programs: 65535
    [INFO] [1646095263.850356113] [rviz2]:  * Number of integer constants for geometry programs: 24528
    [INFO] [1646095263.850380855] [rviz2]:  * Number of boolean constants for geometry programs: 30725
    [INFO] [1646095263.850407896] [rviz2]:  * Tessellation Hull programs: no
    [INFO] [1646095263.850434207] [rviz2]:  * Number of floating-point constants for tessellation hull programs: 0
    [INFO] [1646095263.850458983] [rviz2]:  * Number of integer constants for tessellation hull programs: 0
    [INFO] [1646095263.850482818] [rviz2]:  * Number of boolean constants for tessellation hull programs: 0
    [INFO] [1646095263.850508772] [rviz2]:  * Tessellation Domain programs: no
    [INFO] [1646095263.850535259] [rviz2]:  * Number of floating-point constants for tessellation domain programs: 0
    [INFO] [1646095263.850561195] [rviz2]:  * Number of integer constants for tessellation domain programs: 64
    [INFO] [1646095263.850585864] [rviz2]:  * Number of boolean constants for tessellation domain programs: 0
    [INFO] [1646095263.850611130] [rviz2]:  * Compute programs: no
    [INFO] [1646095263.850635446] [rviz2]:  * Number of floating-point constants for compute programs: 22010
    [INFO] [1646095263.850660891] [rviz2]:  * Number of integer constants for compute programs: 0
    [INFO] [1646095263.850686101] [rviz2]:  * Number of boolean constants for compute programs: 288
    [INFO] [1646095263.850714963] [rviz2]:  * Supported Shader Profiles: arbfp1 arbvp1 glsl glsl100 glsl110 glsl120 ps_1_1 ps_1_2 ps_1_3 ps_1_4
    [INFO] [1646095263.850740016] [rviz2]:  * Texture Compression: yes
    [INFO] [1646095263.850762983] [rviz2]:    - DXT: yes
    [INFO] [1646095263.850786786] [rviz2]:    - VTC: no
    [INFO] [1646095263.850809391] [rviz2]:    - PVRTC: no
    [INFO] [1646095263.850833656] [rviz2]:    - ATC: no
    [INFO] [1646095263.850861582] [rviz2]:    - ETC1: no
    [INFO] [1646095263.850885724] [rviz2]:    - ETC2: no
    [INFO] [1646095263.850911444] [rviz2]:    - BC4/BC5: no
    [INFO] [1646095263.850935808] [rviz2]:    - BC6H/BC7: no
    [INFO] [1646095263.850945280] [rviz2]:    - ASTC: no
    [INFO] [1646095263.850972649] [rviz2]:    - Mipmaps for compressed formats: yes
    [INFO] [1646095263.850997869] [rviz2]:  * Hardware Occlusion Query: yes
    [INFO] [1646095263.851023392] [rviz2]:  * User clip planes: yes
    [INFO] [1646095263.851047836] [rviz2]:  * VET_UBYTE4 vertex element type: yes
    [INFO] [1646095263.851056810] [rviz2]:  * Infinite far plane projection: yes
    [INFO] [1646095263.851080226] [rviz2]:  * Hardware render-to-texture: yes
    [INFO] [1646095263.851106803] [rviz2]:  * Floating point textures: yes
    [INFO] [1646095263.851139968] [rviz2]:  * Non-power-of-two textures: yes
    [INFO] [1646095263.851150710] [rviz2]:  * 1d textures: yes


Already on GitHub? [ Sign in
](/login?return_to=%2Fros2%2Frviz%2Fissues%2Fnew%2Fchoose) to your account


Repositories


  * [ Notifications ](/login?return_to=%2Fros2%2Frviz)
  * [ Fork  196  ](/login?return_to=%2Fros2%2Frviz)
  * [ Star  249  ](/login?return_to=%2Fros2%2Frviz)


    * [ Enterprise ](/enterprise)
    * [ Teams ](/team)
    * [ Startups ](/enterprise/startups)
    * [ Education  ](https://education.github.com)


**[ SheaFixstars ](/SheaFixstars) ** commented  Apr 14, 2023


    [INFO] [1646095263.142270252] [rviz2]: FBO PF_A1R5G5B5 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.176452425] [rviz2]: FBO PF_R8G8B8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.210460693] [rviz2]: FBO PF_B8G8R8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.244774272] [rviz2]: FBO PF_A8R8G8B8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.277697749] [rviz2]: FBO PF_A8B8G8R8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.311494998] [rviz2]: FBO PF_B8G8R8A8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.345060607] [rviz2]: FBO PF_FLOAT16_RGB depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.379004429] [rviz2]: FBO PF_FLOAT16_RGBA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.413250662] [rviz2]: FBO PF_FLOAT32_RGB depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.445855357] [rviz2]: FBO PF_FLOAT32_RGBA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.479348055] [rviz2]: FBO PF_X8R8G8B8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.513234865] [rviz2]: FBO PF_X8B8G8R8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.547254319] [rviz2]: FBO PF_R8G8B8A8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.580926894] [rviz2]: FBO PF_DEPTH16 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.614804458] [rviz2]: FBO PF_SHORT_RGBA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.648419365] [rviz2]: FBO PF_R3G3B2 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.682240806] [rviz2]: FBO PF_FLOAT16_R depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.716327854] [rviz2]: FBO PF_FLOAT32_R depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.749493324] [rviz2]: FBO PF_SHORT_GR depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.782402101] [rviz2]: FBO PF_FLOAT16_GR depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.816507862] [rviz2]: FBO PF_FLOAT32_GR depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.849210508] [rviz2]: FBO PF_SHORT_RGB depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.849669783] [rviz2]: [GL] : Valid FBO targets PF_UNKNOWN PF_L8 PF_L16 PF_A8 PF_BYTE_LA PF_R5G6B5 PF_A4R4G4B4 PF_A1R5G5B5 PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_A8B8G8R8 PF_B8G8R8A8 PF_FLOAT16_RGB PF_FLOAT16_RGBA PF_FLOAT32_RGB PF_FLOAT32_RGBA PF_X8R8G8B8 PF_X8B8G8R8 PF_R8G8B8A8 PF_DEPTH16 PF_SHORT_RGBA PF_R3G3B2 PF_FLOAT16_R PF_FLOAT32_R PF_SHORT_GR PF_FLOAT16_GR PF_FLOAT32_GR PF_SHORT_RGB
    [INFO] [1646095263.849745495] [rviz2]: RenderSystem capabilities
    [INFO] [1646095263.849783536] [rviz2]: -------------------------
    [INFO] [1646095263.849814897] [rviz2]: RenderSystem Name: OpenGL Rendering Subsystem
    [INFO] [1646095263.849848216] [rviz2]: GPU Vendor: unknown
    [INFO] [1646095263.849874904] [rviz2]: Device Name: D3D12 (Intel(R) Iris(R) Xe Graphics)
    [INFO] [1646095263.849905292] [rviz2]: Driver Version: 3.1.0.0
    [INFO] [1646095263.849936376] [rviz2]:  * Fixed function pipeline: yes
    [INFO] [1646095263.849973673] [rviz2]:  * Anisotropic texture filtering: yes
    [INFO] [1646095263.849998243] [rviz2]:  * Hardware stencil buffer: yes
    [INFO] [1646095263.850027090] [rviz2]:    - Stencil depth: 8
    [INFO] [1646095263.850054129] [rviz2]:    - Two sided stencil support: yes
    [INFO] [1646095263.850061603] [rviz2]:    - Wrap stencil values: yes
    [INFO] [1646095263.850089780] [rviz2]:  * 32-bit index buffers: yes
    [INFO] [1646095263.850099061] [rviz2]:  * Vertex programs: yes
    [INFO] [1646095263.850125999] [rviz2]:  * Number of floating-point constants for vertex programs: 2048
    [INFO] [1646095263.850155888] [rviz2]:  * Number of integer constants for vertex programs: 0
    [INFO] [1646095263.850186721] [rviz2]:  * Number of boolean constants for vertex programs: 0


I also encountered this problem. everything that render 3D display black
screen, include rviz gazebo and moveit_setup assisant.
This happens when I use docker image provided by moveit and new ubuntu22.04
image manually installed ros and moveit.

---

All reactions


**[ faev999 ](/faev999) ** commented  Feb 8, 2023


Cancel  Create saved search


-> the 3D view is all black


I also had this problem with windows 10 enterprise, docker-desktop and Ubuntu
22.04 LTS. I was able to fix this issue by upgrading the mesa package with the
binaries provided by the kisak/kisak-mesa ppa:


[ Documentation Status ](javascript:toggleDocStatus\(\))
  * **fuerte:** _Documentation generated on January 02, 2014 at 11:52 AM_

  * **groovy:** _Documentation generated on October 06, 2014 at 06:58 AM_

  * **hydro:** _Documentation generated on August 27, 2015 at 02:50 PM_ ( [ doc job ](http://jenkins.ros.org/job/doc-hydro-rosbridge_suite/) ).

  * **indigo:** _Documentation generated on June 07, 2019 at 05:45 AM_ ( [ doc job ](http://build.ros.org/view/Idoc/job/Idoc__rosbridge_suite__ubuntu_trusty_amd64) ).

  * **jade:** _Documentation generated on September 13, 2017 at 11:00 AM_ ( [ doc job ](http://build.ros.org/view/Jdoc/job/Jdoc__rosbridge_suite__ubuntu_trusty_amd64) ).

  * **kinetic:** _Documentation generated on June 03, 2020 at 03:52 AM_ ( [ doc job ](http://build.ros.org/view/Kdoc/job/Kdoc__rosbridge_suite__ubuntu_xenial_amd64) ).

  * **lunar:** _Documentation generated on May 10, 2019 at 10:14 AM_ ( [ doc job ](http://build.ros.org/view/Ldoc/job/Ldoc__rosbridge_suite__ubuntu_xenial_amd64) ).

  * **melodic:** _Documentation generated on October 21, 2022 at 10:41 AM_ ( [ doc job ](https://build.ros.org/view/Mdoc/job/Mdoc__rosbridge_suite__ubuntu_bionic_amd64) ).

  * **noetic:** _Documentation generated on October 03, 2023 at 10:09 AM_ ( [ doc job ](https://build.ros.org/view/Ndoc/job/Ndoc__rosbridge_suite__ubuntu_focal_amd64) ).

_**rosbridge_suite** : [ rosapi ](/rosapi?distro=fuerte) | [ rosbridge_launch
](/rosbridge_launch?distro=fuerte) | [ rosbridge_library
](/rosbridge_library?distro=fuerte) | [ rosbridge_server
](/rosbridge_server?distro=fuerte) | [ rosbridge_test
](/rosbridge_test?distro=fuerte) | [ roswww ](/roswww?distro=fuerte) | [
tf_smart_throttle ](/tf_smart_throttle?distro=fuerte) _
**Package Links**
  * [ rosbridge_suite website ](http://www.rosbridge.org)
  * [ Tutorials ](/rosbridge_suite/Tutorials)
  * [ FAQ ](http://answers.ros.org/questions/scope:all/sort:activity-desc/tags:rosbridge_suite/page:1/)
  * [ Change List ](/rosbridge_suite/ChangeList)
  * [ Reviews ](/rosbridge_suite/Reviews)
** Dependencies  (4) **
  * [ geometry ](/geometry?distro=fuerte)
  * [ ros ](/ros?distro=fuerte)
  * [ ros_comm ](/ros_comm?distro=fuerte)
  * [ std_msgs ](/std_msgs?distro=fuerte)
** Used by  (1) **
  * [ bosch_web_visualizat... ](/bosch_web_visualization?distro=fuerte)
#  Package Summary
Documented


    root@9d465a06b92b:/# glxgears
    X Error of failed request:  BadShmSeg (invalid shared segment parameter)
      Major opcode of failed request:  130 (MIT-SHM)
      Minor opcode of failed request:  3 (X_ShmPutImage)
      Segment id in failed request:  0x3400005
      Serial number of failed request:  43
      Current serial number in output stream:  44

---

👍  2  JensVanhooydonck and acarrillo reacted with thumbs up emoji


[
![@tinducvo](https://avatars.githubusercontent.com/u/6686958?s=80&u=a9086f74e354a8ccd07551a2ce9172322f9aad49&v=4)
](/tinducvo)


Skip to content


Sorry, something went wrong.


[ change history ](/layerindex/history/) • [ about this site
](/layerindex/about/) • [ FAQ ](http://www.openembedded.org/Layers_FAQ)


    [zed_wrapper-3] 1685969951.245337512 [zed2.zed_node] [INFO] ***** STARTING CAMERA *****
    [zed_wrapper-3] 1685969951.245352808 [zed2.zed_node] [INFO] ZED SDK Version: 4.0.3 - Build 72471_a14c21bc
    [zed_wrapper-3] 1685969951.248521215 [zed2.zed_node] [INFO] *** CAMERA OPENING ***
    [rviz2-1] 1685969952.056706918 [rviz2] [INFO] Stereo is NOT SUPPORTED
    [rviz2-1] 1685969952.057105481 [rviz2] [INFO] OpenGl version: 4.6 (GLSL 4.6)
    [rviz2-1] 1685969952.110045326 [rviz2] [INFO] Stereo is NOT SUPPORTED
    [rviz2-1] 1685969952.196258118 [rviz2] [ERROR] PluginlibFactory: The plugin for class 'grid_map_rviz_plugin/GridMap' failed to load. Error: According to the loaded plugin descriptions the class grid_map_rviz_plugin/GridMap with base class type rviz_common::Display does not exist. Declared types are  rviz_default_plugins/Axes rviz_default_plugins/Camera rviz_default_plugins/FluidPressure rviz_default_plugins/Grid rviz_default_plugins/GridCells rviz_default_plugins/Illuminance rviz_default_plugins/Image rviz_default_plugins/InteractiveMarkers rviz_default_plugins/LaserScan rviz_default_plugins/Map rviz_default_plugins/Marker rviz_default_plugins/MarkerArray rviz_default_plugins/Odometry rviz_default_plugins/Path rviz_default_plugins/PointCloud rviz_default_plugins/PointCloud2 rviz_default_plugins/PointStamped rviz_default_plugins/Polygon rviz_default_plugins/Pose rviz_default_plugins/PoseArray rviz_default_plugins/PoseWithCovariance rviz_default_plugins/Range rviz_default_plugins/RelativeHumidity rviz_default_plugins/RobotModel rviz_default_plugins/TF rviz_default_plugins/Temperature rviz_default_plugins/Wrench rviz_plugin_zed_od/ZedOdDisplay
    [rviz2-1] Warning: Invalid frame ID "map" passed to canTransform argument target_frame - frame does not exist


**Have a question about this project?** Sign up for a free GitHub account to
open an issue and contact its maintainers and the community.


    $ docker run --rm --network=host -e DISPLAY -e XAUTHORITY=/tmp/.Xauthority -v ~/.Xauthority:/tmp/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix ubuntu:22.04 /bin/bash -c "apt update && apt install -y mesa-utils && glxgears"
    ...
    Setting up libgl1:amd64 (1.4.0-1) ...
    Setting up mesa-utils-bin:amd64 (8.4.0-1ubuntu1) ...
    Setting up mesa-utils (8.4.0-1ubuntu1) ...
    Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
    X Error of failed request:  BadShmSeg (invalid shared segment parameter)
      Major opcode of failed request:  130 (MIT-SHM)
      Minor opcode of failed request:  3 (X_ShmPutImage)
      Segment id in failed request:  0x4600005
      Serial number of failed request:  43
      Current serial number in output stream:  44


**[ gatboccia ](/gatboccia) ** commented  Apr 8, 2022


To see all available qualifiers, see our [ documentation
](https://docs.github.com/search-github/github-code-search/understanding-
github-code-search-syntax) .


When I open Rviz2 with the command 'Rviz2' I get a black screen where the grid
and models usually are. This was working on 11.2.4.


    [INFO] [1646095262.753550843] [rviz2]:  *        SSE41: yes
    [INFO] [1646095262.753559227] [rviz2]:  *        SSE42: yes
    [INFO] [1646095262.753582848] [rviz2]:  *          MMX: yes
    [INFO] [1646095262.753616623] [rviz2]:  *       MMXEXT: yes
    [INFO] [1646095262.753643424] [rviz2]:  *        3DNOW: no
    [INFO] [1646095262.753672491] [rviz2]:  *     3DNOWEXT: no
    [INFO] [1646095262.753680895] [rviz2]:  *         CMOV: yes
    [INFO] [1646095262.753708048] [rviz2]:  *          TSC: yes
    [INFO] [1646095262.753744808] [rviz2]:  *INVARIANT TSC: yes
    [INFO] [1646095262.753773320] [rviz2]:  *          FPU: yes
    [INFO] [1646095262.753801518] [rviz2]:  *          PRO: yes
    [INFO] [1646095262.753810353] [rviz2]:  *           HT: no
    [INFO] [1646095262.753835333] [rviz2]: -------------------------
    [INFO] [1646095262.753865547] [rviz2]: ******************************
    *** Starting GLX Subsystem ***
    ******************************
    [INFO] [1646095262.753991298] [rviz2]: GLX_VERSION = 1.4
    [INFO] [1646095262.754044805] [rviz2]: GLX_EXTENSIONS = GLX_ARB_context_flush_control GLX_ARB_create_context GLX_ARB_create_context_no_error GLX_ARB_create_context_profile GLX_ARB_create_context_robustness GLX_ARB_fbconfig_float GLX_ARB_framebuffer_sRGB GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_buffer_age GLX_EXT_create_context_es2_profile GLX_EXT_create_context_es_profile GLX_EXT_fbconfig_packed_float GLX_EXT_framebuffer_sRGB GLX_EXT_import_context GLX_EXT_no_config_context GLX_EXT_swap_control GLX_EXT_swap_control_tear GLX_EXT_texture_from_pixmap GLX_EXT_visual_info GLX_EXT_visual_rating GLX_ATI_pixel_format_float GLX_INTEL_swap_event GLX_MESA_copy_sub_buffer GLX_MESA_multithread_makecurrent GLX_MESA_query_renderer GLX_MESA_swap_control GLX_NV_float_buffer GLX_OML_swap_method GLX_OML_sync_control GLX_SGIS_multisample GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGIX_visual_select_group GLX_SGI_make_current_read GLX_SGI_swap_control GLX_SGI_video_sync
    [INFO] [1646095262.754404766] [rviz2]: Registering ResourceManager for type Texture
    [INFO] [1646095262.754598516] [rviz2]: GLRenderSystem::_createRenderWindow "OgreWindow(0)", 1x1 windowed  miscParams: FSAA=4 border=none contentScalingFactor=1.000000 currentGLContext=false externalWindowHandle=10485761 left=0 parentWindowHandle=10485761 top=0
    [INFO] [1646095262.755714218] [rviz2]: Actual frame buffer FSAA: 4, gamma: 0, colourBufferSize: 32
    [INFO] [1646095262.768384086] [rviz2]: Created GL 3.0 context
    [INFO] [1646095262.850041372] [rviz2]: GLXWindow::create used FBConfigID = 205
    [INFO] [1646095262.854094652] [rviz2]: GL_VERSION = 3.1.0.0
    [INFO] [1646095262.854157625] [rviz2]: GL_VENDOR = Microsoft Corporation
    [INFO] [1646095262.854199200] [rviz2]: GL_RENDERER = D3D12 (Intel(R) Iris(R) Xe Graphics)
    [INFO] [1646095262.854375001] [rviz2]: GL_EXTENSIONS = GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_S3_s3tc GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_compression_s3tc GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_ATI_fragment_shader GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_copy_depth_to_color GL_NV_depth_clamp GL_NV_fog_distance GL_NV_half_float GL_APPLE_packed_pixels GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_NV_primitive_restart GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_float GL_ARB_texture_rectangle GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_texture_array GL_EXT_texture_integer GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_OES_EGL_image GL_EXT_texture_buffer_object GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_texture_buffer_object GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_shader_stencil_export GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_compatibility GL_ARB_debug_output GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_shader_stencil_export GL_ARB_shader_texture_lod GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_multisample GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_uniform_buffer_object GL_ARB_vertex_type_2_10_10_10_rev GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_NV_copy_image GL_ARB_get_program_binary GL_ARB_robustness GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_subroutine GL_ARB_timer_query GL_EXT_direct_state_access GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_depth GL_ARB_internalformat_query GL_ARB_map_buffer_alignment GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_texture_storage GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_transform_feedback GL_AMD_shader_trinary_minmax GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_clear_buffer_object GL_ARB_explicit_uniform_location GL_ARB_invalidate_subdata GL_ARB_program_interface_query GL_ARB_stencil_texturing GL_ARB_texture_buffer_range GL_ARB_texture_query_levels GL_ARB_texture_storage_multisample GL_ARB_vertex_attrib_binding GL_KHR_debug GL_KHR_texture_compression_astc_ldr GL_ARB_internalformat_query2 GL_ARB_multi_bind GL_ARB_shading_language_include GL_ARB_texture_stencil8 GL_ARB_vertex_type_10f_11f_11f_rev GL_EXT_shader_integer_mix GL_ARB_direct_state_access GL_ARB_get_texture_sub_image GL_KHR_context_flush_control GL_ARB_parallel_shader_compile GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_MESA_shader_integer_functions GL_ARB_texture_filter_anisotropic GL_KHR_parallel_shader_compile GL_EXT_EGL_image_storage GL_EXT_EGL_sync
    [INFO] [1646095262.854605489] [rviz2]: ***************************
    [INFO] [1646095262.854653227] [rviz2]: *** GL Renderer Started ***
    [INFO] [1646095262.854663120] [rviz2]: ***************************
    [INFO] [1646095262.864822805] [rviz2]: Registering ResourceManager for type GpuProgram
    [INFO] [1646095262.865211590] [rviz2]: GLSL support detected
    [INFO] [1646095262.865256837] [rviz2]: GL: Using GL_EXT_framebuffer_object for rendering to textures (best)
    [INFO] [1646095262.905104330] [rviz2]: FBO PF_UNKNOWN depth/stencil support: D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095262.938856948] [rviz2]: FBO PF_L8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095262.971600504] [rviz2]: FBO PF_L16 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.005926506] [rviz2]: FBO PF_A8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.039985590] [rviz2]: FBO PF_BYTE_LA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.073788499] [rviz2]: FBO PF_R5G6B5 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
    [INFO] [1646095263.108268312] [rviz2]: FBO PF_A4R4G4B4 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8


I also have this error, but only on 1/2 machines with identical rviz2 versions


[ ![@ChaimLukasMaier-
FDTech](https://avatars.githubusercontent.com/u/118989584?s=40&v=4)
](/ChaimLukasMaier-FDTech) [ ChaimLukasMaier-FDTech ](/ChaimLukasMaier-FDTech)
mentioned this issue  Feb 28, 2023


**[ trishmapow ](/trishmapow) ** commented  Apr 11, 2022


> add-apt-repository ppa:kisak/kisak-mesa
>  apt update
>  apt upgrade

---

👍  19  VRichardJP, haider8645, h-rover, Grisly00, turtlewizard73, Carrot404,
H-tr, 2b-t, niiiiiiiiishiiiiiiiii, rubenanapu, and 9 more reacted with thumbs
up emoji  🚀  7  Cheny5863, Robotgir, Carrot404, rubenanapu, acarrillo,
zkytony, and 2b-t reacted with rocket emoji


[
![@VRichardJP](https://avatars.githubusercontent.com/u/18645627?s=80&u=18e9a7e8c90b864fe3a73b283a4081a37cfdbf9a&v=4)
](/VRichardJP)


-> the default grid is visible


* Running ` glxgears ` fails with ` ubuntu:22.04 ` :


    * [ Learning Pathways  ](https://resources.github.com/learn/pathways/)
    * [ White papers, Ebooks, Webinars  ](https://resources.github.com/)
    * [ Customer Stories ](/customer-stories)
    * [ Partners  ](https://partner.github.com/)


[ Sign in
](/login?return_to=https%3A%2F%2Fgithub.com%2Fros2%2Frviz%2Fissues%2F834)


1 Like


* on foxy:


    $ sudo apt list --installed | grep rviz

    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

    ros-humble-rviz-assimp-vendor/now 11.2.4-1jammy.20221108.145620 amd64 [installed,upgradable to: 11.2.5-1jammy.20230112.141217]
    ros-humble-rviz-common/now 11.2.4-1jammy.20221207.043657 amd64 [installed,upgradable to: 11.2.5-1jammy.20230120.222053]
    ros-humble-rviz-default-plugins/now 11.2.4-1jammy.20221207.063337 amd64 [installed,upgradable to: 11.2.5-1jammy.20230124.071257]
    ros-humble-rviz-ogre-vendor/now 11.2.4-1jammy.20221108.145633 amd64 [installed,upgradable to: 11.2.5-1jammy.20230112.141237]
    ros-humble-rviz-rendering/now 11.2.4-1jammy.20221108.154346 amd64 [installed,upgradable to: 11.2.5-1jammy.20230112.145716]
    ros-humble-rviz2/now 11.2.4-1jammy.20221207.075810 amd64 [installed,upgradable to: 11.2.5-1jammy.20230124.081000]


Sorry, something went wrong.


For


Explore


[ ![Screenshot from 2023-06-06
21-24-50](https://community.stereolabs.com/uploads/default/optimized/2X/0/0983015f05dbca127c21bce1104ecf4f5666858e_2_690x353.jpeg)
Screenshot from 2023-06-06 21-24-50  1793×918 97.2 KB
](https://community.stereolabs.com/uploads/default/original/2X/0/0983015f05dbca127c21bce1104ecf4f5666858e.jpeg
"Screenshot from 2023-06-06 21-24-50")


Cancel  Submit feedback


When I try to run the rviz example on new ZED 2i camera using following cli


Hm, I can't reproduce this here; it seems to work fine for me in a container
(though on Ubuntu, not WSL).


Copy link


[ When OpenGL ogre2 rendering is happening via mesa's llvmpipe 21 or 22 with
Ignition Fortress a black area is displayed instead of the 3D rendering
gazebosim/gz-sim#1116  ](/gazebosim/gz-sim/issues/1116)


Thanks! That fixes it for me

---

All reactions


All reactions


#  Empty grey area instead of 3D grid with rviz2 on WSL & Docker  #834


hi,


docker run --rm --network=host -e DISPLAY -e XAUTHORITY=/tmp/.Xauthority -v ~/.Xauthority:/tmp/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix osrf/ros:humble-desktop /bin/bash -c "apt update && apt install -y software-properties-common && add-apt-repository ppa:kisak/kisak-mesa && apt install libegl-mesa0 libegl1-mesa-dev libgbm-dev libgbm1 libgl1-mesa-dev libgl1-mesa-dri libglapi-mesa libglx-mesa0 -y && rviz2"


None yet


    This is RViz version 11.2.5 (ROS 2).

    Compiled against Qt version 5.15.3.
    Compiled against OGRE version 1.12.1 (Rhagorthua)

---

All reactions


* on humble:


I have tried to fiddle with mesa version override variable, but it does not do
much on my machine.

---

All reactions


* [ Pricing ](/pricing)


  * [ master ](/layerindex/branch/master/layers/)
  * [ meta-ros2-humble ](/layerindex/branch/master/layer/meta-ros2-humble/)
  * grid-map-rviz-plugin


It works. It downloaded the model and optimized it. After it, the rviz2
command starts to work as well.


By Solution


**[ swiz23 ](/swiz23) ** commented  Mar 30, 2023  •


**[ DatSpace ](/DatSpace) ** commented  Feb 13, 2023  •


[ @Stefan-working ](https://github.com/Stefan-working) Thank you for the fix!
Hopefully, the mesa available in ubuntu 22.04 will be upgraded soon enough for
the problem to disappear itself.
It seems the latest mesa available on Ubuntu 22.04 is 22.0.1: [
https://packages.ubuntu.com/search?suite=jammy&arch=any&searchon=names&keywords=mesa
](https://packages.ubuntu.com/search?suite=jammy&arch=any&searchon=names&keywords=mesa)
With the kisak repo I could upgrade to version 22.3.5

---

👍  12  DatSpace, Xi-HHHM, nahueespinosa, scchow, oskar-qrt, Shreeyak, leander-
dsouza, JojoDevel, tianlangmai, hodnajit, and 2 more reacted with thumbs up
emoji  🎉  2  hodnajit and TillBeemelmanns reacted with hooray emoji


Sorry, something went wrong.


docker run --rm --network=host -e DISPLAY -e XAUTHORITY=/tmp/.Xauthority -v ~/.Xauthority:/tmp/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix osrf/ros:humble-desktop /bin/bash -c "apt update && apt upgrade -y && rviz2"


edited


**[ VRichardJP ](/VRichardJP) ** commented  Feb 6, 2023


###  [ Getting Started with ROS 2 on Jetson AGX Orin™ – Stereolabs
](https://www.stereolabs.com/blog/getting-started-with-ros2-on-jetson-agx-
orin/)


I've been able to get around this by just installing nvidia-driver-515 in my
docker image. Note that other nvidia driver versions may work, but this is the
one I tried. I'm not seeing any common packages here and the ones suggested by
[ @VRichardJP ](https://github.com/VRichardJP) .


Copy link


Development


Author


**[ VRichardJP ](/VRichardJP) ** commented  Feb 3, 2023


Projects


[ Submit layer ](/layerindex/submit/)


  * In the foxy one, the demo runs normally
  * In the humble one, I get the following error:


[ ![@hodnajit](https://avatars.githubusercontent.com/u/25912615?s=80&v=4)
](/hodnajit)


I managed to fix this issue, I am working in a docker container with Ros2
Humble on Ubuntu 22.04. The issue is with openGL and adding `
--volume="/dev/dri:/dev/dri" \ ` to your bash script

---

All reactions


[ ![@clalancette](https://avatars.githubusercontent.com/u/163000?s=80&v=4)
](/clalancette)


On my machine the ` apt upgrade ` upgraded:


Repositories


>> add-apt-repository ppa:kisak/kisak-mesa
>  apt update
>  apt upgrade

---

👍  2  acarrillo and hodnajit reacted with thumbs up emoji


edited


  * 👍  5 reactions
  * 🎉  4 reactions


**[ JensVanhooydonck ](/JensVanhooydonck) ** commented  Feb 6, 2023


    #Fix broken Ubuntu 22.04 Mesa for WSL2 Docker https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/2004649
    RUN apt-get update
    RUN apt -y install software-properties-common
    RUN add-apt-repository -y ppa:kisak/kisak-mesa
    RUN apt-get update
    RUN apt-get -y upgrade

---

All reactions


However, the plugin is not required. You can remove the ` Local Grid Map `
object and save to not see that warning anymore:
![image](https://community.stereolabs.com/uploads/default/original/2X/b/b4222a3d1f5461694c9f1df96ef87314b4edd4b9.png)
I suppose the problem that you are facing is something different.
Does the command
` ros2 launch zed_wrapper zed2i.launch.py `
work correctly?


**[ VRichardJP ](/VRichardJP) ** commented  Feb 14, 2023  •


Sorry, something went wrong.


**[ trishmapow ](/trishmapow) ** commented  Feb 28, 2022  •


[ Myzhar  ](https://community.stereolabs.com/u/Myzhar) June 5, 2023, 4:20pm  4


[ ](https://github.com/)


Sign up for GitHub


Cancel  Create saved search


Additional navigation options


Copy link


[
![@neutronztar](https://avatars.githubusercontent.com/u/61921425?s=80&u=19a3e2fc2a59eec0c64a51c6b5d5a2c82634378d&v=4)
](/neutronztar)


The new Jetson AGX Orin™ from NVIDIA® is the ideal platform for edge AI and
autonomous robotics. Learn how to get started with...


**[ tinducvo ](/tinducvo) ** commented  Feb 6, 2023  •


  * 👍  12 reactions
  * 🎉  2 reactions


{{ message }}


* without the packages from kisak-mesa, rviz2 3D view is black:


[
![@rubenanapu](https://avatars.githubusercontent.com/u/30424797?s=80&u=8c511479d5dec8173060f8b6f0c9a1cdd8aa753b&v=4)
](/rubenanapu)


##  Community
Rosbridge is a community project and involvement is encouraged! In addition to
the [ GitHub ](https://github.com/RobotWebTools/rosbridge_suite) repository,
check out the [ Google Group
](https://groups.google.com/forum/?fromgroups=#!forum/rosbridge-users) and [
ROS Answers ](http://answers.ros.org) .
Wiki: rosbridge_suite (last edited 2022-09-07 18:33:59 by  [ Carter Schultz
](/Carter%20Schultz "Carter Schultz @
c-73-243-79-45.hsd1.co.comcast.net\[73.243.79.45\]") )
Except where otherwise noted, the ROS wiki is licensed under the
[ Creative Commons Attribution 3.0
](http://creativecommons.org/licenses/by/3.0/)
* * *
[ ![](/custom/images/brought_by_horiz.png) ](https://www.openrobotics.org/)


Toggle navigation


[
![@tinducvo](https://avatars.githubusercontent.com/u/6686958?s=80&u=a9086f74e354a8ccd07551a2ce9172322f9aad49&v=4)
](/tinducvo)


Sorry, something went wrong.


Projects


[ @neutronztar ](https://github.com/neutronztar) could you test rviz from `
osrf/ros:humble-desktop ` on your machine?

---

All reactions


Contributor


[ Stereolabs Forums ](/)


[ Black screen in Rviz and Gazebo since last update  osrf/docker_images#662
](/osrf/docker_images/issues/662)


Hi all,
I experienced the same situation with a similar configuration: WSL2 (ubuntu22)
+ Docker + ROS2 Humble + RVIZ2. I was using the ` ros:humble-ros-core ` image
and I managed to fix the problem by switching to the ` ros:humble-ros-base ` .
I tried to get back to the core image and manually add to the docker file the
additional dependencies that the base tag supposedly uses, however, the
problem came back, and didn't manage to fix it even when adding many other
dependencies into the docker file.

---

All reactions


[
![@VRichardJP](https://avatars.githubusercontent.com/u/18645627?s=80&u=18e9a7e8c90b864fe3a73b283a4081a37cfdbf9a&v=4)
](/VRichardJP)


This installed the following packages:


  * [ catkin ](/catkin?distro=noetic)
  * [ rosapi ](/rosapi?distro=noetic)
  * [ rosbridge_library ](/rosbridge_library?distro=noetic)
  * [ rosbridge_server ](/rosbridge_server?distro=noetic)
** Used by  (1) **
  * [ vizanti ](/vizanti?distro=noetic)
** Jenkins jobs  (6) **
  * [ source ubuntu focal ](https://build.ros.org/view/Nsrc_uF/job/Nsrc_uF__rosbridge_suite__ubuntu_focal__source)
  * [ binary ubuntu focal amd64 ](https://build.ros.org/view/Nbin_uF64/job/Nbin_uF64__rosbridge_suite__ubuntu_focal_amd64__binary)
  * [ binary ubuntu focal armhf ](https://build.ros.org/view/Nbin_ufhf_uFhf/job/Nbin_ufhf_uFhf__rosbridge_suite__ubuntu_focal_armhf__binary)
  * [ binary ubuntu focal arm64 ](https://build.ros.org/view/Nbin_ufv8_uFv8/job/Nbin_ufv8_uFv8__rosbridge_suite__ubuntu_focal_arm64__binary)
  * [ devel ubuntu focal amd64 ](https://build.ros.org/view/Ndev/job/Ndev__rosbridge_suite__ubuntu_focal_amd64)
  * [ doc ](https://build.ros.org/view/Ndoc/job/Ndoc__rosbridge_suite__ubuntu_focal_amd64)
#  Package Summary
Released
Continuous Integration:  144 / 144
  * Build history (last 5 of 9 builds):
  * [ #21  27-Sep-2023 14:45  144 / 144  ](https://build.ros.org//job/Ndev__rosbridge_suite__ubuntu_focal_amd64/21/)
  * [ #20  26-Sep-2023 14:45  144 / 144  ](https://build.ros.org//job/Ndev__rosbridge_suite__ubuntu_focal_amd64/20/)
  * [ #19  18-Oct-2022 18:45  144 / 144  ](https://build.ros.org//job/Ndev__rosbridge_suite__ubuntu_focal_amd64/19/)
  * [ #18  18-Oct-2022 12:45  144 / 144  ](https://build.ros.org//job/Ndev__rosbridge_suite__ubuntu_focal_amd64/18/)
  * [ #17  17-Oct-2022 17:45  144 / 144  ](https://build.ros.org//job/Ndev__rosbridge_suite__ubuntu_focal_amd64/17/)
Documented
Rosbridge provides a JSON API to ROS functionality for non-ROS programs. There
are a variety of front ends that interface with rosbridge, including a
WebSocket server for web browsers to interact with. Rosbridge_suite is a meta-
package containing rosbridge, various front end packages for rosbridge like a
WebSocket package, and helper packages.
  * Maintainer status: maintained
  * Maintainer: Russell Toris <rctoris AT wpi DOT edu>, Jihoon Lee <jihoonlee.in AT gmail DOT com>
  * Author: Jonathan Mace <jonathan.c.mace AT gmail DOT com>
  * License: BSD
  * Bug / feature tracker: [ https://github.com/RobotWebTools/rosbridge_suite/issues ](https://github.com/RobotWebTools/rosbridge_suite/issues)
  * Source: git [ https://github.com/RobotWebTools/rosbridge_suite.git ](https://github.com/RobotWebTools/rosbridge_suite) (branch: ros1)


---

👍  3  acarrillo, prabinrath, and zehranrgi reacted with thumbs up emoji


Copy link


**[ Cheny5863 ](/Cheny5863) ** commented  Mar 20, 2023


* [ The ReadME Project  GitHub community articles  ](/readme)


$ docker run --rm --network=host -e DISPLAY -e XAUTHORITY=/tmp/.Xauthority -v ~/.Xauthority:/tmp/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix ubuntu:20.04 /bin/bash -c "apt update && apt install -y mesa-utils && glxgears"


No branches or pull requests


#  Black Screen on version 11.2.5  #948


[ ![image](https://user-
images.githubusercontent.com/18645627/216855584-bbf9281c-8704-4d5f-8803-3119106d69ee.png)
](https://user-
images.githubusercontent.com/18645627/216855584-bbf9281c-8704-4d5f-8803-3119106d69ee.png)

---

All reactions


[ ![@clalancette](https://avatars.githubusercontent.com/u/163000?s=52&v=4)
](/clalancette) [
![@faev999](https://avatars.githubusercontent.com/u/9406567?s=52&v=4)
](/faev999) [
![@trishmapow](https://avatars.githubusercontent.com/u/17211063?s=52&v=4)
](/trishmapow) [
![@SheaFixstars](https://avatars.githubusercontent.com/u/66436076?s=52&v=4)
](/SheaFixstars) [
![@gatboccia](https://avatars.githubusercontent.com/u/87668070?s=52&v=4)
](/gatboccia) [
![@EliotRossRob](https://avatars.githubusercontent.com/u/110405509?s=52&v=4)
](/EliotRossRob)


You can’t perform that action at this time.


**[ VRichardJP ](/VRichardJP) ** commented  Feb 2, 2023  •


Password


[
![@swiz23](https://avatars.githubusercontent.com/u/31753673?s=80&u=c043f1c4e92bf4ed9ba1df1d510194897529152b&v=4)
](/swiz23)


Author


edited


Branch  |  Recipe
---|---
master  |  grid-map-rviz-plugin 2.0.0-1 (this recipe)
nanbield (Yocto Project 4.3)  |  [ grid-map-rviz-plugin
](/layerindex/recipe/390346/)
mickledore (Yocto Project 4.2)  |  [ grid-map-rviz-plugin
](/layerindex/recipe/391701/)
langdale (Yocto Project 4.1)  |  [ grid-map-rviz-plugin
](/layerindex/recipe/393056/)
kirkstone (Yocto Project 4.0)  |  [ grid-map-rviz-plugin 2.0.0-1
](/layerindex/recipe/394411/)

* * *


    * [ Topics ](/topics)
    * [ Trending ](/trending)
    * [ Collections ](/collections)


None yet


##  Footer


Can you also try to remove the directory in ` $HOME/.rviz2 ` to see if that
improves things at all?

---

All reactions


ros2 launch zed_display_rviz2 display_zed2i.launch.py


[ neutronztar ](/neutronztar) opened this issue  Feb 1, 2023  · 26 comments


###  Footer navigation


New issue


Then I tried to downgrade everything to 11.2.4


Jump to bottom


[ Jian  ](https://community.stereolabs.com/u/Jian) June 6, 2023, 11:25am  5


    * [ All features ](/features)
    * [ Documentation  ](https://docs.github.com)
    * [ GitHub Skills  ](https://skills.github.com/)
    * [ Blog  ](https://github.blog)


Password


No branches or pull requests


[ Software  ](https://community.stereolabs.com/c/sw/6) [ ROS2
](https://community.stereolabs.com/c/sw/ros2/12)


{{ message }}


Contributor


edited


    * [ CI/CD & Automation ](/solutions/ci-cd/)
    * [ DevOps ](/solutions/devops/)
    * [ DevSecOps  ](https://resources.github.com/devops/fundamentals/devsecops/)


**[ JensVanhooydonck ](/JensVanhooydonck) ** commented  Feb 4, 2023  •


Milestone


[ ros2 ](/ros2) /  **[ rviz ](/ros2/rviz) ** Public


* 👍  3 reactions


All reactions


* 👍  2 reactions


[
![@neutronztar](https://avatars.githubusercontent.com/u/61921425?s=80&u=19a3e2fc2a59eec0c64a51c6b5d5a2c82634378d&v=4)
](/neutronztar)


    [INFO] [1646095263.857234434] [rviz2]: Parsing scripts for resource group General
    [INFO] [1646095263.857293011] [rviz2]: Finished parsing scripts for resource group General
    [INFO] [1646095263.857340519] [rviz2]: Creating resources for group General
    [INFO] [1646095263.857376996] [rviz2]: All done
    [INFO] [1646095263.857391892] [rviz2]: Parsing scripts for resource group OgreAutodetect
    [INFO] [1646095263.857437204] [rviz2]: Finished parsing scripts for resource group OgreAutodetect
    [INFO] [1646095263.857477928] [rviz2]: Creating resources for group OgreAutodetect
    [INFO] [1646095263.857510412] [rviz2]: All done
    [INFO] [1646095263.857547440] [rviz2]: Parsing scripts for resource group OgreInternal
    [INFO] [1646095263.857600065] [rviz2]: Finished parsing scripts for resource group OgreInternal
    [INFO] [1646095263.857629799] [rviz2]: Creating resources for group OgreInternal
    [INFO] [1646095263.857657677] [rviz2]: All done
    [INFO] [1646095263.857694833] [rviz2]: Parsing scripts for resource group rviz_rendering
    [INFO] [1646095263.858244660] [rviz2]: Parsing script glsl120.program
    [INFO] [1646095263.872139408] [rviz2]: Parsing script nogp.program
    [INFO] [1646095263.878563538] [rviz2]: Parsing script default_pick_and_depth.material
    [INFO] [1646095263.879929146] [rviz2]: Parsing script point_cloud_tile.material
    [INFO] [1646095263.880934233] [rviz2]: Parsing script indexed_8bit_image.material
    [INFO] [1646095263.882072715] [rviz2]: Parsing script point_cloud_point.material
    [INFO] [1646095263.883117320] [rviz2]: Parsing script point_cloud_flat_square.material
    [INFO] [1646095263.883711246] [rviz2]: Parsing script point_cloud_box.material
    [INFO] [1646095263.884331897] [rviz2]: Parsing script point_cloud_sphere.material
    [INFO] [1646095263.884905734] [rviz2]: Parsing script point_cloud_square.material
    [INFO] [1646095263.885452258] [rviz2]: Parsing script liberation_sans.fontdef
    [INFO] [1646095263.885902110] [rviz2]: Finished parsing scripts for resource group rviz_rendering
    [INFO] [1646095263.885946466] [rviz2]: Creating resources for group rviz_rendering
    [INFO] [1646095263.885954361] [rviz2]: All done
    [INFO] [1646095263.892749447] [rviz2]: GLRenderSystem::_createRenderWindow "OgreWindow(1)", 100x30 windowed  miscParams: FSAA=4 contentScalingFactor=1.000000 currentGLContext=false externalWindowHandle=4194321 left=0 parentWindowHandle=4194321 top=0
    [INFO] [1646095263.893997184] [rviz2]: Actual frame buffer FSAA: 4, gamma: 0, colourBufferSize: 32
    [INFO] [1646095263.906334833] [rviz2]: Created GL 3.0 context
    [INFO] [1646095263.920161017] [rviz2]: GLXWindow::create used FBConfigID = 205
    [INFO] [1646095263.920281641] [rviz2]: Stereo is NOT SUPPORTED
    [INFO] [1646095263.988700829] [rviz2]: Mesh: Loading rviz_sphere.mesh.
    [INFO] [1646095264.030007616] [rviz2]: Texture 'SelectionRect0Texture': Loading 1 faces(PF_R8G8B8A8,1x1x1) Internal format is PF_R8G8B8A8,1x1x1.
    [INFO] [1646095264.040929436] [rviz2]: Mesh: Loading rviz_cylinder.mesh.
    [INFO] [1646095264.045957554] [rviz2]: Mesh: Loading rviz_cone.mesh.
    [INFO] [1646095264.076858559] [rviz2]: Using FSAA from GL_ARB_multisample extension.

---


[
![@trishmapow](https://avatars.githubusercontent.com/u/17211063?s=40&u=03d434d5be14c18d172b97e122025705a4187017&v=4)
](/trishmapow) [ trishmapow ](/trishmapow) changed the title ~~Empty grey area
instead of 3D grid with rviz2 on WSL~~ Empty grey area instead of 3D grid with
rviz2 on WSL & Docker  Apr 11, 2022


-> Black screen


    ros-humble-rviz-assimp-vendor/now 11.2.5-1jammy.20230112.141217 amd64 [installed,local]
    ros-humble-rviz-common/now 11.2.5-1jammy.20230120.222053 amd64 [installed,local]
    ros-humble-rviz-default-plugins/now 11.2.5-1jammy.20230124.071257 amd64 [installed,local]
    ros-humble-rviz-ogre-vendor/now 11.2.5-1jammy.20230112.141237 amd64 [installed,local]
    ros-humble-rviz-rendering/now 11.2.4-1jammy.20221108.154346 amd64 [installed,local]
    ros-humble-rviz2/now 11.2.5-1jammy.20230124.081000 amd64 [installed,local]


By clicking “Sign up for GitHub”, you agree to our [ terms of service
](https://docs.github.com/terms) and [ privacy statement
](https://docs.github.com/privacy) . We’ll occasionally send you account
related emails.


Rviz launched with error, see screen grab


> I confirm the mesa upgrade from ` ppa:kisak/kisak-mesa ` does the trick:
>
>
>     * glxgears now works:
>
>
>
>     docker run --rm --network=host -e DISPLAY -e XAUTHORITY=/tmp/.Xauthority
> -v ~/.Xauthority:/tmp/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix
> ubuntu:22.04 /bin/bash -c "apt update && apt install -y software-properties-
> common && add-apt-repository ppa:kisak/kisak-mesa && apt install -y mesa-
> utils && glxgears"
>
>
>
>     * same for rviz2 on humble:
>
>
>
>     docker run --rm --network=host -e DISPLAY -e XAUTHORITY=/tmp/.Xauthority
> -v ~/.Xauthority:/tmp/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix
> osrf/ros:humble-desktop /bin/bash -c "apt update && apt install -y software-
> properties-common && add-apt-repository ppa:kisak/kisak-mesa && apt upgrade
> -y && rviz2"
>
>
> On my machine the ` apt upgrade ` upgraded:
>
>
>     libegl-mesa0 libegl1-mesa-dev libgbm-dev libgbm1 libgl1-mesa-dev
>       libgl1-mesa-dri libglapi-mesa libglx-mesa0 libllvm15 libpam-modules
>       libpam-modules-bin libpam-runtime libpam0g libssl-dev libssl3 linux-
> libc-dev
>       openssl python3-colcon-core python3-colcon-defaults python3-colcon-
> mixin
>       python3-colcon-python-setup-py
>
>
>
>     * there are more than just a few mesa libs, so I also tested installing


Copy link


  * [ Code  ](/ros2/rviz)
  * [ Issues  96  ](/ros2/rviz/issues)
  * [ Pull requests  31  ](/ros2/rviz/pulls)
  * [ Actions  ](/ros2/rviz/actions)
  * [ Projects  0  ](/ros2/rviz/projects)
  * [ Wiki  ](/ros2/rviz/wiki)
  * [ Security  ](/ros2/rviz/security)
  * [ Insights  ](/ros2/rviz/pulse)


OS: Windows 10 host, Rviz2 running a WSL Docker container


**[ clalancette ](/clalancette) ** commented  Mar 30, 2023


Thank you for the prompt reply.


##  Footer


Sorry, something went wrong.


Assignees


6 participants


We read every piece of feedback, and take your input very seriously.


I also found this [ PR ](https://github.com/RobotLocomotion/drake-
ci/pull/217/files) helpful for how to downgrade and make sure the libraries
aren't upgraded again by accident. For my specific case I also had to
downgrade ` libgbm-dev=22.0.1-1ubuntu2 libsdl2-2.0-0=2.0.20+dfsg-2build1
libsdl2-dev=2.0.20+dfsg-2build1 ` and hold them.

---

All reactions


* [ Pricing ](/pricing)


Name


[ Myzhar  ](https://community.stereolabs.com/u/Myzhar) June 5, 2023, 1:16pm  2


Est. reading time: 11 minutes


[ ![@faev999](https://avatars.githubusercontent.com/u/9406567?s=80&v=4)
](/faev999)


This recipe in other branches of meta-ros2-humble:


Search or jump to...


##  Comments


    root@ec83563c233e:/# rviz2
    QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
    [INFO] [1675389782.489131125] [rviz2]: Stereo is NOT SUPPORTED
    [INFO] [1675389782.489196376] [rviz2]: OpenGl version: 4.5 (GLSL 4.5)
    [INFO] [1675389782.529771343] [rviz2]: Stereo is NOT SUPPORTED


Dependencies __ |


All reactions


#  grid-map-rviz-plugin 2.0.0-1


3 tasks


What if it is a problem with OpenGL? I have tested ` glxgears ` from ` mesa-
utils ` package in both container:


**[ clalancette ](/clalancette) ** commented  Feb 2, 2023


> I also had this problem with windows 10 enterprise, docker-desktop and
> Ubuntu 22.04 LTS. I was able to fix this issue by upgrading the mesa package
> with the binaries provided by the kisak/kisak-mesa ppa:
>


[
![@rubenanapu](https://avatars.githubusercontent.com/u/30424797?s=40&u=8c511479d5dec8173060f8b6f0c9a1cdd8aa753b&v=4)
](/rubenanapu) [ rubenanapu ](/rubenanapu) mentioned this issue  Jun 9, 2023


#  Provide feedback


edited


> just the mesa related packages. This one works too:
>
>
>
>     docker run --rm --network=host -e DISPLAY -e XAUTHORITY=/tmp/.Xauthority
> -v ~/.Xauthority:/tmp/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix
> osrf/ros:humble-desktop /bin/bash -c "apt update && apt install -y software-
> properties-common && add-apt-repository ppa:kisak/kisak-mesa && apt install
> libegl-mesa0 libegl1-mesa-dev libgbm-dev libgbm1 libgl1-mesa-dev
> libgl1-mesa-dri libglapi-mesa libglx-mesa0 -y && rviz2"
>
>
>
>     * without the packages from kisak-mesa, rviz2 3D view is black:
>
>
>
>     docker run --rm --network=host -e DISPLAY -e XAUTHORITY=/tmp/.Xauthority
> -v ~/.Xauthority:/tmp/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix
> osrf/ros:humble-desktop /bin/bash -c "apt update && apt upgrade -y && rviz2"
>
>
> [ @Stefan-working ](https://github.com/Stefan-working) Thank you for the
> fix! Hopefully, the mesa available in ubuntu 22.04 will be upgraded soon
> enough for the problem to disappear itself. It seems the latest mesa
> available on Ubuntu 22.04 is 22.0.1: [
> https://packages.ubuntu.com/search?suite=jammy&arch=any&searchon=names&keywords=mesa
> ](https://packages.ubuntu.com/search?suite=jammy&arch=any&searchon=names&keywords=mesa)
> With the kisak repo I could upgrade to version 22.3.5


[
![@trishmapow](https://avatars.githubusercontent.com/u/17211063?s=80&u=03d434d5be14c18d172b97e122025705a4187017&v=4)
](/trishmapow)


    version: "3"
    services:
      rviz2_test:
        image: osrf/ros:foxy-desktop
        # image: osrf/ros:humble-desktop
        command: rviz2
        environment:
          - DISPLAY
          - XAUTHORITY=/tmp/.Xauthority
        volumes:
          - ~/.Xauthority:/tmp/.Xauthority
          - /tmp/.X11-unix:/tmp/.X11-unix
        network_mode: host


Copy link


I confirm the mesa upgrade from ` ppa:kisak/kisak-mesa ` does the trick:


Resources


**[ EliotRossRob ](/EliotRossRob) ** commented  Feb 10, 2023


Sorry, something went wrong.


[ ![@Stefan-
working](https://avatars.githubusercontent.com/u/55838513?s=80&v=4) ](/Stefan-
working)


it works!!! thank u very much!

---

All reactions


Labels


This recipe is appended by:


* there are more than just a few mesa libs, so I also tested installing just the mesa related packages. This one works too:


hi, just tested above command


Then to 11.2.3:


[ ![@EliotRossRob](https://avatars.githubusercontent.com/u/110405509?s=80&v=4)
](/EliotRossRob)


**[ hanjianwei92 ](/hanjianwei92) ** commented  Feb 12, 2023


When using docker adding ` ---ipc=host ` to the run command or adding ` ipc:
host ` to the docker-compose file fixes this for me.
From here: [ Stack overflow ](https://askubuntu.com/questions/1237400/how-to-
fix-x-error-badaccess-baddrawable-badshmseg-while-running-graphical-ap)

---

👍  5  ilidar, TechToker, adujardin, dev10110, and stephen-derosa reacted with
thumbs up emoji  🎉  4  TechToker, JeffHough, dev10110, and stephen-derosa
reacted with hooray emoji


#  Search code, repositories, users, issues, pull requests...


**[ tinducvo ](/tinducvo) ** commented  Feb 6, 2023


> Doesn't seem like this downgraded all of rviz.


Contributor


A set of packages which provide various web-related functionality and expose
various aspects of ROS to the outside world. At its core, rosbridge is a
websockets server with a JSON API exposing ROS service and pub/sub
functionality. Additional packages provide convenience functions, and handling
for specific datatypes.
  * Author: Maintained by Jonathan Mace
  * License: BSD
  * External website: [ http://www.rosbridge.org ](http://www.rosbridge.org)
  * Source: git [ https://github.com/RobotWebTools/rosbridge_suite.git ](https://github.com/RobotWebTools/rosbridge_suite) (branch: fuerte-devel)
_**rosbridge_suite** : [ rosapi ](/rosapi?distro=groovy) | [ rosbridge_library
](/rosbridge_library?distro=groovy) | [ rosbridge_server
](/rosbridge_server?distro=groovy) _
**Package Links**
  * [ rosbridge_suite website ](https://github.com/RobotWebTools/rosbridge_suite)
  * [ Tutorials ](/rosbridge_suite/Tutorials)
  * [ FAQ ](http://answers.ros.org/questions/scope:all/sort:activity-desc/tags:rosbridge_suite/page:1/)
  * [ Changelog ](http://docs.ros.org/en/groovy/changelogs/rosbridge_suite/changelog.html)
  * [ Change List ](/rosbridge_suite/ChangeList)
  * [ Reviews ](/rosbridge_suite/Reviews)
** Dependencies  (4) **
  * [ catkin ](/catkin?distro=groovy)
  * [ rosapi ](/rosapi?distro=groovy)
  * [ rosbridge_library ](/rosbridge_library?distro=groovy)
  * [ rosbridge_server ](/rosbridge_server?distro=groovy)
** Used by  (1) **
  * [ robot_web_tools ](/robot_web_tools?distro=groovy)
#  Package Summary
Released
Continuous Integration
Documented
Rosbridge provides a JSON API to ROS functionality for non-ROS programs. There
are a variety of front ends that interface with rosbridge, including a
WebSocket server for web browsers to interact with. Rosbridge_suite is a meta-
package containing rosbridge, various front end packages for rosbridge like a
WebSocket package, and helper packages.
  * Maintainer status: maintained
  * Maintainer: Brandon Alexander <baalexander AT gmail DOT com>, Jihoon Lee <jihoonlee.in AT gmail DOT com>, Russell Toris <rctoris AT wpi DOT edu>
  * Author: Jonathan Mace <jonathan.c.mace AT gmail DOT com>
  * License: BSD
  * External website: [ https://github.com/RobotWebTools/rosbridge_suite ](https://github.com/RobotWebTools/rosbridge_suite)


[ ![@clalancette](https://avatars.githubusercontent.com/u/163000?s=52&v=4)
](/clalancette) [
![@JensVanhooydonck](https://avatars.githubusercontent.com/u/5812950?s=52&v=4)
](/JensVanhooydonck) [
![@tinducvo](https://avatars.githubusercontent.com/u/6686958?s=52&v=4)
](/tinducvo) [
![@elms](https://avatars.githubusercontent.com/u/7052058?s=52&v=4) ](/elms) [
![@VRichardJP](https://avatars.githubusercontent.com/u/18645627?s=52&v=4)
](/VRichardJP) [
![@DatSpace](https://avatars.githubusercontent.com/u/19471755?s=52&v=4)
](/DatSpace) [
![@hodnajit](https://avatars.githubusercontent.com/u/25912615?s=52&v=4)
](/hodnajit) [
![@rubenanapu](https://avatars.githubusercontent.com/u/30424797?s=52&v=4)
](/rubenanapu) [
![@swiz23](https://avatars.githubusercontent.com/u/31753673?s=52&v=4)
](/swiz23) [
![@Cheny5863](https://avatars.githubusercontent.com/u/40204259?s=52&v=4)
](/Cheny5863) [ ![@Stefan-
working](https://avatars.githubusercontent.com/u/55838513?s=52&v=4) ](/Stefan-
working) [
![@neutronztar](https://avatars.githubusercontent.com/u/61921425?s=52&v=4)
](/neutronztar) [
![@hanjianwei92](https://avatars.githubusercontent.com/u/66931100?s=52&v=4)
](/hanjianwei92)


**[ Cheny5863 ](/Cheny5863) ** commented  Mar 20, 2023


No one assigned


docker run --rm --network=host -e DISPLAY -e XAUTHORITY=/tmp/.Xauthority -v ~/.Xauthority:/tmp/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix ubuntu:22.04 /bin/bash -c "apt update && apt install -y software-properties-common && add-apt-repository ppa:kisak/kisak-mesa && apt install -y mesa-utils && glxgears"


* 😕  1 reaction


[ @clalancette ](https://github.com/clalancette) removing ` $HOME/.rviz2 `
seems not to have any impact.

---

All reactions


##  bbappends


All reactions


    * [ Topics ](/topics)
    * [ Trending ](/trending)
    * [ Collections ](/collections)


Rviz2 does work fine on my dedicated Linux laptop, and I notice also in the
original demo video of WSLg here: [ https://blogs.windows.com/windows-
insider/2021/04/21/announcing-windows-10-insider-preview-build-21364/
](https://blogs.windows.com/windows-insider/2021/04/21/announcing-
windows-10-insider-preview-build-21364/) . In addition, Rviz1 works fine on
WSL Ubuntu 18.04 on the same computer.
[ ![image](https://user-
images.githubusercontent.com/17211063/155950482-8010a47d-1e6c-4d98-9104-c9e4f098a414.png)
](https://user-
images.githubusercontent.com/17211063/155950482-8010a47d-1e6c-4d98-9104-c9e4f098a414.png)

---

The text was updated successfully, but these errors were encountered:


  * [ Terms ](https://docs.github.com/site-policy/github-terms/github-terms-of-service)
  * [ Privacy ](https://docs.github.com/site-policy/privacy-policies/github-privacy-statement)
  * [ Security ](/security)
  * [ Status ](https://www.githubstatus.com/)
  * [ Docs ](https://docs.github.com/)
  * [ Contact ](https://support.github.com?tags=dotcom-footer)
  * Manage cookies
  * Do not share my personal information


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


Copy link


Note: My friend is running an Ubuntu host with a Docker container and having
the same problem with 11.2.5.


Jump to bottom


[ ![@clalancette](https://avatars.githubusercontent.com/u/163000?s=80&v=4)
](/clalancette)


Contributor


I am facing a black screen issue aswell, using a docker container on ubuntu.


[ Jian  ](https://community.stereolabs.com/u/Jian) June 5, 2023, 12:57pm  1


No milestone


[ Sign up for free ](/join?source=comment-repo) **to join this conversation on
GitHub** . Already have an account? [ Sign in to comment
](/login?return_to=https%3A%2F%2Fgithub.com%2Fros2%2Frviz%2Fissues%2F834)


**[ elms ](/elms) ** commented  Apr 28, 2023


    root@2ed4539840e3:/# rviz2
    QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
    [INFO] [1675390752.635322008] [rviz2]: Stereo is NOT SUPPORTED
    [INFO] [1675390752.635524874] [rviz2]: OpenGl version: 3.1 (GLSL 1.4)
    [INFO] [1675390752.833427792] [rviz2]: Stereo is NOT SUPPORTED


    * [ Enterprise ](/enterprise)
    * [ Teams ](/team)
    * [ Startups ](/enterprise/startups)
    * [ Education  ](https://education.github.com)


**[ faev999 ](/faev999) ** commented  Mar 7, 2023


I am using this docker image: [ https://hub.docker.com/r/tiryoh/ros2-desktop-
vnc/tags?page=1&name=humble ](https://hub.docker.com/r/tiryoh/ros2-desktop-
vnc/tags?page=1&name=humble) .
Everything seems to be working after downgrading to tag humble-20230129T1423.
The ros-humble-desktop versions were both ros-humble-desktop/jammy,now
0.10.0-1jammy.20230124.081312 amd64.
Let me know if you want me to test anything.

---

All reactions


**[ rubenanapu ](/rubenanapu) ** commented  Jun 9, 2023


>> add-apt-repository ppa:kisak/kisak-mesa
>  apt update
>  apt upgrade


There is no version earlier than 11.2.2 on Humble. But I have used Rviz in
humble containers before, and it was working just fine. So it does not seem to
be a Rviz2 version issue (in my case at least).

---

All reactions


edited


**[ VRichardJP ](/VRichardJP) ** commented  Feb 6, 2023


PACKAGECONFIG options  |

##  Sources


Sorry, something went wrong.


* [ GitHub Sponsors  Fund open source developers  ](/sponsors)


Include my email address so I can be contacted


Copy link


* Open Source


I also had this problem with Ubuntu 18.04LTS, docker and Ubuntu 22.04 LTS. I
was able to fix this issue by add option "--privileged" when run
container，like this:
` sudo docker run -it -v /tmp/.X11-unix -e DISPLAY=unix$DISPLAY -e GDK_SCALE
-e GDK_DPI_SCALE --net=host --privileged osrf/ros:humble-desktop-full `

---

👍  2  NovoG93 and sshaizkhan reacted with thumbs up emoji


**[ neutronztar ](/neutronztar) ** commented  Feb 1, 2023  •


  * 👍  19 reactions
  * 🚀  7 reactions


[ ![Screenshot from 2023-06-05
22-47-29](https://community.stereolabs.com/uploads/default/optimized/2X/5/54e24966da503330ec7cabd3e3017f0f2f481e6f_2_690x435.png)
Screenshot from 2023-06-05 22-47-29  948×599 93.8 KB
](https://community.stereolabs.com/uploads/default/original/2X/5/54e24966da503330ec7cabd3e3017f0f2f481e6f.png
"Screenshot from 2023-06-05 22-47-29")


Which version of Ubuntu are you on? My docker container is 22.0.4. It is
working when I install it directly in my WSL distro which is Ubuntu 20.04.

---

All reactions


Resources


[
![@DatSpace](https://avatars.githubusercontent.com/u/19471755?s=80&u=2ff76ac34b67130e06a67c5c1fe51f916e322ea2&v=4)
](/DatSpace)


* 👍  2 reactions


Milestone


ros2 launch zed_wrapper zed2i.launch.py


All reactions


> I managed to fix this issue, I am working in a docker container with Ros2
> Humble on Ubuntu 22.04. The issue is with openGL and adding `
> --volume="/dev/dri:/dev/dri" \ ` to your bash script


  * [ Home ](/)
  * [ Categories ](/categories)
  * [ FAQ/Guidelines ](/guidelines)
  * [ Terms of Service ](/tos)
  * [ Privacy Policy ](/privacy)


Explore


Search


**[ VRichardJP ](/VRichardJP) ** commented  Feb 2, 2023


Sorry, something went wrong.


I've also added this to the environment variables:
\- MESA_GL_VERSION_OVERRIDE=3.1COMPAT
\- MESA_GLES_VERSION_OVERRIDE=3.1
To match the OpenGL version i run locally (In a VM on a M1 macbook)

---

All reactions


Hello, I believe I hit a similar issue. I have tracked it down as far as I can
tell to a Ubuntu Mesa regression with Orge and WSL rendering. [
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/2004649
](https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/2004649)


For


Closed


To see all available qualifiers, see our [ documentation
](https://docs.github.com/search-github/github-code-search/understanding-
github-code-search-syntax) .


No one assigned


[ trishmapow ](/trishmapow) opened this issue  Feb 28, 2022  · 7 comments


I am using ros2 foxy, will try foxy equivalent plugin amd let you know.


[ Search syntax tips ](https://docs.github.com/search-github/github-code-
search/understanding-github-code-search-syntax)


* Product


[ backlog  ](/ros2/rviz/labels/backlog)


[ ros ](https://community.stereolabs.com/tag/ros) , [ jetson
](https://community.stereolabs.com/tag/jetson) , [ python
](https://community.stereolabs.com/tag/python)


[
![@swiz23](https://avatars.githubusercontent.com/u/31753673?s=40&u=c043f1c4e92bf4ed9ba1df1d510194897529152b&v=4)
](/swiz23) [ swiz23 ](/swiz23) mentioned this issue  Feb 26, 2023


    [INFO] [1646095263.851174402] [rviz2]:  * Volume textures: yes
    [INFO] [1646095263.851201048] [rviz2]:  * Multiple Render Targets: 8
    [INFO] [1646095263.851225837] [rviz2]:    - With different bit depths: yes
    [INFO] [1646095263.851235410] [rviz2]:  * Point Sprites: yes
    [INFO] [1646095263.851259105] [rviz2]:  * Wide Lines: no
    [INFO] [1646095263.851286191] [rviz2]:  * Hardware Gamma: yes
    [INFO] [1646095263.851311258] [rviz2]:  * Extended point parameters: yes
    [INFO] [1646095263.851354940] [rviz2]:  * Max Point Size: 255
    [INFO] [1646095263.851380707] [rviz2]:  * Vertex texture fetch: yes
    [INFO] [1646095263.851414918] [rviz2]:  * Number of texture units: 16
    [INFO] [1646095263.851425404] [rviz2]:  * Number of vertex attributes: 16
    [INFO] [1646095263.851450361] [rviz2]:  * Stencil buffer depth: 8
    [INFO] [1646095263.851480175] [rviz2]:  * Number of vertex blend matrices: 0
    [INFO] [1646095263.851507152] [rviz2]:    - Max vertex textures: 32
    [INFO] [1646095263.851534544] [rviz2]:    - Vertex textures shared: yes
    [INFO] [1646095263.851557176] [rviz2]:  * Render to Vertex Buffer : no
    [INFO] [1646095263.851584482] [rviz2]:  * Hardware Atomic Counters: no
    [INFO] [1646095263.851613190] [rviz2]:  * PBuffer support: yes
    [INFO] [1646095263.851638323] [rviz2]:  * Vertex Array Objects: no
    [INFO] [1646095263.851662550] [rviz2]:  * Separate shader objects: no
    [INFO] [1646095263.851687137] [rviz2]:  * GLSL SSO redeclare interface block: no
    [INFO] [1646095263.851717559] [rviz2]:  * Debugging/ profiling events: no
    [INFO] [1646095263.851742552] [rviz2]:  * Map buffer storage: yes
    [INFO] [1646095263.852324517] [rviz2]: Using FSAA from GL_ARB_multisample extension.
    [INFO] [1646095263.852647998] [rviz2]: DefaultWorkQueue('Root') initialising on thread main.
    [INFO] [1646095263.853095329] [rviz2]: Particle Renderer Type 'billboard' registered
    [INFO] [1646095263.853205897] [rviz2]: Stereo is NOT SUPPORTED
    [INFO] [1646095263.853290721] [rviz2]: OpenGl version: 3.1 (GLSL 1.4)
    [INFO] [1646095263.853433497] [rviz2]: Creating resource group rviz_rendering
    [INFO] [1646095263.853510817] [rviz2]: Added resource location '/opt/ros/foxy/share/rviz_rendering/ogre_media' of type 'FileSystem' to resource group 'rviz_rendering'
    [INFO] [1646095263.854113293] [rviz2]: Added resource location '/opt/ros/foxy/share/rviz_rendering/ogre_media/textures' of type 'FileSystem' to resource group 'rviz_rendering'
    [INFO] [1646095263.854459485] [rviz2]: Added resource location '/opt/ros/foxy/share/rviz_rendering/ogre_media/fonts' of type 'FileSystem' to resource group 'rviz_rendering'
    [INFO] [1646095263.854783379] [rviz2]: Added resource location '/opt/ros/foxy/share/rviz_rendering/ogre_media/fonts/liberation-sans' of type 'FileSystem' to resource group 'rviz_rendering'
    [INFO] [1646095263.855104650] [rviz2]: Added resource location '/opt/ros/foxy/share/rviz_rendering/ogre_media/models' of type 'FileSystem' to resource group 'rviz_rendering'
    [INFO] [1646095263.855406145] [rviz2]: Added resource location '/opt/ros/foxy/share/rviz_rendering/ogre_media/materials' of type 'FileSystem' to resource group 'rviz_rendering'
    [INFO] [1646095263.855702749] [rviz2]: Added resource location '/opt/ros/foxy/share/rviz_rendering/ogre_media/materials/scripts' of type 'FileSystem' to resource group 'rviz_rendering'
    [INFO] [1646095263.856042074] [rviz2]: Added resource location '/opt/ros/foxy/share/rviz_rendering/ogre_media/materials/glsl120' of type 'FileSystem' to resource group 'rviz_rendering'
    [INFO] [1646095263.856398040] [rviz2]: Added resource location '/opt/ros/foxy/share/rviz_rendering/ogre_media/materials/glsl120/include' of type 'FileSystem' to resource group 'rviz_rendering'
    [INFO] [1646095263.856748673] [rviz2]: Added resource location '/opt/ros/foxy/share/rviz_rendering/ogre_media/materials/glsl120/nogp' of type 'FileSystem' to resource group 'rviz_rendering'
    [INFO] [1646095263.857080858] [rviz2]: Added resource location '/opt/ros/foxy/share/rviz_rendering/ogre_media/materials/scripts120' of type 'FileSystem' to resource group 'rviz_rendering'


Does that make it work for you?

---

All reactions


[
![@gatboccia](https://avatars.githubusercontent.com/u/87668070?s=80&u=54038c18023d47d0038d5a66c7cb0e37bf7243e2&v=4)
](/gatboccia)


##  About
There's two parts to rosbridge: the protocol and the implementation.
###  Rosbridge Protocol
The [ rosbridge protocol
](https://github.com/RobotWebTools/rosbridge_suite/blob/ros1/ROSBRIDGE_PROTOCOL.md)
is a specification for sending JSON based commands to ROS (and in theory, any
other robot middleware). An example of the protocol for subscribing to a
topic:

    { "op": "subscribe",
      "topic": "/cmd_vel",
      "type": "geometry_msgs/Twist"
    }
The specification is programming language and transport agnostic. The idea is
that any language or transport that can send JSON can talk the rosbridge
protocol and interact with ROS. The protocol covers subscribing and publishing
topics, service calls, getting and setting params, and even compressing
messages and more.
###  Rosbridge Implementation
The rosbridge_suite package is a collection of packages that implement the
rosbridge protocol and provides a [ WebSocket ](/WebSocket) transport layer.
The packages include:
  * [ rosbridge_library ](/rosbridge_library) \- The core rosbridge package. The rosbridge_library is responsible for taking the JSON string and sending the commands to ROS and vice versa.
  * [ rosapi ](/rosapi) \- Makes certain ROS actions accessible via service calls that are normally reserved for [ ROS client libraries ](/Client%20Libraries) . This includes getting and setting params, getting topics list, and more.
  * [ rosbridge_server ](/rosbridge_server) \- While rosbridge_library provides the JSON<->ROS conversion, it leaves the transport layer to others. Rosbridge_server provides a [ WebSocket ](/WebSocket) connection so browsers can "talk rosbridge." [ Roslibjs ](/roslibjs) is a [ JavaScript ](/JavaScript) library for the browser that can talk to ROS via rosbridge_server.
##  Source Code
Source code is available at [ https://github.com/RobotWebTools/rosbridge_suite
](https://github.com/RobotWebTools/rosbridge_suite) . Please file issues and
pull requests there.
##  Installation
Rosbridge is available as a debian. To install:

    sudo apt-get install ros-<rosdistro>-rosbridge-server
##  Tutorials
###  Beginner Tutorials
  1. [ Running Rosbridge ](/rosbridge_suite/Tutorials/RunningRosbridge)
This tutorial shows you how to launch a rosbridge server and talk to it.
###  Intermediate Tutorials
  1. [ Developing Rosbridge ](/rosbridge_suite/Tutorials/DevelopingRosbridge)
This tutorial shows you how to develop on rosbridge itself.


[ OpenEmbedded Layer Index ](/layerindex/)


Copy link


    * [ Actions  Automate any workflow  ](/features/actions)
    * [ Packages  Host and manage packages  ](/features/packages)
    * [ Security  Find and fix vulnerabilities  ](/features/security)
    * [ Codespaces  Instant dev environments  ](/features/codespaces)
    * [ Copilot  Write better code with AI  ](/features/copilot)
    * [ Code review  Manage code changes  ](/features/code-review)
    * [ Issues  Plan and track work  ](/features/issues)
    * [ Discussions  Collaborate outside of code  ](/features/discussions)


**[ hodnajit ](/hodnajit) ** commented  Jul 27, 2023


    $ rocker --x11 osrf/ros:foxy-desktop
    # rviz2


[ Map does not appear anymore in sample demo
autowarefoundation/autoware.universe#2789
](/autowarefoundation/autoware.universe/issues/2789)


Sorry, something went wrong.


To get around this I added to my docker image that is based off of
ubuntu:22.04 the following to update the mesa libs


Hi,


Search


**[ VRichardJP ](/VRichardJP) ** commented  Feb 3, 2023


Open


Closed


* [ GitHub Sponsors  Fund open source developers  ](/sponsors)


By Solution


[ Sign up
](/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-
name%3E%2F%3Crepo-
name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-
repo&source_repo=ros2%2Frviz)


[ @JensVanhooydonck ](https://github.com/JensVanhooydonck)
It does not seem to do the trick on my machine. Here for example a simple
docker file to run rviz2 on foxy/humble:


Clear


    [INFO] [1646095262.732274097] [rviz2]: Creating resource group General
    [INFO] [1646095262.732683793] [rviz2]: Creating resource group OgreInternal
    [INFO] [1646095262.732728981] [rviz2]: Creating resource group OgreAutodetect
    [INFO] [1646095262.732867311] [rviz2]: SceneManagerFactory for type 'DefaultSceneManager' registered.
    [INFO] [1646095262.733170551] [rviz2]: Registering ResourceManager for type Material
    [INFO] [1646095262.733305904] [rviz2]: Registering ResourceManager for type Mesh
    [INFO] [1646095262.733353965] [rviz2]: Registering ResourceManager for type Skeleton
    [INFO] [1646095262.733437457] [rviz2]: MovableObjectFactory for type 'ParticleSystem' registered.
    [INFO] [1646095262.733556504] [rviz2]: ArchiveFactory for archive type FileSystem registered.
    [INFO] [1646095262.733589227] [rviz2]: DDS codec registering
    [INFO] [1646095262.733677757] [rviz2]: ETC codec registering
    [INFO] [1646095262.733710669] [rviz2]: Registering ResourceManager for type HighLevelGpuProgram
    [INFO] [1646095262.733983765] [rviz2]: Registering ResourceManager for type Compositor
    [INFO] [1646095262.734678530] [rviz2]: MovableObjectFactory for type 'Entity' registered.
    [INFO] [1646095262.734729392] [rviz2]: MovableObjectFactory for type 'Light' registered.
    [INFO] [1646095262.734763970] [rviz2]: MovableObjectFactory for type 'BillboardSet' registered.
    [INFO] [1646095262.734806089] [rviz2]: MovableObjectFactory for type 'ManualObject' registered.
    [INFO] [1646095262.734853326] [rviz2]: MovableObjectFactory for type 'BillboardChain' registered.
    [INFO] [1646095262.734886423] [rviz2]: MovableObjectFactory for type 'RibbonTrail' registered.
    [INFO] [1646095262.735690068] [rviz2]: *-*-* OGRE Initialising
    [INFO] [1646095262.735751491] [rviz2]: *-*-* Version 1.12.1 (Rhagorthua)
    [INFO] [1646095262.735896549] [rviz2]: OverlayElementFactory for type Panel registered.
    [INFO] [1646095262.735944107] [rviz2]: OverlayElementFactory for type BorderPanel registered.
    [INFO] [1646095262.735976138] [rviz2]: OverlayElementFactory for type TextArea registered.
    [INFO] [1646095262.736019686] [rviz2]: Registering ResourceManager for type Font
    [INFO] [1646095262.736372277] [rviz2]: Loading library /opt/ros/foxy/opt/rviz_ogre_vendor/lib/OGRE/RenderSystem_GL.so.1.12.1
    [INFO] [1646095262.748955824] [rviz2]: Installing plugin: GL RenderSystem
    [INFO] [1646095262.749119130] [rviz2]: OpenGL Rendering Subsystem created.
    [INFO] [1646095262.751378980] [rviz2]: Plugin successfully installed
    [INFO] [1646095262.751441023] [rviz2]: Loading library /opt/ros/foxy/opt/rviz_ogre_vendor/lib/OGRE/Codec_STBI.so.1.12.1
    [INFO] [1646095262.753082286] [rviz2]: stb_image - v2.19 - public domain JPEG/PNG reader
    [INFO] [1646095262.753223716] [rviz2]: Supported formats: jpeg,jpg,png,bmp,psd,tga,gif,pic,ppm,pgm,hdr
    [INFO] [1646095262.753378726] [rviz2]: CPU Identifier & Features
    [INFO] [1646095262.753413193] [rviz2]: -------------------------
    [INFO] [1646095262.753420051] [rviz2]:  *   CPU ID: GenuineIntel: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    [INFO] [1646095262.753456779] [rviz2]:  *          SSE: yes
    [INFO] [1646095262.753489513] [rviz2]:  *         SSE2: yes
    [INFO] [1646095262.753523735] [rviz2]:  *         SSE3: yes


I've been running into this and finally spent some time digging. It appears to
be a known issue in ubuntu with the update to mesa, see [ bug report
](https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/2004649) .


[ ![@clalancette](https://avatars.githubusercontent.com/u/163000?s=40&v=4)
](/clalancette) [ clalancette ](/clalancette) closed this as [ not planned
](/ros2/rviz/issues?q=is%3Aissue+is%3Aclosed+archived%3Afalse+reason%3A%22not+planned%22)
Won't fix, can't repro, duplicate, stale  Mar 30, 2023


#  Empty grey area instead of 3D grid with rviz2 on WSL & Docker  #834


##  Comments


All reactions


Already on GitHub? [ Sign in
](/login?return_to=%2Fros2%2Frviz%2Fissues%2Fnew%2Fchoose) to your account


Additional navigation options


edited


Development


[
![@VRichardJP](https://avatars.githubusercontent.com/u/18645627?s=80&u=18e9a7e8c90b864fe3a73b283a4081a37cfdbf9a&v=4)
](/VRichardJP)


[
![@hanjianwei92](https://avatars.githubusercontent.com/u/66931100?s=80&u=6e58d175fc454bb960ea40288bb65460d5f0f8b7&v=4)
](/hanjianwei92)


Copy link