Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-12690

Spectrum demo asserts on startup in Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.7.0
    • 4.7.0
    • Multimedia
    • None
    • Linux
    • baf8eabd2c647d6ba2bf0a9dc5103f4726808c3d

    Description

      Reproduced on both openSuSE 11.3 and Kubuntu 10.04 using the 4.7.0 RC:

      jesper@fishmonster:~/dev/qt-4.7.0-rc0-installed/demos/spectrum$ ./spectrum
      QObject::moveToThread: Cannot move objects with a parent
      Engine::initialize frequenciesList (8000, 11025, 22050, 44100, 48000)
      Engine::initialize channelsList (1, 2)
      spectrum: pcm_params.c:2348: sndrv_pcm_hw_params: Assertion `err >= 0' failed.
      Aborted

      BT:
      Starting program: /home/jesper/dev/qt-4.7.0-rc0-installed/demos/spectrum/spectrum
      [Thread debugging using libthread_db enabled]
      QObject::moveToThread: Cannot move objects with a parent
      [New Thread 0x7ffff2149710 (LWP 13682)]
      Engine::initialize frequenciesList (8000, 11025, 22050, 44100, 48000)
      Engine::initialize channelsList (1, 2)
      spectrum: pcm_params.c:2348: sndrv_pcm_hw_params: Assertion `err >= 0' failed.

      Program received signal SIGABRT, Aborted.
      0x00007ffff5ae5a75 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
      64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
      in ../nptl/sysdeps/unix/sysv/linux/raise.c
      (gdb) bt
      #0 0x00007ffff5ae5a75 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
      #1 0x00007ffff5ae95c0 in *__GI_abort () at abort.c:92
      #2 0x00007ffff5ade941 in *_GI__assert_fail (assertion=0x7ffff587c439 "err >= 0", file=<value optimized out>, line=2348, function=0x7ffff58855c0 "sndrv_pcm_hw_params")
      at assert.c:81
      #3 0x00007ffff5827203 in ?? () from /usr/lib/libasound.so.2
      #4 0x00007ffff5822b93 in snd_pcm_hw_params () from /usr/lib/libasound.so.2
      #5 0x00007ffff79c1206 in QAudioDeviceInfoInternal::testSettings (this=<value optimized out>, format=...) at audio/qaudiodeviceinfo_alsa_p.cpp:355
      #6 0x000000000040bf62 in Engine::selectFormat() ()
      #7 0x000000000040c5af in Engine::initialize() ()
      #8 0x000000000040d85b in Engine::Engine(QObject*) ()
      #9 0x00000000004106f1 in MainWidget::MainWidget(QWidget*) ()
      #10 0x0000000000409439 in main ()

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jmcphers Justin McPherson (closed Nokia identity) (Inactive)
            thomschu Jesper Thomschutz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes