Segmentation Fault on latency less than 11ms

Bug #525401 reported by Maveloth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
Expired
High
Unassigned

Bug Description

Once i selected the first audio devices from "Vinyl Control" if i try to set the latency less than 11ms mixxx crash.

System:Archlinux x86_64(fully udated)
Kernel 2.6.32.8(self compiled for realtime)
video driver nvidia 190.53
DE KDE 4.4
Qt: 4.6.2

Hardware
CPU AMD Phenom x4 9950BE @ 2.6Gnz
RAM 4GB DDR2 1066
Video Nvidia GeForce 8200(integrated on the mainboard ASUS M3N78)

GNU gdb (GDB) 7.0.1
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/mixxx...(no debugging symbols found)...done.
Starting program: /usr/bin/mixxx
[Thread debugging using libthread_db enabled]
Debug: [Main]: Setting up plugin paths...
Debug: [Main]: ...done.
Debug: [Main]: Mixxx 1.8.0~beta1 "" is starting...
Debug: [Main]: At current version 1.8.0~beta1
Debug: [Main]: CachingReader using 4980736 bytes.
[New Thread 0x7fffe5a93710 (LWP 20174)]
Debug: [Main]: CachingReader using 4980736 bytes.
[New Thread 0x7fffe4c7f710 (LWP 20175)]
Debug: [Main]: ControlObject::getControl returning NULL for ( "[Mixer Profile]" , "LoEQFrequency" )
[New Thread 0x7fffdfda6710 (LWP 20176)]
Debug: [Main]: SampleRate 44100
Debug: [Main]: Latency 92
[New Thread 0x7fffdf282710 (LWP 20177)]
Debug: [Main]: ("QSQLITE", "QMYSQL3", "QMYSQL", "QODBC3", "QODBC", "QPSQL7", "QPSQL")
Debug: [Main]: src/library/trackcollection.cpp DB status: true
Debug: [Main]: QSqlError(-1, "", "")
Debug: [Main]: SchemaManager::upgradeToSchemaVersion already at version 1
Debug: [Main]: TrackDAO::initialize QThread(0x9f4a20, name = "Main") "qt_sql_default_connection"
Debug: [Main]: CrateDAO::initialize()
Debug: [Main]: CueDAO::initialize QThread(0x9f4a20, name = "Main") "qt_sql_default_connection"
Debug: [Main]: select()
Debug: [Main]: Created MissingTracksModel!
Debug: [Main]: select()
Debug: [Main]: Promo dir: "/usr/share/mixxx//promo/1.8.0~beta1/index.html"
Debug: [Main]: PROMO: Autoload found
Debug: [Main]: PROMO: Auto-loading track "promo/1.8.0~beta1/music/Pixelord - Quartz Boy.mp3"
Debug: [Main]: PROMO: Auto-loading track "promo/1.8.0~beta1/music/AEED - Coccospace.mp3"
Debug: [Main]: ITunesLibrary=[ "/home/maveloth/.itunes.xml" ]
[New Thread 0x7fffde875710 (LWP 20179)]
Debug: [Main]: createWaveformViewer()
Debug: [Main]: WaveformViewerFactory :: Creating new visual waveform
Debug: [Main]: WaveformViewerFactory :: Making new GL context.
Debug: [Main]: Didn't get mark Color, using parent's MarkerColor: "#0000ff"
Debug: [Main]: Didn't get mark TextColor, using parent's BgColor: "#ffffff"
Debug: [Main]: Didn't get mark Color, using parent's MarkerColor: "#0000ff"
Debug: [Main]: Didn't get mark Color, using parent's MarkerColor: "#00ff00"
Debug: [Main]: Didn't get mark Color, using parent's MarkerColor: "#0000ff"
Debug: [Main]: Didn't get mark TextColor, using parent's BgColor: "#ffffff"
Debug: [Main]: Didn't get mark Color, using parent's MarkerColor: "#0000ff"
Debug: [Main]: Didn't get mark TextColor, using parent's BgColor: "#ffffff"
Debug: [Main]: createWaveformViewer()
Debug: [Main]: WaveformViewerFactory :: Creating new visual waveform
Debug: [Main]: WaveformViewerFactory :: Sharing existing GL context.
Debug: [Main]: Didn't get mark Color, using parent's MarkerColor: "#ff0000"
Debug: [Main]: Didn't get mark TextColor, using parent's BgColor: "#ffffff"
Debug: [Main]: Didn't get mark Color, using parent's MarkerColor: "#ff0000"
Debug: [Main]: Didn't get mark Color, using parent's MarkerColor: "#00ff00"
Debug: [Main]: Didn't get mark Color, using parent's MarkerColor: "#ff0000"
Debug: [Main]: Didn't get mark TextColor, using parent's BgColor: "#ffffff"
Debug: [Main]: Didn't get mark Color, using parent's MarkerColor: "#ff0000"
Debug: [Main]: Didn't get mark TextColor, using parent's BgColor: "#ffffff"
Debug: [Main]: ControlObject::getControl returning NULL for ( "[Channel1]" , "hotcue_32_position" )
Debug: [Main]: ControlObject::getControl returning NULL for ( "[Channel2]" , "hotcue_32_position" )
[New Thread 0x7fffda797710 (LWP 20181)]
[New Thread 0x7fffd9f86710 (LWP 20182)]
[New Thread 0x7fffd8de2710 (LWP 20183)]
[New Thread 0x7fffd83b9710 (LWP 20184)]
Debug: [Main]: PlaylistTableModel::setPlaylist 1
Debug: [Main]: select()
Debug: [Main]: WTrackTableView::loadTrackModel() PlaylistTableModel(0xe63cd0)
Debug: [Main]: select()
Debug: [Main]: select()
Debug: [Main]: Mixxx(20170)/ KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-maveloth/ksycoca4"
[New Thread 0x7fffd7a65710 (LWP 20185)]
[New Thread 0x7fffcf264710 (LWP 20186)]
Debug: [Main]: select()
Debug: [Main]: select()
Debug: [Main]: select()
Debug: [Main]: WTrackTableView::loadTrackModel() PrepareLibraryTableModel(0x10f9720)
Debug: [Main]: select()
Debug: [Main]: select()
Debug: [Main]: select()
Debug: [Main]: MixxxLibraryFeature::activate()
Debug: [Main]: WTrackTableView::loadTrackModel() LibraryTableModel(0xb421e0)
Debug: [Main]: select()
Debug: [Main]: select()
Debug: [Main]: WLibrary::switchToView "WTrackTableView"
Debug: [Main]: Constructed LibraryScanner!!!
[New Thread 0x7fffd7264710 (LWP 20187)]
Debug: [LibraryScanner 1]: LibraryHashDAO::initialize LibraryScanner(0x1168dd0, name = "LibraryScanner 1") "LIBRARY_SCANNER"
Debug: [LibraryScanner 1]: CueDAO::initialize LibraryScanner(0x1168dd0, name = "LibraryScanner 1") "LIBRARY_SCANNER"
Debug: [LibraryScanner 1]: TrackDAO::initialize LibraryScanner(0x1168dd0, name = "LibraryScanner 1") "LIBRARY_SCANNER"
[New Thread 0x7fffd6a63710 (LWP 20188)]
Debug: [LibraryScanner 1]: Legacy importer took 0 ms
Debug: [Main]: Could not read "/home/maveloth/.mixxx/midi/MixxxMIDIDevices"
Debug: [LibraryScanner 1]: Recursively scanning library.
Debug: [Main]: Scanning MIDI devices:
Debug: [Main]: Found output device # 0 Midi Through Port-0
Debug: [Main]: Found input device # 1 Midi Through Port-0
Debug: [Main]: Linking to output device # 0 "Midi Through Port-0"
Debug: [Main]: Starting script engine with output device ""
[New Thread 0x7fffd6262710 (LWP 20189)]
[New Thread 0x7fffd5a61710 (LWP 20190)]
Debug: [MidiScriptEngine 1]: MIDI Device in script engine is: ""
Debug: [Main]: MidiDeviceManager::getDeviceList
Debug: [Main]: MidiDeviceManager: Setting up devices
Debug: [LibraryScanner 1]: Recursive scan finished cleanly.
Debug: [Main]: PortMIDI device "1. Midi Through Port-0" already closed
Debug: [LibraryScanner 1]: Marking unverified tracks as deleted.
Debug: [Main]: MidiMapping: Loading MIDI preset from "/home/maveloth/.mixxx/midi/Midi_Through_Port-0.midi.xml"
Debug: [LibraryScanner 1]: TrackDAO::markUnverifiedTracksAsDeleted LibraryScanner(0x1168dd0, name = "LibraryScanner 1") "LIBRARY_SCANNER"
Debug: [LibraryScanner 1]: Detecting moved files.
Debug: [Main]: MidiOutputMappingTableModel::removeRows()
Debug: [Main]: "Midi Through Port-0" settings found
Debug: [Main]: MidiMapping: Loading & evaluating all MIDI script code
Debug: [LibraryScanner 1]: Scan finished cleanly
Debug: [LibraryScanner 1]: Scan took: 6 ms
Debug: [Main]: MidiScriptEngine: Loading "/usr/share/mixxx/midi/midi-mappings-scripts.js"
[Thread 0x7fffd7264710 (LWP 20187) exited]
Debug: [Main]: MidiScriptEngine: 274 lines of code being searched for functions
Debug: [Main]: MidiMapping: Input parsed!
Debug: [Main]: MidiMapping: Output parsed!
Debug: [Main]: selectedAPI is: "ALSA"
Debug: [Main]: getSliderLatencyMsec in: 12
Debug: [Main]: getSliderLatencyMsec out: 92
Debug: [Main]: loadSettings: 1 0 "SlowFade"
Debug: [Main]: slotApply crossfader: 1 "SlowFade"
Debug: [Main]: BpmSchemes::readXML "/home/maveloth/.mixxx/mixxxbpmscheme.xml"
Debug: [Main]: MidiDeviceManager::getDeviceList
Debug: [Main]: MidiDeviceManager::getDeviceList
Debug: [Main]: SoundManager::setupDevices()
Debug: [Main]: Building timecode lookup tables...
Allocating 2097152 slots (8192Kb) for 20 bit timecode (Serato 2nd Ed., side A)
Debug: [Main]: Starting vinyl control xwax thread
[New Thread 0x7fffd7264710 (LWP 20191)]
Debug: [Main]: Building timecode lookup tables...
Allocating 2097152 slots (8192Kb) for 20 bit timecode (Serato 2nd Ed., side A)
Debug: [Main]: Starting vinyl control xwax thread
[New Thread 0x7fffcea63710 (LWP 20192)]
Debug: [Main]: SoundDevicePortAudio::open() "1, HDA NVidia: VT1708B Analog (hw:0,0)"
Debug: [Main]: m_dSampleRate 44100
Debug: [Main]: iLatencyMSec: 92
Debug: [Main]: output channels: 2 | input channels: 0
Debug: [Main]: iFramesPerBuffer 4096
Debug: [Main]: iLatencyMSec: 92
Debug: [Main]: Opening stream with id 1
Debug: [Main]: Opened PortAudio stream successfully... starting
Debug: [Main]: Dynamically loaded PortAudio library!
[New Thread 0x7fffce262710 (LWP 20193)]
Debug: [Main]: PortAudio: Started stream successfully
Debug: [Main]: iNumDevicesOpenedForOutput: 1
Debug: [Main]: iNumDevicesOpenedForInput: 0
Debug: [Main]: Displaying mixxx
Debug: [Main]: Running Mixxx
Debug: [Main]: select()
Debug: [Main]: select()
Debug: [Main]: select()
Debug: [Main]: select()
Debug: [Main]: PROMO: Load timed out, loading local page
Debug: [Main]: PROMO: Loading local copy at "/usr/share/mixxx//promo/1.8.0~beta1/index.html"
[Thread 0x7fffce262710 (LWP 20193) exited]
[Thread 0x7fffd7264710 (LWP 20191) exited]
Debug: [Main]: SoundManager::setupDevices()
[Thread 0x7fffcea63710 (LWP 20192) exited]
Debug: [Main]: Building timecode lookup tables...
Allocating 2097152 slots (8192Kb) for 20 bit timecode (Serato 2nd Ed., side A)
Debug: [Main]: Starting vinyl control xwax thread
[New Thread 0x7fffcea63710 (LWP 20196)]
Debug: [Main]: Building timecode lookup tables...
Allocating 2097152 slots (8192Kb) for 20 bit timecode (Serato 2nd Ed., side A)
Debug: [Main]: Starting vinyl control xwax thread
[New Thread 0x7fffd7264710 (LWP 20197)]
Debug: [Main]: SoundDevicePortAudio::open() "1, HDA NVidia: VT1708B Analog (hw:0,0)"
Debug: [Main]: m_dSampleRate 44100
Debug: [Main]: iLatencyMSec: 92
Debug: [Main]: output channels: 2 | input channels: 2
Debug: [Main]: iFramesPerBuffer 4096
Debug: [Main]: iLatencyMSec: 92
Debug: [Main]: Opening stream with id 1
Debug: [Main]: Opened PortAudio stream successfully... starting
Debug: [Main]: Dynamically loaded PortAudio library!
[New Thread 0x7fffce262710 (LWP 20198)]
Debug: [Main]: PortAudio: Started stream successfully
Debug: [Main]: iNumDevicesOpenedForOutput: 1
Debug: [Main]: iNumDevicesOpenedForInput: 1
Debug: [Main]: getSliderLatencyMsec in: 11
Debug: [Main]: getSliderLatencyMsec out: 46
Debug: [Main]: getSliderLatencyMsec in: 10
Debug: [Main]: getSliderLatencyMsec out: 23
Debug: [Main]: getSliderLatencyMsec in: 9
Debug: [Main]: getSliderLatencyMsec out: 11
Debug: [Main]: getSliderLatencyMsec in: 8
Debug: [Main]: getSliderLatencyMsec out: 5
Debug: [Main]: getSliderLatencyMsec in: 7
Debug: [Main]: getSliderLatencyMsec out: 2
Debug: [Main]: getSliderLatencyMsec in: 7
Debug: [Main]: getSliderLatencyMsec out: 2
Debug: [Main]: getSliderLatencyMsec in: 6
Debug: [Main]: getSliderLatencyMsec out: 1
Debug: [Main]: getSliderLatencyMsec in: 6
Debug: [Main]: getSliderLatencyMsec out: 1
Debug: [Main]: DlgPrefSound::Apply
Debug: [Main]: Setting ChannelMaster in config to: "0"
Debug: [Main]: getSliderLatencyMsec in: 6
Debug: [Main]: getSliderLatencyMsec out: 1
Debug: [Main]: getSliderLatencyMsec in: 6
Debug: [Main]: getSliderLatencyMsec out: 1
Debug: [Main]: request msec 1
[Thread 0x7fffce262710 (LWP 20198) exited]
Debug: [Main]: SoundManager::setupDevices()
[Thread 0x7fffcea63710 (LWP 20196) exited]
[Thread 0x7fffd7264710 (LWP 20197) exited]
Debug: [Main]: Building timecode lookup tables...
Allocating 2097152 slots (8192Kb) for 20 bit timecode (Serato 2nd Ed., side A)
Debug: [Main]: Starting vinyl control xwax thread
[New Thread 0x7fffd7264710 (LWP 20206)]
Debug: [Main]: Building timecode lookup tables...
Allocating 2097152 slots (8192Kb) for 20 bit timecode (Serato 2nd Ed., side A)
Debug: [Main]: Starting vinyl control xwax thread
[New Thread 0x7fffcea63710 (LWP 20207)]
Debug: [Main]: SoundDevicePortAudio::open() "1, HDA NVidia: VT1708B Analog (hw:0,0)"
Debug: [Main]: m_dSampleRate 44100
Debug: [Main]: iLatencyMSec: 1
Debug: [Main]: output channels: 2 | input channels: 2
Debug: [Main]: iFramesPerBuffer 64
Debug: [Main]: iLatencyMSec: 1
Debug: [Main]: Opening stream with id 1
Debug: [Main]: Opened PortAudio stream successfully... starting
Debug: [Main]: Dynamically loaded PortAudio library!
[New Thread 0x7fffce262710 (LWP 20208)]
Debug: [Main]: PortAudio: Started stream successfully
Debug: [Main]: iNumDevicesOpenedForOutput: 1
Debug: [Main]: iNumDevicesOpenedForInput: 1

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffce262710 (LWP 20208)]
0x00007ffff2391bb6 in Copy_16_To_16 () from /usr/lib/libportaudio.so.2

