Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iMX8MP chromium-ozone-wayland Segfault with version >86.0.4240.111 #464

Open
rodinia-hsandlar opened this issue Mar 5, 2021 · 1 comment

Comments

@rodinia-hsandlar
Copy link

Hi,

I have been struggling through getting chromium running on an iMX8MP platform and am hoping someone can point me in the right direction here. I have finally gotten chromium running on my hardware, but in the process have identified an issue with all versions in meta-browser beyond 86.0.4240.111.

I had previously seen 86.0.4240.111 working on an iMX8MM platform. I've now migrated to an iMX8MP platform and have been unable to get any version newer than 86.0.4240.111 to function on my board. Specifically, the versions I have tried are: 88.0.4324.150, 86.0.4240.198, and 86.0.4240.111.

In the failing case, the result is --

weston/wayland starts just fine. I can start weston-terminal and I get the expected terminal on-screen and keyboard input is accepted. However, when I try to run chromium via chromium --no-sandbox --in-process-gpu I get a segfault. If I run with WAYLAND_DEBUG=1, the final output lines are in reference to xdg_surface_configure with the last line specifically: [email protected]_synchronization(new id zwp_linux_surface_synchronization_v1@23, wl_surface@17 then it segfaults.

I found this thread #253 which indicates a similar issue with the resolution being "zwp linux dmabuf" is not available. What does that mean? I believe I have enabled all relevant 'dmabuf' options in my kernel config

From the functional version (86.0.4240.111), I can see the next output line should be in reference to wl_viv create_buffer, which must be what is causing the segfault on the newer versions. Would this imply a dma (hardware???) issue? I am very unsure of where to chase this next.

Here is the full WESTON_DEBUG=1 output when trying to launch:

root@nitrogen8mp:~# WAYLAND_DEBUG=1 /usr/bin/chromium  --enable-gpu  --enable-gpu-memory-buffer-video-frames  --enable-accelerated-2d-canvas  --enable-accelerated-vpx-decode  --enable-native-gpu-memory-buffers  --enable-zero-copy  --gpu-no-context-lost  --user-data-dir=/home/root/.chromium/  --disable-infobars  --disable-session-crashed-bubble  --ignore-certificate-errors  --ignore-gpu-blocklist  --no-sandbox  --window-position=0,0  --no-first-run  --in-process-gpu  localhost:8080
[1888606.279]  -> [email protected]_registry(new id wl_registry@2)
[1888606.383]  -> [email protected](new id wl_callback@3)
[1888606.551] [email protected]_id(3)
[1888606.571] [email protected](1, "wl_compositor", 4)
[1888606.598]  -> [email protected](1, "wl_compositor", 4, new id [unknown]@4)
[1888606.641] [email protected](2, "wl_subcompositor", 1)
[1888606.665]  -> [email protected](2, "wl_subcompositor", 1, new id [unknown]@5)
[1888606.695] [email protected](3, "wp_viewporter", 1)
[1888606.721] [email protected](4, "zxdg_output_manager_v1", 2)
[1888606.744] [email protected](5, "wp_presentation", 1)
[1888606.767]  -> [email protected](5, "wp_presentation", 1, new id [unknown]@6)
[1888606.797] [email protected](6, "zwp_alpha_compositing_v1", 1)
[1888606.820] [email protected](7, "zwp_relative_pointer_manager_v1", 1)
[1888606.843] [email protected](8, "zwp_pointer_constraints_v1", 1)
[1888606.865] [email protected](9, "zwp_input_timestamps_manager_v1", 1)
[1888606.887] [email protected](10, "wl_data_device_manager", 3)
[1888606.911]  -> [email protected](10, "wl_data_device_manager", 3, new id [unknown]@7)
[1888606.941] [email protected](11, "wl_shm", 1)
[1888606.965]  -> [email protected](11, "wl_shm", 1, new id [unknown]@8)
[1888606.994] [email protected](12, "wl_viv", 1)
[1888607.017] [email protected](13, "wl_seat", 7)
[1888607.040]  -> [email protected](13, "wl_seat", 4, new id [unknown]@9)
[1888607.070]  -> [email protected]_data_device(new id wl_data_device@10, wl_seat@9)
[1888607.095] [email protected](14, "zwp_linux_dmabuf_v1", 3)
[1888607.118]  -> [email protected](14, "zwp_linux_dmabuf_v1", 3, new id [unknown]@11)
[1888607.149]  -> [email protected](new id wl_callback@12)
[1888607.166] [email protected](15, "weston_direct_display_v1", 1)
[1888607.190] [email protected](16, "zwp_linux_explicit_synchronization_v1", 2)
[1888607.212] [email protected](17, "weston_content_protection", 1)
[1888607.235] [email protected](18, "zwp_hdr10_metadata_v1", 1)
[1888607.258] [email protected](19, "wl_output", 3)
[1888607.282]  -> [email protected](19, "wl_output", 3, new id [unknown]@13)
[1888607.314] [email protected](20, "zwp_input_panel_v1", 1)
[1888607.337] [email protected](21, "zwp_input_method_v1", 1)
[1888607.360] [email protected](22, "zwp_text_input_manager_v1", 1)
[1888607.383]  -> [email protected](22, "zwp_text_input_manager_v1", 1, new id [unknown]@14)
[1888607.413] [email protected](23, "xdg_wm_base", 1)
[1888607.435]  -> [email protected](23, "xdg_wm_base", 1, new id [unknown]@15)
[1888607.465] [email protected](24, "zxdg_shell_v6", 1)
[1888607.489]  -> [email protected](24, "zxdg_shell_v6", 1, new id [unknown]@16)
[1888607.519] [email protected](25, "wl_shell", 1)
[1888607.541] [email protected](26, "weston_desktop_shell", 1)
[1888607.564] [email protected](27, "weston_screenshooter", 1)
[1888607.587] [email protected](6)
[1888607.729] [email protected]_id(12)
[1888607.747] [email protected](2)
[1888607.763]  -> [email protected]_keyboard(new id wl_keyboard@3)
[1888607.807] [email protected]("default")
[1888607.823] [email protected](875713089, 0, 0)
[1888607.849] [email protected](875713112, 0, 0)
[1888607.873] [email protected](909199186, 0, 0)
[1888607.896] [email protected](1448695129, 0, 0)
[1888607.919] [email protected](842094158, 0, 0)
[1888607.941] [email protected](842093913, 0, 0)
[1888607.964] [email protected](6)
[1888607.978] [email protected](0, 0, 94, 150, 0, "unknown", "unknown", 0)
[1888608.021] [email protected](1)
[1888608.036] [email protected](3, 800, 1280, 71475)
[1888608.062] [email protected]()
[1888638.233]  -> [email protected]_registry(new id wl_registry@12)
[1888638.322]  -> [email protected](new id wl_callback@17)
[1888638.878] [email protected]_id(17)
[1888638.946] [email protected](1, "wl_compositor", 4)
[1888638.969] [email protected](2, "wl_subcompositor", 1)
[1888639.130] [email protected](3, "wp_viewporter", 1)
[1888639.246] [email protected](4, "zxdg_output_manager_v1", 2)
[1888639.290] [email protected](5, "wp_presentation", 1)
[1888639.312] [email protected](6, "zwp_alpha_compositing_v1", 1)
[1888639.340] [email protected](7, "zwp_relative_pointer_manager_v1", 1)
[1888639.362] [email protected](8, "zwp_pointer_constraints_v1", 1)
[1888639.386] [email protected](9, "zwp_input_timestamps_manager_v1", 1)
[1888639.405] [email protected](10, "wl_data_device_manager", 3)
[1888639.424] [email protected](11, "wl_shm", 1)
[1888639.443] [email protected](12, "wl_viv", 1)
[1888639.468]  -> [email protected](12, "wl_viv", 1, new id [unknown]@18)
[1888639.496] [email protected](13, "wl_seat", 7)
[1888639.516] [email protected](14, "zwp_linux_dmabuf_v1", 3)
[1888639.535] [email protected](15, "weston_direct_display_v1", 1)
[1888639.554] [email protected](16, "zwp_linux_explicit_synchronization_v1", 2)
[1888639.624]  -> [email protected](16, "zwp_linux_explicit_synchronization_v1", 1, new id [unknown]@19)
[1888639.652] [email protected](17, "weston_content_protection", 1)
[1888639.673] [email protected](18, "zwp_hdr10_metadata_v1", 1)
[1888639.692] [email protected](19, "wl_output", 3)
[1888639.712] [email protected](20, "zwp_input_panel_v1", 1)
[1888639.731] [email protected](21, "zwp_input_method_v1", 1)
[1888639.750] [email protected](22, "zwp_text_input_manager_v1", 1)
[1888639.769] [email protected](23, "xdg_wm_base", 1)
[1888639.826] [email protected](24, "zxdg_shell_v6", 1)
[1888639.846] [email protected](25, "wl_shell", 1)
[1888639.865] [email protected](26, "weston_desktop_shell", 1)
[1888639.885] [email protected](27, "weston_screenshooter", 1)
[1888639.904] [email protected](6)
[1888713.446]  -> [email protected]_surface(new id wl_surface@17)
[1888713.528] [email protected]_info(40, 400)
[1888713.553] [email protected](1, fd 71, 47218)
[1888721.346]  -> [email protected]_region(new id wl_region@20)
[1888721.403]  -> [email protected](0, 0, 780, 1260)
[1888721.430]  -> [email protected]_opaque_region(wl_region@20)
[1888721.447]  -> [email protected]()
[1888781.734]  -> [email protected]_xdg_surface(new id xdg_surface@21, wl_surface@17)
[1888781.808]  -> [email protected]_toplevel(new id xdg_toplevel@22)
[1888781.825]  -> [email protected]()
[1888781.837]  -> [email protected]_app_id("Chromium-browser")
[1888781.855]  -> [email protected]_title("New Tab - Chromium")
[1888781.868]  -> [email protected]_fullscreen()
[1888781.878]  -> [email protected]_maximized()
[1888783.515]  -> [email protected]_fullscreen(nil)
[1888786.896] [email protected]_id(20)
[1888786.954] [email protected](800, 1280, array)
[1888786.985]  -> [email protected]_region(new id wl_region@20)
[1888787.004]  -> [email protected](0, 0, 800, 1280)
[1888787.029]  -> [email protected]_opaque_region(wl_region@20)
[1888787.047]  -> [email protected]()
[1888788.427]  -> [email protected]_window_geometry(0, 0, 800, 1280)
[1888788.516] [email protected](7)
[1888788.533]  -> [email protected]_configure(7)
[1888820.175]  -> [email protected]_synchronization(new id zwp_linux_surface_synchronization_v1@23, wl_surface@17)
Segmentation fault

Any help on this would be greatly appreciated.

Thanks!

@msisov
Copy link
Collaborator

msisov commented Mar 5, 2021

I see you have zwp dmabuf extension available.

It’d help if you can get a stack trace to understand the reason why it failed. Alternatively, you can always try the latest version of chromium as ozone/wayland is under heavy development and things can get broken and fixed later, but there might be a gap between fixes as officially chrome releases do not support wayland yet and QA doesn’t test wayland

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants