msm8916-mainline / linux-mdss-dsi-panel-driver-generator

Generate Linux DRM panel kernel driver based on QCOM MDSS DSI device tree
GNU General Public License v2.0
53 stars 33 forks source link

Fatal Python error: none_dealloc: deallocating None: bug likely caused by a refcount error in a C extension #30

Closed wonderfulShrineMaidenOfParadise closed 11 months ago

wonderfulShrineMaidenOfParadise commented 1 year ago
$ ./generate.sh
Generating panel drivers...
======== acer-a1-724.sh ========
Parsing: /tmp/linux-panel-drivers/dtb/acer-a1-724.dtb
Parsing: sim_video (Simulator video mode dsi panel)
Generating: sim_video (Simulator video mode dsi panel)
Parsing: hx8394d_720p_video (hx8394d 720p video mode dsi panel)
Generating: hx8394d_720p_video (hx8394d 720p video mode dsi panel)
Fatal Python error: none_dealloc: deallocating None: bug likely caused by a refcount error in a C extension
Python runtime state: finalizing (tstate=0x00007f5e469bd638)

Current thread 0x00007f5e46a99b48 (most recent call first):
  <no Python frame>
./generate.sh: line 38: 172909 Aborted                 "$LMDPDG_DIR/lmdpdg.py" "${OPTIONS[@]}" "$DTB"
$ cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.18_alpha20230329
PRETTY_NAME="Alpine Linux edge"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
$ apk list -I | grep py3
WARNING: opening /mnt/pmbootstrap-packages: No such file or directory
py3-attrs-22.2.0-r0 x86_64 {py3-attrs} (MIT) [installed]
py3-dt-schema-2023.01-r0 x86_64 {py3-dt-schema} (BSD-2-Clause) [installed]
py3-jsonschema-4.7.2-r3 x86_64 {py3-jsonschema} (MIT) [installed]
py3-libfdt-1.6.1-r6 x86_64 {dtc} (GPL-2.0-or-later) [installed]
py3-pathspec-0.11.1-r0 x86_64 {py3-pathspec} (MPL-2.0) [installed]
py3-pyrsistent-0.19.3-r0 x86_64 {py3-pyrsistent} (MIT) [installed]
py3-rfc3987-1.3.8-r3 x86_64 {py3-rfc3987} (GPL-3.0-or-later) [installed]
py3-ruamel.yaml-0.17.21-r1 x86_64 {py3-ruamel.yaml} (MIT) [installed]
py3-ruamel.yaml.clib-0.2.7-r1 x86_64 {py3-ruamel.yaml.clib} (MIT) [installed]
py3-yaml-6.0-r2 x86_64 {py3-yaml} (MIT) [installed]
$ python -V
Python 3.11.3
wonderfulShrineMaidenOfParadise commented 1 year ago
$ cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.17.3
PRETTY_NAME="Alpine Linux v3.17"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
$ apk list -I | grep py3
WARNING: Ignoring /mnt/pmbootstrap-packages: No such file or directory
py3-jsonschema-4.7.2-r2 x86_64 {py3-jsonschema} (MIT) [installed]
py3-rfc3987-1.3.8-r3 x86_64 {py3-rfc3987} (GPL-3.0-or-later) [installed]
py3-ruamel.yaml.clib-0.2.7-r0 x86_64 {py3-ruamel.yaml.clib} (MIT) [installed]
py3-ruamel.yaml-0.17.21-r0 x86_64 {py3-ruamel.yaml} (MIT) [installed]
py3-pyrsistent-0.19.2-r0 x86_64 {py3-pyrsistent} (MIT) [installed]
py3-libfdt-1.6.1-r2 x86_64 {dtc} (GPL-2.0-or-later) [installed]
py3-attrs-22.1.0-r0 x86_64 {py3-attrs} (MIT) [installed]
py3-dt-schema-2023.01-r0 x86_64 {py3-dt-schema} (BSD-2-Clause) [installed]
py3-pathspec-0.10.2-r0 x86_64 {py3-pathspec} (MPL-2.0) [installed]
py3-yaml-6.0-r0 x86_64 {py3-yaml} (MIT) [installed]
$ python -V
Python 3.10.11

Downgrading to Alpine 3.17 seems to be a workaround.

z3ntu commented 11 months ago

@wonderfulShrineMaidenOfParadise Can you provide how to reproduce this? So attaching dtb here or whatever else is needed

wonderfulShrineMaidenOfParadise commented 11 months ago

/tmp/linux-panel-drivers/dtb/acer-a1-724.dtb, according to the outputs? It happened on Alpine edge chroot created by pmbootstrap. I haven't checked this issue recently.

stephan-gh commented 11 months ago

Can get that DTB at https://github.com/msm8916-mainline/linux-panel-drivers/blob/master/dtb/acer-a1-724.dtb FWIW.

wonderfulShrineMaidenOfParadise commented 11 months ago
/ # cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.18.0
PRETTY_NAME="Alpine Linux v3.18"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
/ # apk list -I | grep py3
py3-libfdt-1.7.0-r1 x86_64 {dtc} (GPL-2.0-or-later) [installed]
py3-libfdt-pyc-1.7.0-r1 x86_64 {dtc} (GPL-2.0-or-later) [installed]
/ # python -V
Python 3.11.4

Currently unable to reproduce on latest Alpine edge with Python 3.11.4

z3ntu commented 11 months ago

Cannot reproduce using ./lmdpdg.py acer-a1-724.dtb on Alpine 3.18.3 (latest 3.18), Alpine edge or Arch Linux.

I fixed something similar (or same?) end of 2021: https://git.kernel.org/pub/scm/utils/dtc/dtc.git/commit/?id=d152126bb0293c321cae437bdf7437c393ee3619

Looking further, since this commit is only part of dtc v1.7.0 and the original issue was reported with dtc v1.6.1, I'm going to assume it was fixed with that.