Kodi crashes upon start, downgrading nvidia-*304 fixes it

Bug #1642134 reported by nuaimat
38
This bug affects 6 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-340 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I am on Ubuntu 16.04.1 LTS

after upgrading packages to version 304.132-0ubuntu2
- nvidia-304
- nvidia-current
- nvidia-libopencl1-304
- nvidia-opencl-icd-304

Kodi on ubuntu crashes and fails to start, after downgrading to version 304.131-0ubuntu3 and reboot, kodi started successfully.

Kodi crash log:

############# Kodi CRASH LOG ###############

################ SYSTEM INFO ################
 Date: Sun Nov 13 02:00:15 CST 2016
 Kodi Options:
 Arch: x86_64
 Kernel: Linux 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016
 Release: Ubuntu 16.04.1 LTS (Xenial Xerus)
############## END SYSTEM INFO ##############

############### STACK TRACE #################
=====> Core file: /home/nuaimat/core (2016-11-13 02:00:15.144874481 -0600)
        =========================================
[New LWP 1383]
[New LWP 1385]
[New LWP 1386]
[New LWP 1387]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/lib/kodi/kodi.bin --standalone'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000000000000070 in ?? ()
[Current thread is 1 (Thread 0x7fa52c806980 (LWP 1383))]

Thread 4 (Thread 0x7fa508e83700 (LWP 1387)):
#0 0x00007fa524cb4357 in ioctl () at ../sysdeps/unix/syscall-template.S:84
#1 0x00007fa527977a52 in ?? () from /usr/lib/x86_64-linux-gnu/libasound.so.2
#2 0x0000000000abf241 in CAESinkALSA::AddPackets(unsigned char**, unsigned int, unsigned int) ()
#3 0x0000000000a8cf26 in ActiveAE::CActiveAESink::OutputSamples(ActiveAE::CSampleBuffer*) ()
#4 0x0000000000a8e062 in ActiveAE::CActiveAESink::StateMachine(int, Actor::Protocol*, Actor::Message*) ()
#5 0x0000000000a8ea97 in ActiveAE::CActiveAESink::Process() ()
#6 0x0000000001d2ac6f in CThread::Action() ()
#7 0x0000000001d2af2f in CThread::staticThread(void*) ()
#8 0x00007fa52aff170a in start_thread (arg=0x7fa508e83700) at pthread_create.c:333
#9 0x00007fa524cbe82d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7fa509684700 (LWP 1386)):
#0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1 0x0000000000a8af77 in ActiveAE::CActiveAE::Process() ()
#2 0x0000000001d2ac6f in CThread::Action() ()
#3 0x0000000001d2af2f in CThread::staticThread(void*) ()
#4 0x00007fa52aff170a in start_thread (arg=0x7fa509684700) at pthread_create.c:333
#5 0x00007fa524cbe82d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7fa50a4ac700 (LWP 1385)):
#0 0x00007fa524cb2b5d in poll () at ../sysdeps/unix/syscall-template.S:84
#1 0x0000000001027a2b in CFDEventMonitor::Process() ()
#2 0x0000000001d2ac6f in CThread::Action() ()
#3 0x0000000001d2af2f in CThread::staticThread(void*) ()
#4 0x00007fa52aff170a in start_thread (arg=0x7fa50a4ac700) at pthread_create.c:333
#5 0x00007fa524cbe82d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7fa52c806980 (LWP 1383)):
#0 0x0000000000000070 in ?? ()
#1 0x0000000000847fe5 in CMediaSourceSettings::Clear() ()
#2 0x0000000000e24841 in CSettingsManager::OnSettingsUnloaded() ()
#3 0x0000000000e254b3 in CSettingsManager::Unload() ()
#4 0x0000000000e28a1e in CSettingsManager::Clear() ()
#5 0x0000000000835d4c in CSettings::Uninitialize() ()
#6 0x00000000008365af in CSettings::~CSettings() ()
#7 0x00007fa524bf1ff8 in __run_exit_handlers (status=-1, listp=0x7fa524f7b5f8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
#8 0x00007fa524bf2045 in __GI_exit (status=<optimized out>) at exit.c:104
#9 0x00007fa524bd8837 in __libc_start_main (main=0x7c23c0 <main>, argc=2, argv=0x7fff43d54d98, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff43d54d88) at ../csu/libc-start.c:325
#10 0x000000000081bb89 in _start ()
############# END STACK TRACE ###############
################# LOG FILE ##################

