Bug 209696 - sysutils/k3b-kde4 crashes inserting an audio CD
Summary: sysutils/k3b-kde4 crashes inserting an audio CD
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on: 211630
Blocks:
  Show dependency treegraph
 
Reported: 2016-05-22 12:15 UTC by Mark Dixon
Modified: 2016-09-28 07:46 UTC (History)
2 users (show)

See Also:
tcberner: maintainer-feedback+


Attachments
Debug output (43.85 KB, text/plain)
2016-05-22 20:32 UTC, Mark Dixon
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Dixon 2016-05-22 12:15:52 UTC
K3b is crashing on inserting an audio CD. This is the console output:

QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
[mark@markspc ~]$ k3b(50873)/kdeui (kdelibs): Attempt to use QAction "view_projects" with KXMLGUIFactory! 
k3b(50873)/kdeui (kdelibs): Attempt to use QAction "view_dir_tree" with KXMLGUIFactory! 
k3b(50873)/kdeui (kdelibs): Attempt to use QAction "view_contents" with KXMLGUIFactory! 
k3b(50873)/kdeui (kdelibs): Attempt to use QAction "location_bar" with KXMLGUIFactory! 
k3b(50873) KMimeTypeRepository::parents: "/usr/local/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-visio.template.macroEnabled.main+xml" 
k3b(50873) KMimeTypeRepository::parents: "/usr/local/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.sheet.binary.macroEnabled.12" 
k3b(50873) KMimeTypeRepository::parents: "/usr/local/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.addin.macroEnabled.12" 
k3b(50873) KMimeTypeRepository::parents: "/usr/local/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-visio.drawing.macroEnabled.main+xml" 
k3b(50873) KMimeTypeRepository::parents: "/usr/local/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.slideshow.macroEnabled.12" 
k3b(50873) KMimeTypeRepository::parents: "/usr/local/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-visio.stencil.macroEnabled.main+xml" 
k3b(50873) KMimeTypeRepository::parents: "/usr/local/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.sheet.macroEnabled.12" 
k3b(50873) KMimeTypeRepository::parents: "/usr/local/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.presentation.macroEnabled.12" 
k3b(50873) KMimeTypeRepository::parents: "/usr/local/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-word.template.macroEnabled.12" 
k3b(50873) KMimeTypeRepository::parents: "/usr/local/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.template.macroEnabled.12" 
k3b(50873) KMimeTypeRepository::parents: "/usr/local/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.template.macroEnabled.12" 
k3b(50873) KMimeTypeRepository::parents: "/usr/local/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-word.document.macroEnabled.12" 
k3b(50873) KMimeTypeRepository::parents: "/usr/local/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.slide.macroEnabled.12" 
k3b(50873) KSambaSharePrivate::findSmbConf: KSambaShare: Could not find smb.conf! 
k3b: Fatal IO error: client killed
Unable to start Dr. Konqi
Comment 1 Mark Dixon 2016-05-22 15:45:16 UTC
See also:

https://forums.freebsd.org/threads/53259/
Comment 2 groot 2016-05-22 19:42:59 UTC
 - running FreeBSD 10.3-STABLE #10 r299172: Fri May  6 16:47:31 CEST 2016 on x86 hardware (i7)
 - installed k3b from official pkg
   Name           : k3b
   Version        : 2.0.3_1
   Installed on   : Sun May 22 21:24:43 2016 CEST
   Origin         : sysutils/k3b-kde4
   Architecture   : freebsd:10:x86:64
 - machine contains DVD-RW drive;  it shows up as /dev/cd0
   cd0 at ahcich4 bus 0 scbus4 target 0 lun 0
   cd0: <TSSTcorp CDDVDW SH-224DB SB01> Removable CD-ROM SCSI device
 - machine is running KDE4 desktop logged in from kdm
 - start k3b
 - it complains that there is no optical drive found; hald is running though
    1445  -  Is       1:46.22 /usr/local/sbin/hald
    1492  -  S        0:45.12 hald-addon-storage: /dev/cd0 (hald-addon-storage)
 - on inserting an audio CD, the Device Manager pops up a menu, offering to copy or rip the CD with k3b, play it with kscd, ...
 - choosing k3b options starts k3b, which complains that there is not optical drive
 - choosing kscd allows cd playback; as does choosing vlc.
 - choosing filemanager gets me the expected filesystem-view

So I can't reproduce this crash, but I can't produce k3b doing anything useful for me either.
Comment 3 groot 2016-05-22 20:06:55 UTC
.. of course, I should have read the pkg-message more closely, and done *ALL* of the things it tells me to. After doing so, k3b does start (and finds the DVD-RW drive). Using kdebugdialog, I turned on debug areas for k3b and audiocd. My konsole output from k3b looks like this:


k3b(16178) K3b::Device::openDevice: (K3b::Device::openDevice) open device  /dev/cd0  succeeded.
k3b(16178) K3b::Device::ScsiCommand::Private::transport: (K3b::Device::ScsiCommand) transport command  "TEST UNIT READY"  ( "0" ), length:  6
k3b(16178) K3b::Device::ScsiCommand::Private::transport: (K3b::Device::ScsiCommand) transport command failed: scsi_status =  "2"
k3b(16178) K3b::Device::ScsiCommand::Private::transport: (K3b::Device::ScsiCommand) transport failed:  1879180289


It polls like that every second or so. On inserting a CD, I get two chunks of debug logging about READ TOC getting ILLEGAL REQUEST, and then:


k3b(16178) K3b::Medium::update: found medium: ( "/dev/cd0" )
=====================================================
k3b(16178) K3b::Device::DiskInfo::debug: DiskInfo:
Mediatype:        "CD-ROM"
Current Profile:  "CD-ROM"
Disk state:       complete
Empty:            false
Rewritable:       false
Appendable:       false
Sessions:         1
Tracks:           17
Layers:           1
Capacity:         "48:26:67"  (LBA  218017 ) ( 446498816  Bytes)
Remaining size:   "00:00:00"  (LBA  0 ) ( 0  Bytes)
Used Size:        "48:26:67"  (LBA  218017 ) ( 446498816  Bytes)


So I can't reproduce the problem; k3b works normally for me. I'd recommend using  kdebugdialog (installed by kde-runtime). Use the search field to search for "k3b" (enable it) and "audio" (I get 3 debug areas, for kio_audiocd twice and one for kaudiocreator: enable all three). Then try again; you'll get much more output to konsole.
Comment 4 Mark Dixon 2016-05-22 20:32:45 UTC
Created attachment 170555 [details]
Debug output

Debug output attached. This looks likely:

QSocketNotifier: Invalid socket 5 and type 'Read', disabling...
Comment 5 Tobias C. Berner freebsd_committer freebsd_triage 2016-09-28 07:45:04 UTC
The issue was, that exceptions thrown by libmusicbrainz couldn't be caught in libkcddb because of wrong visibility of the symbols. This has now been fixed in  211630.