Bug 268911 - multimedia/kodi: [suspend/resume] Kodi fails to start after resume
Summary: multimedia/kodi: [suspend/resume] Kodi fails to start after resume
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2023-01-12 19:45 UTC by learnux
Modified: 2023-01-14 17:02 UTC (History)
2 users (show)

See Also:
yzrh: maintainer-feedback+


Attachments
kodi crashlog file (37.34 KB, text/plain)
2023-01-12 19:45 UTC, learnux
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description learnux 2023-01-12 19:45:56 UTC
Created attachment 239423 [details]
kodi crashlog file

Kodi crashes at startup:
~> kodi 
libEGL warning: DRI2: failed to authenticate
libva info: VA-API version 1.17.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
libGL error: failed to authenticate magic 1
libGL error: failed to load driver: iris
libGL error: failed to authenticate magic 1
libGL error: failed to load driver: iris
libva info: VA-API version 1.17.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
Crash report available at /home/user/kodi_crashlog-20230112_145935.log

~> lldb -c kodi.bin.core -- /usr/local/lib/kodi/kodi.bin 
(lldb) target create "/usr/local/lib/kodi/kodi.bin" --core "kodi.bin.core"
Core file '/home/f.alexis/kodi.bin.core' (x86_64) was loaded.
(lldb) bt
This version of LLDB has no plugin for the language "assembler". Inspection of frame variables will be limited.
* thread #1, name = 'kodi.bin', stop reason = signal SIGSEGV
  * frame #0: 0x00000008047eae84 libc.so.7`strlen at strlen.S:67
    frame #1: 0x0000000805a79c8c libc++.so.1`std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::append(char const*) [inlined] std::__1::char_traits<char>::length(__s=0x0000000000000000) at __string:338:53
    frame #2: 0x0000000805a79c84 libc++.so.1`std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::append(this="", __s=0x0000000000000000) at string:2759:24
    frame #3: 0x00000000010a7a74 kodi.bin`LogGraphicsInfo() + 612
    frame #4: 0x0000000000d13127 kodi.bin`CRenderSystemGL::InitRenderSystem() + 391
    frame #5: 0x00000000013a3ee9 kodi.bin`CApplication::InitWindow(RESOLUTION) + 105
    frame #6: 0x00000000013a39bb kodi.bin`CApplication::CreateGUI() + 1467
    frame #7: 0x00000000010e91de kodi.bin`XBMC_Run + 142
    frame #8: 0x0000000000b9dd15 kodi.bin`main + 149
    frame #9: 0x0000000000b9da80 kodi.bin`_start + 256

~> uname -a
FreeBSD host.local 13.1-RELEASE-p3 FreeBSD 13.1-RELEASE-p3 GENERIC amd64
~> freebsd-version -kru
13.1-RELEASE-p3
13.1-RELEASE-p3
13.1-RELEASE-p5

~> pkg info -x libva libglu mesa
libva-2.17.0
libva-glx-2.17.0
libva-intel-driver-2.4.1_1
libva-intel-hybrid-driver-1.0.2_3
libva-intel-media-driver-22.4.3_1
libva-utils-2.17.0
libva-vdpau-driver-0.7.4_10
libGLU-9.0.2_1
mesa-demos-8.4.0_3
mesa-dri-22.3.2_1
mesa-libs-22.3.2_1

~> env | grep -i xdg
XDG_SESSION_SERVICE=gdm-password
XDG_MENU_PREFIX=gnome-
XDG_SESSION_TYPE=x11
XDG_CURRENT_DESKTOP=GNOME
XDG_SESSION_DESKTOP=gnome
Comment 1 yzrh 2023-01-13 14:47:20 UTC
Could you also try `glxinfo -B'?
Comment 2 learnux 2023-01-13 20:36:42 UTC
Before suspend:

~> glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) UHD Graphics 620 (KBL GT2) (0x5917)
    Version: 22.3.2
    Accelerated: yes
    Video memory: 16384MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 620 (KBL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.3.2
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.3.2
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.3.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

~> vainfo 
Trying display: wayland
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Trying display: x11
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.17 (libva 2.17.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.4.3 (intel-media-22.4.3)
vainfo: Supported profile and entrypoints
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointStats
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointFEI

      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointFEI
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointFEI
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP8Version0_3          : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointFEI
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD

After resume:

~> glxinfo -B
name of display: :0
libGL error: failed to authenticate magic 1
libGL error: failed to load driver: iris
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa/X.org (0xffffffff)
    Device: llvmpipe (LLVM 15.0.6, 256 bits) (0xffffffff)
    Version: 22.3.2
    Accelerated: no
    Video memory: 16384MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 4.5
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Mesa/X.org
OpenGL renderer string: llvmpipe (LLVM 15.0.6, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 22.3.2
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.5 (Compatibility Profile) Mesa 22.3.2
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.3.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

~> vainfo
Trying display: wayland
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Trying display: x11
libva info: VA-API version 1.17.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
vaInitialize failed with error code -1 (unknown libva error),exit
Comment 3 yzrh 2023-01-14 12:04:45 UTC
After resuming from ACPI S3, the renderer reads llvmpipe.
Are you using drm-kmod?
Comment 4 learnux 2023-01-14 14:00:46 UTC
Yes i'm using drm-kmod.

~> pkg info -x drm
drm-510-kmod-5.10.113_8
drm-kmod-20220907_1
libdrm-2.4.114,1
linux-c7-libdrm-2.4.97
Comment 5 yzrh 2023-01-14 15:44:36 UTC
It may be related to Bug 254472.  I don't think the problem
is Kodi specific.