This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MALI: eglInitialize() fails

Hello,

the eglInitialize() function fails on the wayland odroid xu3 latest r12p0 driver.

Here's how to reproduce the issue:

* start weston (using the drm backend) => it will get assigned to socket "wayland-0"

* from weston-terminal, start another weston instance (using the wayland backend) => it will get assigned to socket "wayland-1"

* in the second weston instance, start weston-simple-egl with WAYLAND_DISPLAY=wayland-0 => it will work and weston-simple-egl will run on the main weston instance

* in the second weston instance, start weston-simple-egl with WAYLAND_DISPLAY=wayland-1 => after binding the display, getting a correct screen, the code will fail at eglInitialize()

Is there any fix I can try?

Thanks.

Parents
  • This is the output of wayland-info, in case this helps:

    odroid@odroid:~$ WAYLAND_DISPLAY=wayland-0 weston-info
    interface: 'wl_compositor', version: 4, name: 1
    interface: 'wl_subcompositor', version: 1, name: 2
    interface: 'wp_viewporter', version: 1, name: 3
    interface: 'wp_presentation', version: 1, name: 4
            presentation clock id: 1 (CLOCK_MONOTONIC)
    interface: 'zwp_relative_pointer_manager_v1', version: 1, name: 5
    interface: 'zwp_pointer_constraints_v1', version: 1, name: 6
    interface: 'wl_data_device_manager', version: 3, name: 7
    interface: 'wl_shm', version: 1, name: 8
            formats: RGB565 XRGB8888 ARGB8888
    interface: 'mali_buffer_sharing', version: 4, name: 9
    interface: 'wl_seat', version: 5, name: 10
            name: default
            capabilities: pointer keyboard
            keyboard repeat rate: 40
            keyboard repeat delay: 400
    interface: 'wl_output', version: 3, name: 11
            x: 0, y: 0, scale: 1,
            physical_width: 530 mm, physical_height: 290 mm,
            make: 'ACR', model: 'V243HL',
            subpixel_orientation: unknown, output_transform: normal,
            mode:
                    width: 1920 px, height: 1080 px, refresh: 60.000 Hz,
                    flags: current preferred
            mode:
                    width: 1280 px, height: 1024 px, refresh: 60.020 Hz,
                    flags:
            mode:
                    width: 1440 px, height: 900 px, refresh: 59.901 Hz,
                    flags:
            mode:
                    width: 1280 px, height: 800 px, refresh: 59.910 Hz,
                    flags:
            mode:
                    width: 1152 px, height: 864 px, refresh: 75.000 Hz,
                    flags:
            mode:
                    width: 1024 px, height: 768 px, refresh: 60.004 Hz,
                    flags:
            mode:
                    width: 800 px, height: 600 px, refresh: 60.317 Hz,
                    flags:
            mode:
                    width: 800 px, height: 600 px, refresh: 56.250 Hz,
                    flags:
    interface: 'zwp_input_panel_v1', version: 1, name: 12
    interface: 'zwp_input_method_v1', version: 1, name: 13
    interface: 'zwp_text_input_manager_v1', version: 1, name: 14
    interface: 'zxdg_shell_v6', version: 1, name: 15
    interface: 'xdg_shell', version: 1, name: 16
    interface: 'wl_shell', version: 1, name: 17
    interface: 'weston_desktop_shell', version: 1, name: 18
    interface: 'weston_screenshooter', version: 1, name: 19
    
    odroid@odroid:~$
    
    odroid@odroid:~$ WAYLAND_DISPLAY=wayland-1 weston-info
    interface: 'wl_compositor', version: 4, name: 1
    interface: 'wl_subcompositor', version: 1, name: 2
    interface: 'wp_viewporter', version: 1, name: 3
    interface: 'wp_presentation', version: 1, name: 4
            presentation clock id: 4 (CLOCK_MONOTONIC_RAW)
    interface: 'zwp_relative_pointer_manager_v1', version: 1, name: 5
    interface: 'zwp_pointer_constraints_v1', version: 1, name: 6
    interface: 'wl_data_device_manager', version: 3, name: 7
    interface: 'wl_shm', version: 1, name: 8
            formats: RGB565 XRGB8888 ARGB8888
    interface: 'wl_seat', version: 5, name: 9
            name: default
            capabilities: pointer keyboard
            keyboard repeat rate: 40
            keyboard repeat delay: 400
    interface: 'mali_buffer_sharing', version: 4, name: 10
    interface: 'wl_output', version: 3, name: 11
            x: 0, y: 0, scale: 1,
            physical_width: 1024 mm, physical_height: 640 mm,
            make: 'wayland', model: 'none',
            subpixel_orientation: unknown, output_transform: normal,
            mode:
                    width: 1024 px, height: 640 px, refresh: 60.000 Hz,
                    flags: current preferred
    interface: 'zwp_input_panel_v1', version: 1, name: 12
    interface: 'zwp_input_method_v1', version: 1, name: 13
    interface: 'zwp_text_input_manager_v1', version: 1, name: 14
    interface: 'zxdg_shell_v6', version: 1, name: 15
    interface: 'xdg_shell', version: 1, name: 16
    interface: 'wl_shell', version: 1, name: 17
    interface: 'weston_desktop_shell', version: 1, name: 18
    interface: 'weston_screenshooter', version: 1, name: 19

