Bug 115465 - crash (SIGFPE) when switching to OpenGL analyzer
Summary: crash (SIGFPE) when switching to OpenGL analyzer
Status: RESOLVED DUPLICATE of bug 103870
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 1.3.5
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-01 11:04 UTC by Peter Volkov
Modified: 2006-06-11 12:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Volkov 2005-11-01 11:04:36 UTC
Version:           1.3.5 (using KDE 3.4.3, Gentoo)
Compiler:          gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)
OS:                Linux (i686) release 2.6.13-gentoo-r5

Hello.

Every time I click on Analyzer it changes to some other representation. It's Ok for some first representations, but after some very beautiful (I don't know where to look for name) representation, next time I click amarok crashes with: 
Program received signal SIGFPE, Arithmetic exception.

Well. A bit more details. I've configured amarok with the following command:
./configure --with-arts --without-xine --with-gstreamer without-xmms --without-libvisual --enable-amazon --without-musicbrainz --without-helix --without-mas --without-nmm --host=i686-pc-linux-gnu --prefix=/usr/kde/3.4 --with-x --enable-mitshm --without-xinerama --with-qt-dir=/usr/qt/3 --enable-mt --with-qt-libraries=/usr/qt/3/lib --disable-dependency-tracking --disable-debug --without-debug --disable-final --with-arts --enable-debug=full

