flathub / org.mixxx.Mixxx

https://flathub.org/apps/details/org.mixxx.Mixxx
7 stars 6 forks source link

App doesn't run. Error "trap invalid opcode ip ..." #12

Closed jgarciao closed 4 years ago

jgarciao commented 4 years ago

I'm trying to run this app in a x86_64 computer with Debian 10 (Buster) and flatpak 1.2.4 but it crashes instantly when starting. It crashes also in another laptop with fedora Silverblue

When running in the command line the application stops right away

$ flatpak run org.mixxx.Mixxx 

This is what I see in the logs running sudo journalctl -f :

de set. 18 09:07:29 ws035938 polkitd(authority=local)[585]: Registered Authentication Agent for unix-process:8019:150852 (system bus name :1.2579 [flatpak run org.mixxx.Mixxx], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale ca_ES.UTF-8)
de set. 18 09:07:29 ws035938 systemd[1766]: Started flatpak-org.mixxx.Mixxx-8019.scope.
de set. 18 09:07:29 ws035938 polkitd(authority=local)[585]: Unregistered Authentication Agent for unix-process:8019:150852 (system bus name :1.2579, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale ca_ES.UTF-8) (disconnected from bus)
de set. 18 09:07:29 ws035938 kernel: traps: mixxx[8032] trap invalid opcode ip:55f60efac7fd sp:7ffef44305e0 error:0 in mixxx[55f60eef0000+8a0000]
de set. 18 09:07:29 ws035938 systemd[1766]: flatpak-org.mixxx.Mixxx-8019.scope: Succeeded.

I'm running the latest version published yesterday. The same error happened two days ago with the previous version

    $ flatpak info org.mixxx.Mixxx

     Mixxx DJ Software - Everything you need to perform live DJ mixes

          ID: org.mixxx.Mixxx
         Ref: app/org.mixxx.Mixxx/x86_64/stable
        Arch: x86_64
      Branch: stable
     License: GPL-2.0
      Origin: flathub
      Collection: org.flathub.Stable
      Installation: system
      Installed: 63,0 MB
      Runtime: org.kde.Platform/x86_64/5.12
      Sdk: org.kde.Sdk/x86_64/5.12
      Commit: 5a5dfdef378d0d30ccc7c1dcddc06a71e4b891eee9f0e986572830097f236870
      Parent: b6fd7c5e4f6e9b4bd5776677337f92ce9514ebcf3ccf2a3fa6bc69b65035a4d8
      Subject: Update to 2.2.2 (0b2e80bc)
      Date: 2019-09-17 12:28:54 +0000

This is the processor I'm using:

$ cat  /proc/cpuinfo 
processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model       : 58
model name  : Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
stepping    : 9
microcode   : 0x12
cpu MHz     : 1596.330
cache size  : 6144 KB
physical id : 0
siblings    : 4
core id     : 0
cpu cores   : 4
apicid      : 0
initial apicid  : 0
fpu     : yes
fpu_exception   : yes
cpuid level : 13
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts
bugs        : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
bogomips    : 6385.26
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor   : 1
vendor_id   : GenuineIntel
cpu family  : 6
model       : 58
model name  : Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
stepping    : 9
microcode   : 0x12
cpu MHz     : 1596.539
cache size  : 6144 KB
physical id : 0
siblings    : 4
core id     : 1
cpu cores   : 4
apicid      : 2
initial apicid  : 2
fpu     : yes
fpu_exception   : yes
cpuid level : 13
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts
bugs        : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
bogomips    : 6385.26
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor   : 2
vendor_id   : GenuineIntel
cpu family  : 6
model       : 58
model name  : Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
stepping    : 9
microcode   : 0x12
cpu MHz     : 1596.533
cache size  : 6144 KB
physical id : 0
siblings    : 4
core id     : 2
cpu cores   : 4
apicid      : 4
initial apicid  : 4
fpu     : yes
fpu_exception   : yes
cpuid level : 13
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts
bugs        : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
bogomips    : 6385.26
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor   : 3
vendor_id   : GenuineIntel
cpu family  : 6
model       : 58
model name  : Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
stepping    : 9
microcode   : 0x12
cpu MHz     : 1596.319
cache size  : 6144 KB
physical id : 0
siblings    : 4
core id     : 3
cpu cores   : 4
apicid      : 6
initial apicid  : 6
fpu     : yes
fpu_exception   : yes
cpuid level : 13
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts
bugs        : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
bogomips    : 6385.26
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:
hellpe commented 4 years ago

I'm having a very similar issue with GNOME 3.34 and flatpak 1.5.0-1 on Arch Linux. Here is my output of sudo journalctl -f:

oct. 23 20:43:39 Eggman systemd[32411]: Started flatpak-org.mixxx.Mixxx-40547.scope.
oct. 23 20:43:39 Eggman polkitd[514]: Unregistered Authentication Agent for unix-process:40547:3125271 (system bus name :1.12944, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale fr_FR.UTF-8) (disconnected from bus)
oct. 23 20:43:39 Eggman audit[40558]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=5 pid=40558 comm="mixxx" exe="/app/bin/mixxx" sig=4 res=1
oct. 23 20:43:39 Eggman kernel: traps: mixxx[40558] trap invalid opcode ip:556f0a2b07fd sp:7fffce5843c0 error:0 in mixxx[556f0a1f4000+8a0000]
oct. 23 20:43:39 Eggman kernel: audit: type=1701 audit(1571856219.297:165): auid=1000 uid=1000 gid=1000 ses=5 pid=40558 comm="mixxx" exe="/app/bin/mixxx" sig=4 res=1
oct. 23 20:43:39 Eggman systemd[1]: Started Process Core Dump (PID 40560/UID 0).
oct. 23 20:43:39 Eggman audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@7-40560-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
oct. 23 20:43:39 Eggman kernel: audit: type=1130 audit(1571856219.304:166): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@7-40560-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
oct. 23 20:43:39 Eggman systemd[32411]: flatpak-org.mixxx.Mixxx-40547.scope: Succeeded.
oct. 23 20:43:39 Eggman systemd-coredump[40561]: Process 40558 (mixxx) of user 1000 dumped core.

                                                 Stack trace of thread 2:
                                                 #0  0x0000556f0a2b07fd n/a (/app/bin/mixxx)
                                                 #1  0x0000556f0aa939ad n/a (/app/bin/mixxx)
Erick555 commented 4 years ago

I believe this is caused by the fact this app is compiled with optimize=native which means it can run only on similar cpu that it was build. https://github.com/flathub/org.mixxx.Mixxx/pull/14 should fix this.

jgarciao commented 4 years ago

Now it works well. Thank you!

tjbillion commented 1 year ago

make menuselect in your asterisk package deselect "don't optimize" make make install

it should work