Reply
  • This is the output of wayland-info, in case this helps:

    odroid@odroid:~$ WAYLAND_DISPLAY=wayland-0 weston-info
    interface: 'wl_compositor', version: 4, name: 1
    interface: 'wl_subcompositor', version: 1, name: 2
    interface: 'wp_viewporter', version: 1, name: 3
    interface: 'wp_presentation', version: 1, name: 4
            presentation clock id: 1 (CLOCK_MONOTONIC)
    interface: 'zwp_relative_pointer_manager_v1', version: 1, name: 5
    interface: 'zwp_pointer_constraints_v1', version: 1, name: 6
    interface: 'wl_data_device_manager', version: 3, name: 7
    interface: 'wl_shm', version: 1, name: 8
            formats: RGB565 XRGB8888 ARGB8888
    interface: 'mali_buffer_sharing', version: 4, name: 9
    interface: 'wl_seat', version: 5, name: 10
            name: default
            capabilities: pointer keyboard
            keyboard repeat rate: 40
            keyboard repeat delay: 400
    interface: 'wl_output', version: 3, name: 11
            x: 0, y: 0, scale: 1,
            physical_width: 530 mm, physical_height: 290 mm,
            make: 'ACR', model: 'V243HL',
            subpixel_orientation: unknown, output_transform: normal,
            mode:
                    width: 1920 px, height: 1080 px, refresh: 60.000 Hz,
                    flags: current preferred
            mode:
                    width: 1280 px, height: 1024 px, refresh: 60.020 Hz,
                    flags:
            mode:
                    width: 1440 px, height: 900 px, refresh: 59.901 Hz,
                    flags:
            mode:
                    width: 1280 px, height: 800 px, refresh: 59.910 Hz,
                    flags:
            mode:
                    width: 1152 px, height: 864 px, refresh: 75.000 Hz,
                    flags:
            mode:
                    width: 1024 px, height: 768 px, refresh: 60.004 Hz,
                    flags:
            mode:
                    width: 800 px, height: 600 px, refresh: 60.317 Hz,
                    flags:
            mode:
                    width: 800 px, height: 600 px, refresh: 56.250 Hz,
                    flags:
    interface: 'zwp_input_panel_v1', version: 1, name: 12
    interface: 'zwp_input_method_v1', version: 1, name: 13
    interface: 'zwp_text_input_manager_v1', version: 1, name: 14
    interface: 'zxdg_shell_v6', version: 1, name: 15
    interface: 'xdg_shell', version: 1, name: 16
    interface: 'wl_shell', version: 1, name: 17
    interface: 'weston_desktop_shell', version: 1, name: 18
    interface: 'weston_screenshooter', version: 1, name: 19
    
    odroid@odroid:~$
    
    odroid@odroid:~$ WAYLAND_DISPLAY=wayland-1 weston-info
    interface: 'wl_compositor', version: 4, name: 1
    interface: 'wl_subcompositor', version: 1, name: 2
    interface: 'wp_viewporter', version: 1, name: 3
    interface: 'wp_presentation', version: 1, name: 4
            presentation clock id: 4 (CLOCK_MONOTONIC_RAW)
    interface: 'zwp_relative_pointer_manager_v1', version: 1, name: 5
    interface: 'zwp_pointer_constraints_v1', version: 1, name: 6
    interface: 'wl_data_device_manager', version: 3, name: 7
    interface: 'wl_shm', version: 1, name: 8
            formats: RGB565 XRGB8888 ARGB8888
    interface: 'wl_seat', version: 5, name: 9
            name: default
            capabilities: pointer keyboard
            keyboard repeat rate: 40
            keyboard repeat delay: 400
    interface: 'mali_buffer_sharing', version: 4, name: 10
    interface: 'wl_output', version: 3, name: 11
            x: 0, y: 0, scale: 1,
            physical_width: 1024 mm, physical_height: 640 mm,
            make: 'wayland', model: 'none',
            subpixel_orientation: unknown, output_transform: normal,
            mode:
                    width: 1024 px, height: 640 px, refresh: 60.000 Hz,
                    flags: current preferred
    interface: 'zwp_input_panel_v1', version: 1, name: 12
    interface: 'zwp_input_method_v1', version: 1, name: 13
    interface: 'zwp_text_input_manager_v1', version: 1, name: 14
    interface: 'zxdg_shell_v6', version: 1, name: 15
    interface: 'xdg_shell', version: 1, name: 16
    interface: 'wl_shell', version: 1, name: 17
    interface: 'weston_desktop_shell', version: 1, name: 18
    interface: 'weston_screenshooter', version: 1, name: 19

Children
No data