Started amarokapp in gdb clicked 5 times on amarok's analyzer and here is the result:
camobap src # gdb ./amarokapp
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) r
Starting program: /home/misc/catalyst/tmp/portage/amarok-1.3.5/work/amarok-1.3.5/amarok/src/amarokapp
[Thread debugging using libthread_db enabled]
[New Thread -1238934816 (LWP 9640)]
amarok: BEGIN: App::App()
amarok:   BEGIN: EngineBase* EngineController::loadEngine(const QString&)
amarok:     [PluginManager] Plugin trader constraint: [X-KDE-amaroK-framework-version] == 14 and [X-KDE-amaroK-plugintype] == 'engine' and [X-KDE-amaroK-name] != 'void-engine' and [X-KDE-amaroK-rank] > 0
amarok:     [PluginManager] Plugin trader constraint: [X-KDE-amaroK-framework-version] == 14 and [X-KDE-amaroK-plugintype] == 'engine' and [X-KDE-amaroK-name] == 'void-engine' and [X-KDE-amaroK-rank] > 0
amarok:     [PluginManager] Trying to load: libamarok_void-engine_plugin
amarok:
amarok:     PluginManager Service Info:
amarok:     ---------------------------
amarok:     name                          : <no engine>
amarok:     library                       : libamarok_void-engine_plugin
amarok:     desktopEntryPath              : amarok_void-engine_plugin.desktop
amarok:     X-KDE-amaroK-plugintype       : engine
amarok:     X-KDE-amaroK-name             : void-engine
amarok:     X-KDE-amaroK-authors          : (Max Howell,Mark Kretschmann)
amarok:     X-KDE-amaroK-rank             : 1
amarok:     X-KDE-amaroK-version          : 1
amarok:     X-KDE-amaroK-framework-version: 14
amarok:
amarok:   END__: EngineBase* EngineController::loadEngine(const QString&) - Took 0.036s
amarok:   BEGIN: void PlaylistWindow::init()
amarok:     BEGIN: CollectionDB::CollectionDB(bool)
[New Thread -1241506896 (LWP 9643)]
[Thread -1241506896 (LWP 9643) exited]
[New Thread -1249899600 (LWP 9644)]
[Thread -1249899600 (LWP 9644) exited]
amarok:       [CollectionDB] Available db connections: 1
amarok:       [CollectionDB] Available db connections: 5
amarok:       [Scrobbler] Couldn't open file: /root/.kde/share/apps/amarok/submit.xml
amarok:     END__: CollectionDB::CollectionDB(bool) - Took 0.015s
QLayout: Adding KToolBar/mainToolBar (child of QVBox/unnamed) to layout for PlaylistWindow/PlaylistWindow
amarok:     BEGIN: Creating browsers. Please report long start times!
amarok:       BEGIN: ContextBrowser
amarok:         [void ContextBrowser::setStyleSheet()]
amarok:         BEGIN: amaroK::Color::Color(const QColor&)
amarok:           [ContextBrowser] Initial Color Properties: s:107 v:178
amarok:           [ContextBrowser] Unapplied Contrast: 53
amarok:           [ContextBrowser] Final Colour Properties: s:30 v:231
amarok:         END__: amaroK::Color::Color(const QColor&) - Took 0.00044s
amarok:       END__: ContextBrowser - Took 0.041s
amarok:       BEGIN: CollectionBrowser
amarok:         [CollectionView::CollectionView(CollectionBrowser*)]
amarok:         [void CollectionView::renderView()]
amarok:       END__: CollectionBrowser - Took 0.016s
amarok:       BEGIN: PlaylistBrowser
amarok:       END__: PlaylistBrowser - Took 0.029s
amarok:       BEGIN: MediaBrowser
amarok:       END__: MediaBrowser - Took 0.041s
amarok:       BEGIN: FileBrowser
amarok:         [StatusBar] KDE::SqueezedTextLabel, mainTextLabel: 22: 0
amarok:         [StatusBar] QHBox, progressBox: 30: 0
amarok:         [StatusBar] QLabel, unnamed: 22: 0
amarok:         [StatusBar] QWidget, positionBox: 26: 0
amarok:         [StatusBar] QWidget, unnamed: 16: 0
amarok:       END__: FileBrowser - Took 0.065s
amarok:     END__: Creating browsers. Please report long start times! - Took 0.19s
amarok:   END__: void PlaylistWindow::init() - Took 0.39s
amarok:   BEGIN: void App::applySettings(bool)
amarok:     BEGIN: void App::applyColorScheme()
amarok:     END__: void App::applyColorScheme() - Took 0.00056s
amarok:     BEGIN: virtual void PlayerWidget::engineStateChanged(Engine::State, Engine::State)
amarok:     END__: virtual void PlayerWidget::engineStateChanged(Engine::State, Engine::State) - Took 0.0015s
amarok:     [void ContextBrowser::setStyleSheet()]
amarok:     BEGIN: amaroK::Color::Color(const QColor&)
amarok:       [ContextBrowser] Initial Color Properties: s:107 v:178
amarok:       [ContextBrowser] Unapplied Contrast: 53
amarok:       [ContextBrowser] Final Colour Properties: s:30 v:231
amarok:     END__: amaroK::Color::Color(const QColor&) - Took 0.00037s
QColor::setRgb: RGB parameter(s) out of range
QColor::setRgb: RGB parameter(s) out of range
QColor::setRgb: RGB parameter(s) out of range
amarok:     [virtual void BrowserBar::polish()]
amarok:     BEGIN: void ContextBrowser::showHome()
amarok:     END__: void ContextBrowser::showHome() - Took 0.31s
amarok:     BEGIN: EngineBase* EngineController::loadEngine()
amarok:       BEGIN: EngineBase* EngineController::loadEngine(const QString&)
amarok:         [PluginManager] Plugin trader constraint: [X-KDE-amaroK-framework-version] == 14 and [X-KDE-amaroK-plugintype] == 'engine' and [X-KDE-amaroK-name] != '' and [X-KDE-amaroK-rank] > 0
amarok:         [PluginManager] Plugin trader constraint: [X-KDE-amaroK-framework-version] == 14 and [X-KDE-amaroK-plugintype] == 'engine' and [X-KDE-amaroK-name] == '' and [X-KDE-amaroK-rank] > 0
amarok:         [PluginManager] Trying to load: libamarok_gstengine_plugin
amarok:
amarok:         PluginManager Service Info:
amarok:         ---------------------------
amarok:         name                          : GStreamer Engine
amarok:         library                       : libamarok_gstengine_plugin
amarok:         desktopEntryPath              : amarok_gstengine_plugin.desktop
amarok:         X-KDE-amaroK-plugintype       : engine
amarok:         X-KDE-amaroK-name             : gst-engine
amarok:         X-KDE-amaroK-authors          : (Mark Kretschmann)
amarok:         X-KDE-amaroK-rank             : 254
amarok:         X-KDE-amaroK-version          : 1
amarok:         X-KDE-amaroK-framework-version: 14
amarok:
amarok:       END__: EngineBase* EngineController::loadEngine(const QString&) - Took 0.2s
amarok:     END__: EngineBase* EngineController::loadEngine() - Took 0.21s
amarok:   END__: void App::applySettings(bool) - Took 1.1s
STARTUP
amarok:   BEGIN: void App::fixHyperThreading()
amarok:     SCHEDAFFINITY_SUPPORT enabled. Testing to see if HT fix should be enabled...
amarok:     Fix not enabled
amarok:   END__: void App::fixHyperThreading() - Took 0.00049s
amarok: END__: App::App() - Took 1.7s
[New Thread -1249899600 (LWP 9645)]
amarok: [void CollectionDB::createTables(DbConnection*)]
amarok: BEGIN: virtual void CollectionDB::customEvent(QCustomEvent*)
amarok: END__: virtual void CollectionDB::customEvent(QCustomEvent*) - Took 3.1e-05s
amarok: [CollectionDB] [ERROR!] [virtual QStringList SqliteConnection::query(const QString&)]  sqlite3_compile error:
amarok: [CollectionDB] [ERROR!] table amazon already exists
amarok: [CollectionDB] [ERROR!] on query: CREATE TABLE amazon ( asin VARCHAR(20), locale VARCHAR(2), filename VARCHAR(33), refetchdate INTEGER );
amarok: [void CollectionDB::dropTables(DbConnection*)]
amarok: [KDE::ProgressBar::ProgressBar(QWidget*, QLabel*)]
amarok: [StatusBar] Creating timer for: 1updateProgressAppearance()
[Thread -1249899600 (LWP 9645) exited]
amarok: BEGIN: virtual void CollectionDB::customEvent(QCustomEvent*)
amarok:   [CollectionDB] Event from IncrementalCollectionReader received.
amarok:   BEGIN: void CollectionView::scanDone(bool)
amarok:     [void CollectionView::renderView()]
amarok:   END__: void CollectionView::scanDone(bool) - Took 0.0025s
amarok: END__: virtual void CollectionDB::customEvent(QCustomEvent*) - Took 0.0032s
amarok: [ThreadWeaver] Job completed: CollectionReader. Jobs pending: 0
amarok: [StatusBar] Creating timer for: 1hideMainProgressBar()
amarok: [virtual KDE::ProgressBar::~ProgressBar()]
amarok: [StatusBar] 1updateProgressAppearance()
amarok: [StatusBar] 1hideMainProgressBar()

***[At this point I've started to click!]***

QColor::setRgb: RGB parameter(s) out of range
QColor::setRgb: RGB parameter(s) out of range
QColor::setRgb: RGB parameter(s) out of range
amarok: Baranalyzer Resized(168x56)
amarok: BAND_COUNT = 33 MAX_UP = 2MAX_DOWN = -1
amarok: BAND_COUNT = 33 MAX_UP = 2MAX_DOWN = -1
amarok: [BlockAnalyzer] FallTime: 570
amarok: BEGIN: QColor ensureContrast(const QColor&, const QColor&, uint)
amarok:   [BlockAnalyzer]    bg: (210,153,80)
amarok:   [BlockAnalyzer]    fg: (210,180,220)
amarok:   [BlockAnalyzer] DV=140: (210,180,220)
amarok:   [BlockAnalyzer] DS=27: (210,180,220)
amarok:   [BlockAnalyzer] DH=0: (210,180,220)
amarok:   [BlockAnalyzer] (210,180,220)
amarok:   [BlockAnalyzer] (210,0,220)
amarok:   [BlockAnalyzer] (210,0,220)
amarok:   [BlockAnalyzer] Final: (210,180,220)
amarok: END__: QColor ensureContrast(const QColor&, const QColor&, uint) - Took 0.0002s

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread -1238934816 (LWP 9640)]
0xb46dbed0 in _mesa_test_os_sse_exception_support () from /usr/lib/modules/dri/r200_dri.so

(gdb) bt
#0  0xb46dbed0 in _mesa_test_os_sse_exception_support () from /usr/lib/modules/dri/r200_dri.so
#1  0xb46dbde6 in _mesa_init_all_x86_transform_asm () from /usr/lib/modules/dri/r200_dri.so
#2  0xbfd1d2fc in ?? ()
#3  0xb65cb5a4 in ?? () from /usr/lib/opengl/xorg-x11/lib/libGL.so.1
#4  0x082ebac8 in ?? ()
#5  0xb63a2f06 in in6addr_any () from /lib/tls/libc.so.6
#6  0x555f0043 in ?? ()
#7  0xbfd10053 in ?? ()
#8  0xb639a840 in ?? () from /lib/tls/libc.so.6
#9  0x00000002 in ?? ()
#10 0x00000080 in ?? ()
Previous frame inner to this frame (corrupt stack?)

A found that compiled without --enable-debug=full and started from normal user amarok crash after 6 clicks while compiled with --enable-debug=full only 5 clicks are necessary to reproduce bug.

As it seems that problem is with graphics here are some notes about my system:
Linux camobap 2.6.13-gentoo-r5 #4 Mon Oct 31 22:16:58 MSK 2005 i686 Intel(R) Pentium(R) M processor 1700MHz GenuineIntel GNU/Linux
0000:01:00.0 VGA compatible controller: ATI Technologies Inc Radeon R250 Lf [FireGL 9000] (rev 02)

Thank you for your time,
Peter.
Comment 1 Peter Volkov 2005-12-19 16:09:15 UTC
Status update :)
I've upgraded to kde-3.5.0 and to amarok-1.3.7. Still the same problem. The only difference is that now before crash amarok tells me in popup window:
KDEInit can not run kmail. kmail executable is not found.

Peter.
Comment 2 Alexandre Oliveira 2006-03-01 22:26:39 UTC
Dup of 103870. Good news is that it seems they finally fixed it upstream.

*** This bug has been marked as a duplicate of 103870 ***