<feff>02:00:14 T:140347392944512 NOTICE: special://profile/ is mapped to: special://masterprofile/
02:00:14 T:140347392944512 NOTICE: -----------------------------------------------------------------------
02:00:14 T:140347392944512 NOTICE: Starting Kodi (16.1 Git:c327c53). Platform: Linux x86 64-bit
02:00:14 T:140347392944512 NOTICE: Using Release Kodi x64 build
02:00:14 T:140347392944512 NOTICE: Kodi compiled Apr 25 2016 by GCC 5.3.1 for Linux x86 64-bit version 4.4.6 (263174)
02:00:14 T:140347392944512 NOTICE: Running on Ubuntu 16.04.1 LTS, kernel: Linux x86 64-bit version 4.4.0-47-generic
02:00:14 T:140347392944512 NOTICE: FFmpeg statically linked, version: 2.8.6-kodi-2.8.6-Jarvis-16.0
02:00:14 T:140347392944512 NOTICE: Host CPU: Intel(R) Atom(TM) CPU 230 @ 1.60GHz, 2 cores available
02:00:14 T:140347392944512 NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
02:00:14 T:140347392944512 NOTICE: special://xbmcbin/ is mapped to: /usr/lib/kodi
02:00:14 T:140347392944512 NOTICE: special://masterprofile/ is mapped to: /home/nuaimat/.kodi/userdata
02:00:14 T:140347392944512 NOTICE: special://home/ is mapped to: /home/nuaimat/.kodi
02:00:14 T:140347392944512 NOTICE: special://temp/ is mapped to: /home/nuaimat/.kodi/temp
02:00:14 T:140347392944512 NOTICE: The executable running is: /usr/lib/kodi/kodi.bin
02:00:14 T:140347392944512 NOTICE: Local hostname: Nuaimat-Aspire-R1600
02:00:14 T:140347392944512 NOTICE: Log File is located: /home/nuaimat/.kodi/temp/kodi.log
02:00:14 T:140347392944512 NOTICE: -----------------------------------------------------------------------
02:00:14 T:140347392944512 ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property 'CanSuspend'
02:00:14 T:140347392944512 ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property 'CanHibernate'
02:00:14 T:140347392944512 ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property 'CanSuspend'
02:00:14 T:140347392944512 ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property 'CanHibernate'
02:00:14 T:140347392944512 NOTICE: load settings...
02:00:14 T:140347392944512 ERROR: PulseAudio: Failed to connect context
02:00:14 T:140347392944512 NOTICE: PulseAudio might not be running. Context was not created.
02:00:14 T:140347392944512 NOTICE: Found 1 Lists of Devices
02:00:14 T:140347392944512 NOTICE: Enumerated ALSA devices:
02:00:14 T:140347392944512 NOTICE: Device 1
02:00:14 T:140347392944512 NOTICE: m_deviceName : default
02:00:14 T:140347392944512 NOTICE: m_displayName : Default (HDA NVidia HDMI 0)
02:00:14 T:140347392944512 NOTICE: m_displayNameExtra:
02:00:14 T:140347392944512 NOTICE: m_deviceType : AE_DEVTYPE_PCM
02:00:14 T:140347392944512 NOTICE: m_channels : FL,FR,FC,LFE,BL,BR,SL,SR
02:00:14 T:140347392944512 NOTICE: m_sampleRates : 32000,44100,48000,88200,96000,176400,192000
02:00:14 T:140347392944512 NOTICE: m_dataFormats : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE
02:00:14 T:140347392944512 NOTICE: Device 2
02:00:14 T:140347392944512 NOTICE: m_deviceName : @:CARD=NVidia,DEV=0
02:00:14 T:140347392944512 NOTICE: m_displayName : HDA NVidia
02:00:14 T:140347392944512 NOTICE: m_displayNameExtra: ALC662 rev1 Analog
02:00:14 T:140347392944512 NOTICE: m_deviceType : AE_DEVTYPE_PCM
02:00:14 T:140347392944512 NOTICE: m_channels : FL,FR
02:00:14 T:140347392944512 NOTICE: m_sampleRates : 48000
02:00:14 T:140347392944512 NOTICE: m_dataFormats : AE_FMT_S32NE
02:00:14 T:140347392944512 NOTICE: Device 3
02:00:14 T:140347392944512 NOTICE: m_deviceName : hdmi:CARD=NVidia,DEV=0
02:00:14 T:140347392944512 NOTICE: m_displayName : HDA NVidia
02:00:14 T:140347392944512 NOTICE: m_displayNameExtra: HDMI
02:00:14 T:140347392944512 NOTICE: m_deviceType : AE_DEVTYPE_HDMI
02:00:14 T:140347392944512 NOTICE: m_channels : FL,FR,FC,LFE,BL,BR,SL,SR
02:00:14 T:140347392944512 NOTICE: m_sampleRates : 32000,44100,48000,88200,96000,176400,192000
02:00:14 T:140347392944512 NOTICE: m_dataFormats : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_LPCM,AE_FMT_DTSHD,AE_FMT_TRUEHD,AE_FMT_EAC3,AE_FMT_DTS,AE_FMT_AC3,AE_FMT_AAC
02:00:14 T:140347392944512 NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
02:00:14 T:140347392944512 NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
02:00:14 T:140347392944512 NOTICE: Default DVD Player: dvdplayer
02:00:14 T:140347392944512 NOTICE: Default Video Player: dvdplayer
02:00:14 T:140347392944512 NOTICE: Default Audio Player: paplayer
02:00:14 T:140347392944512 NOTICE: Disabled debug logging due to GUI setting. Level 0.
02:00:14 T:140347392944512 NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
02:00:14 T:140347392944512 NOTICE: CMediaSourceSettings: loading media sources from special://masterprofile/sources.xml
02:00:14 T:140347392944512 NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
02:00:14 T:140347392944512 NOTICE: Loaded playercorefactory configuration
02:00:14 T:140347392944512 NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
02:00:14 T:140347392944512 NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
02:00:14 T:140347392944512 NOTICE: Running database version Addons20
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.tknorris.beta
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.exodus
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.shani
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.podgod
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.tknorris.release
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository superrepo.kodi.helix.video
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.TheYid
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.iptvxtra
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.Kinkin
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.eldorado
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.xbmchub
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.entertainmentrepo
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.Rodrigo
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository script.video.F4mProxy
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.eleazar
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository superrepo.kodi.helix.sports
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.thehighway
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.xbmc.org
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.arabic.xbmc-addons
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.lambda
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository superrepo.kodi.helix.repositories
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.BlazeRepo
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.The_Silencer
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.dudehere.plugins
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repo.natko1412
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.metalkettle
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository superrepo.kodi.helix.how-to
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.p2p-streams.xbmc
02:00:14 T:140347392944512 NOTICE: ADDONS: Using repository repository.xlordkx
02:00:14 T:140347392944512 NOTICE: Setup SDL
02:00:14 T:140347392944512 NOTICE: Checking resolution 16
02:00:14 T:140347392944512 NOTICE: Using visual 0x28
02:00:14 T:140347392944512 ERROR: CWinSystemX11::XErrorHandler: BadValue (integer parameter out of range for operation), type:0, serial:78, error_code:2, request_code:154 minor_code:3
02:00:14 T:140347392944512 ERROR: GLX Error: Could not create context
02:00:14 T:140347392944512 ERROR: InitRenderSystem() glewInit returned 1: Missing GL version
02:00:14 T:140347392944512 FATAL: CApplication::Create: Unable to init rendering system

