Bug 443429 - Plasma Mobile fails to start
Summary: Plasma Mobile fails to start
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-07 09:12 UTC by mightymb17
Modified: 2021-10-07 11:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mightymb17 2021-10-07 09:12:17 UTC
SUMMARY
I'm trying to run plasma mobile on pmOS on a device with a PowerVR GPU, but it fails to load. Here is my log - https://pastebin.com/rqZAMp6j
Only wayland works with powervr so the x11 errors should be ignored.

OBSERVED RESULT
Blank Screen

EXPECTED RESULT
Plasma Mobile should load up

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: postmarketOS
Comment 1 David Edmundson 2021-10-07 09:21:55 UTC
>CreateImageShared: Failed to create buffer
PVRImageDrawableGetNativeInfo: Image get buffers call failed
libEGL warning: DRI2: failed to rebind the previous context
QWaylandGLContext::makeCurrent: eglError: 3009, this: 0xa7c19c50 
 
This implies your graphic drivers are not set up properly. I'm afraid we can't resolve that here.
Comment 2 mightymb17 2021-10-07 09:27:34 UTC
(In reply to David Edmundson from comment #1)
> >CreateImageShared: Failed to create buffer
> PVRImageDrawableGetNativeInfo: Image get buffers call failed
> libEGL warning: DRI2: failed to rebind the previous context
> QWaylandGLContext::makeCurrent: eglError: 3009, this: 0xa7c19c50 
>  
> This implies your graphic drivers are not set up properly. I'm afraid we
> can't resolve that here.

We made Phosh work by patching some stuff in wlroots, can something similar be done for kwin? As powervr is missing some egl extensions i assume, so a workaround.
Comment 3 mightymb17 2021-10-07 09:34:53 UTC
kwin_core: Successfully loaded scripted effect:  "kwin4_effect_dialogparent"
Failed to make EGL context current with GL
GL_OES_texture_border_clamp required
Failed to initialize glamor
Failed to initialize glamor, falling back to sw
CreateImageShared: Failed to create buffer
PVRImageDrawableGetNativeInfo: Image get buffers call failed
libEGL warning: DRI2: failed to rebind the previous context
CreateImageShared: Failed to create buffer
PVRImageDrawableGetNativeInfo: Image get buffers call failed
libEGL warning: DRI2: failed to rebind the previous context
QWaylandGLContext::makeCurrent: eglError: 3009, this: 0xb4a19240 

This seems to be coming from x11, the gpu drivers do not support x11, they support wayland only so this is not the error?
Comment 4 Vlad Zahorodnii 2021-10-07 09:44:57 UTC
Failed to make EGL context current with GL
GL_OES_texture_border_clamp required
Failed to initialize glamor
Failed to initialize glamor, falling back to sw

comes from Xwayland, no idea where the rest (CreateImageShared: Failed to create buffer) comes from
Comment 5 mightymb17 2021-10-07 11:45:27 UTC
(In reply to Vlad Zahorodnii from comment #4)
> Failed to make EGL context current with GL
> GL_OES_texture_border_clamp required
> Failed to initialize glamor
> Failed to initialize glamor, falling back to sw
> 
> comes from Xwayland, no idea where the rest (CreateImageShared: Failed to
> create buffer) comes from

(In reply to mightymb17 from comment #0)
> SUMMARY
> I'm trying to run plasma mobile on pmOS on a device with a PowerVR GPU, but
> it fails to load. Here is my log - https://pastebin.com/rqZAMp6j
> Only wayland works with powervr so the x11 errors should be ignored.
> 
> OBSERVED RESULT
> Blank Screen
> 
> EXPECTED RESULT
> Plasma Mobile should load up
> 
> SOFTWARE/OS VERSIONS
> Linux/KDE Plasma: postmarketOS

(In reply to mightymb17 from comment #0)
> SUMMARY
> I'm trying to run plasma mobile on pmOS on a device with a PowerVR GPU, but
> it fails to load. Here is my log - https://pastebin.com/rqZAMp6j
> Only wayland works with powervr so the x11 errors should be ignored.
> 
> OBSERVED RESULT
> Blank Screen
> 
> EXPECTED RESULT
> Plasma Mobile should load up
> 
> SOFTWARE/OS VERSIONS
> Linux/KDE Plasma: postmarketOS

(In reply to Vlad Zahorodnii from comment #4)
> Failed to make EGL context current with GL
> GL_OES_texture_border_clamp required
> Failed to initialize glamor
> Failed to initialize glamor, falling back to sw
> 
> comes from Xwayland, no idea where the rest (CreateImageShared: Failed to
> create buffer) comes from

That comes in Phosh as well, as gpu driver does not have x11 support