After installing krita from beta channel, krita crashes when opening the snap.

Bug #1620650 reported by Michael Hall
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Calligra
Unknown
Medium
snapd
Confirmed
Undecided
Unassigned

Bug Description

After installing krita from beta channel, krita crashes when opening the snap.

    user@host:~$ sudo snap install --beta krita
    98.17 MB / 98.17 MB [======================================] 100.00 % 1.70 MB/s

    krita (beta) 3.0.1-beta-snap13 from 'krita' installed

    user@host:~$ krita
    krita.lib.pigment: Legacy integer arithmetics implementation
    XmbTextListToTextProperty result code -2
    QOpenGLFunctions created with non-current context
    Segmentation fault (core dumped)

Additional info

    user@host:~$ lsb_release -a
    LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:printing-9.20160110ubuntu0.2-amd64:printing-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
    Distributor ID: Ubuntu
    Description: Ubuntu 16.04.1 LTS
    Release: 16.04
    Codename: xenial

    user@host:~$ snap --version
    snap 2.13+ppa207-1
    snapd 2.13+ppa207-1
    series 16
    ubuntu 16.04

    user@host:~$ dpkg -l | grep nvidia
    ii nvidia-364 364.19-0ubuntu0~gpu16.04.6 amd64 NVIDIA binary driver - version 364.19
    ii nvidia-opencl-icd-364 364.19-0ubuntu0~gpu16.04.6 amd64 NVIDIA OpenCL ICD
    ii nvidia-prime 0.8.2 amd64 Tools to enable NVIDIA's Prime
    ii nvidia-settings 370.23-0ubuntu0~gpu16.04.1 amd64 Tool for configuring the NVIDIA graphics

Reproducible: Always

Steps to Reproduce:
1. sudo snap install --beta krita
2. krita

Actual Results:
    krita.lib.pigment: Legacy integer arithmetics implementation
    XmbTextListToTextProperty result code -2
    QOpenGLFunctions created with non-current context
    Segmentation fault (core dumped)

Expected Results:
It should just open Krita!

Revision history for this message
In , erio (eri0) wrote :

After installing krita from beta channel, krita crashes when opening the snap.

    user@host:~$ sudo snap install --beta krita
    98.17 MB / 98.17 MB [======================================] 100.00 % 1.70 MB/s

    krita (beta) 3.0.1-beta-snap13 from 'krita' installed

    user@host:~$ krita
    krita.lib.pigment: Legacy integer arithmetics implementation
    XmbTextListToTextProperty result code -2
    QOpenGLFunctions created with non-current context
    Segmentation fault (core dumped)

Additional info

    user@host:~$ lsb_release -a
    LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:printing-9.20160110ubuntu0.2-amd64:printing-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
    Distributor ID: Ubuntu
    Description: Ubuntu 16.04.1 LTS
    Release: 16.04
    Codename: xenial

    user@host:~$ snap --version
    snap 2.13+ppa207-1
    snapd 2.13+ppa207-1
    series 16
    ubuntu 16.04

    user@host:~$ dpkg -l | grep nvidia
    ii nvidia-364 364.19-0ubuntu0~gpu16.04.6 amd64 NVIDIA binary driver - version 364.19
    ii nvidia-opencl-icd-364 364.19-0ubuntu0~gpu16.04.6 amd64 NVIDIA OpenCL ICD
    ii nvidia-prime 0.8.2 amd64 Tools to enable NVIDIA's Prime
    ii nvidia-settings 370.23-0ubuntu0~gpu16.04.1 amd64 Tool for configuring the NVIDIA graphics

Reproducible: Always

Steps to Reproduce:
1. sudo snap install --beta krita
2. krita

Actual Results:
    krita.lib.pigment: Legacy integer arithmetics implementation
    XmbTextListToTextProperty result code -2
    QOpenGLFunctions created with non-current context
    Segmentation fault (core dumped)

Expected Results:
It should just open Krita!

Revision history for this message
In , Boudewijn (boud) wrote :

Ah, I see that you're using an Nvidia gpu -- I think that's still not supported by Ubuntu.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This looks like a duplicate, let me find the other bug.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Ah, I just heard about this bug on IRC.

Is it the case that the reporter is using dual intel/nvidia graphics?
I don't know how this operates today and I don't have hardware to reproduce this.

Probably related: https://bugs.launchpad.net/snap-confine/+bug/1615248

Changed in calligra:
importance: Unknown → Medium
Revision history for this message
erio (eri0) wrote :

@Zygmunt Krynicki (zyga)

user@host:~$ ls /usr/lib -l | grep " nvidia-"
drwxr-xr-x 6 root root 4096 Jul 30 08:21 nvidia-364
drwxr-xr-x 2 root root 4096 Jul 30 08:21 nvidia-364-prime
user@host:~$ dpkg -l |grep ^ii| grep nvidia-[0-9]
ii nvidia-364 364.19-0ubuntu0~gpu16.04.6 amd64 NVIDIA binary driver - version 364.19

I only have a single link. But it's a dual intel/nvidia graphics notebook.

Revision history for this message
John Lenton (chipaca) wrote :

FWIW dual (PRIME) setups are somewhat supported, you need to discard the mount namespace (via /usr/lib/snapd/snap-discard-ns) if without rebooting you started a snap, switched PRIME profile, and then tried to start the snap again.

Also it's unclear whether our autodetection works if you're using the nvidia card for opencl work while using the intel card for graphics.

Changed in snappy:
status: New → Confirmed
Michael Vogt (mvo)
affects: snappy → snapd
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.