############### END LOG FILE ################

############ END Kodi CRASH LOG #############

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-340 (Ubuntu):
status: New → Confirmed
Revision history for this message
David H (mishnz) wrote :

I'm seeing the same issue with Kodi crashing in the same manner on startup, with the same resolution (package downgrade).

This may be related to an internal Nvidia bug ID: 1835736

This is referenced here:
https://devtalk.nvidia.com/default/topic/968892/geforce-7300le-with-304-132-glxinfo-fails-now-with-quot-x-error-of-failed-request-badvalue-quot-/?offset=22

and here:
https://devtalk.nvidia.com/default/topic/974456/f24-permission-problems-/

Either way, in case anyone comes across this issue and wants a workaround:

# First downgrade to the previous good version of the Nvidia driver.
sudo apt install nvidia-304=304.131-0ubuntu3

# Next hold all related packages so they're not auto upgraded.
sudo aptitude hold nvidia-opencl-icd-304 nvidia-current nvidia-304 nvidia-304-dev nvidia-304-updates nvidia-304-updates-dev libcuda1-304

# Now reboot.
# When the issue is resolved in the repositories, unhold the packages by:
sudo aptitude unhold nvidia-opencl-icd-304 nvidia-current nvidia-304 nvidia-304-dev nvidia-304-updates nvidia-304-updates-dev libcuda1-304

Revision history for this message
nuaimat (nuaimat2002) wrote :

no updates on this? no fix yet?

Revision history for this message
remfarkas (remfarkas) wrote :

Workaround does not work

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.