Tags: realtime
Revision history for this message
Sean M. Pappalardo (pegasus-renegadetech) wrote :

Looking at the log, I might have seen this before...try deleting/renaming your ~/.mixxx/mixxx.cfg file and see if that helps. If not, please capture the back trace by typing 'thread apply all bt' at the gdb prompt after the crash and add it as an attachment to this bug (rather than pasting in the comment field.)

summary: - Segmentation Fault on lstency less then 11ms
+ Segmentation Fault on latency less then 11ms
summary: - Segmentation Fault on latency less then 11ms
+ Segmentation Fault on latency less than 11ms
Revision history for this message
Maveloth (cashisshit) wrote :

I canceled the mixxx.cfg file as you suggested but I get the same issue.
I attached the gdb output. sorry for the mistakes.
Claudio

RJ Skerry-Ryan (rryan)
Changed in mixxx:
milestone: none → 1.8.0
RJ Skerry-Ryan (rryan)
Changed in mixxx:
importance: Undecided → High
Revision history for this message
Sean M. Pappalardo (pegasus-renegadetech) wrote :

What version of PortAudio are you using? Does this sound like bug #383431?

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

Maveloth, also what sound API are you using? JACK?

tags: added: realtime
Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

Marking incomplete until we can get more info from Maveloth. This may also have been a PortAudio issue, especially since the segfault is in Copy16To16.

Changed in mixxx:
status: New → Incomplete
jus (jus)
Changed in mixxx:
milestone: 1.8.0 → none
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Mixxx because there has been no activity for 60 days.]

Changed in mixxx:
status: Incomplete → Expired
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/5330

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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