Bug 183184 - [Windows, OSX] "Configure Amarok..." causes temporary UI freeze
Summary: [Windows, OSX] "Configure Amarok..." causes temporary UI freeze
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 2.3-GIT
Platform: unspecified Microsoft Windows
: HI normal
Target Milestone: 2.4.0
Assignee: Amarok Developers
URL:
Keywords:
: 170195 175763 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-04 15:07 UTC by Diego
Modified: 2011-03-20 13:02 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of the "Configure Amarok..." UI during the freeze (19.96 KB, image/png)
2009-02-04 15:17 UTC, Diego
Details
Screenshot of the "Configure Amarok..." UI after the freeze (27.30 KB, image/png)
2009-02-04 15:18 UTC, Diego
Details
Amarok debug output on Windows. (23.61 KB, text/plain)
2009-02-05 18:38 UTC, Diego
Details
Debug (130.39 KB, text/plain)
2009-03-20 16:22 UTC, x.para
Details
Dump file (97.34 KB, application/octet-stream)
2009-03-20 20:25 UTC, x.para
Details
Crash file (52.30 KB, application/octet-stream)
2009-03-21 00:40 UTC, x.para
Details
Amarok debug output on Windows after little progresses. (52.19 KB, text/plain)
2009-05-26 15:24 UTC, Diego
Details
Amarok 2.2 debug output on Windows. (113.65 KB, text/plain)
2009-09-18 14:31 UTC, Diego
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego 2009-02-04 15:07:21 UTC
Version:           2.0.1 (using 4.2.00 (KDE 4.2.0), MS Visual Studio 2005 SP1)
Compiler:          cl.exe
OS:                Microsoft Windows (i686) release 5.1 (XP Professional)

When you go to "Settings" and then select "Configure Amarok..." the UI freezes for some seconds (more or less 5 secs). You can still hear the music playing but the UI is freezed... clicking here and there does nothing, the progress bar of the song freezes (it stops for example at 1:27 and when it unfreezes it restarts from 1:34).

After some seconds the UI starts to react regularly and it's all ok.

One thing that can help is the following:
- the first time you open "Configure Amarok..." you can see only one of options on the left: the first. On the right you see the regular "Configure General Options" configuration dialog but on the left the "General" option of the vertical tab does not occupy the whole space of the vertical column. If I'm able to get a proper screenshot I'll post it, this is a bit difficult to explain with words.
- the second time the options in the left vertical tab are complete and drawed correctly also before the freeze, but you get the freeze anyway.
Comment 1 Diego 2009-02-04 15:14:58 UTC
Mmm... looking at the screenshots I just grabbed I probably got why the "General" option doesn't occupy the whole width: the space on its right is reserved for the scrollbar, which hasn't already been draw. I don't think the screenshots will be very useful, but I'll post them anyway, one can never know.
Comment 2 Diego 2009-02-04 15:17:47 UTC
Created attachment 30956 [details]
Screenshot of the "Configure Amarok..." UI during the freeze

This is a screenshot of the "Configure Amarok..." UI during the freeze.
Sorry for the Windows menu intrusion. ^_^
Comment 3 Diego 2009-02-04 15:18:59 UTC
Created attachment 30957 [details]
Screenshot of the "Configure Amarok..." UI after the freeze

This is a screenshot of the normal UI (after the freeze).
Comment 4 Mark Kretschmann 2009-02-05 07:42:42 UTC
*** Bug 175763 has been marked as a duplicate of this bug. ***
Comment 5 Mark Kretschmann 2009-02-05 07:47:53 UTC
This appears to happen on OSX too. We've had a bug report about that. Not sure what happened to it.

@Diego: Could you please start Amarok from a shell terminal with "amarok --debug", and then attach the full output here (including when you open the settings dialog)?


@SaroEngels, @Orville: Any ideas?
Comment 6 Diego 2009-02-05 08:58:54 UTC
@Mark: I'm sorry, Windows Command Prompt seems to ignore command line arguments. amarok --debug just starts amarok, but no output appears... I tried also with Console2 which seems a bit more "modern" than cmd.exe but had the same results.
Comment 7 Mark Kretschmann 2009-02-05 09:12:15 UTC
@Diego: I think there is some trick for achieving it, but sadly I don't know/remember it.. :(

Maybe SaroEngels knows, we'll see.
Comment 8 Patrick Spendrin 2009-02-05 10:36:30 UTC
Yes, to collect the debug output, get yourself a copy of debugview from sysinternals.com (http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx). Then start dbgview.exe and from there you can get the output of 'amarok --debug'.
The problem is that stdout/stderr are not redirected to the console on windows, thus you can't get this in a simple way.
About the bug: I am not sure I have seen this bug yet, I will look later today if my old version already has it and then I'll try to update.
Comment 9 Diego 2009-02-05 18:36:33 UTC
@Saro: I read something about it here:
http://techbase.kde.org/Development/Tutorials/Debugging/Debugging_on_MS_Windows
and here:
http://amarok.kde.org/wiki/Download:Windows
but it wasn't clear to me what to do exactly.

Thanks for the reply, log incoming! ;)
Comment 10 Diego 2009-02-05 18:38:41 UTC
Created attachment 30994 [details]
Amarok debug output on Windows.

The freeze is beetween lines #178 and #179:
00000178	61.22303772	[524] amarok: END__: ServiceConfig::hasChanged - Took 0s
00000179	72.34948730	[524] amarok: BEGIN: ScanManager::startIncrementalScan
Comment 11 x.para 2009-03-20 16:16:37 UTC
Same problem here. Annoying.
Comment 12 x.para 2009-03-20 16:22:49 UTC
Created attachment 32288 [details]
Debug
Comment 13 Mark Kretschmann 2009-03-20 18:17:58 UTC
@x.para: Uhm.. could you please attach that in _plain_ normal text?

It seems you attached a MS Word document... we've been wondering if it's Klingon or so ;)
Comment 14 x.para 2009-03-20 20:25:12 UTC
Created attachment 32293 [details]
Dump file

This time again not sure if this helps as this seems to be hexa file, but I don't know better option how to provide dump log. WXP does not allow me to ctrl+c its output.
Comment 15 Mark Kretschmann 2009-03-20 21:04:06 UTC
@x.para: The normal way to get debug output from Amarok 2 is to start it from a shell (PowerShell or so on Windows), and starting it with "amarok --debug".

Then just attach that text output here.
Comment 16 x.para 2009-03-20 22:39:44 UTC
Wish to help, but no debugs commands received using powershell or native cmd :(

PS C:\> cd 'C:\Program Files\KDE\bin'
PS C:\Program Files\KDE\bin> .\amarok.exe --debug
PS C:\Program Files\KDE\bin>
Comment 17 Dan Meltzer 2009-03-20 22:43:39 UTC
You need to install debugview: http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx
Comment 18 x.para 2009-03-21 00:40:36 UTC
Created attachment 32298 [details]
Crash file
Comment 19 Mark Kretschmann 2009-03-22 11:11:25 UTC
@x.para: Thanks, this latest debug output is much better :)

Still, I can't see any trace in it of the Configure dialog code. Did you actually open it while you were recording this output?


Fixing this bug has a high priority to me, so I request everyone here to provide as much information as possible.
Comment 20 Mark Kretschmann 2009-03-22 18:26:05 UTC
*** Bug 170195 has been marked as a duplicate of this bug. ***
Comment 21 x.para 2009-03-27 12:41:59 UTC
Well first I ran debugview and than Amarok, so it should be pretty complete. But if there is other better way, let me know.
Comment 22 Mark Kretschmann 2009-04-16 12:18:38 UTC
Ok, I think we really need to make some progress with this report. Isn't anyone able to figure this out?

We can hardly release 2.1 when it takes 10 seconds to open the config dialog. 

With the help of DEBUG_BLOCK and friends it should be possible to find the culprit. I would do it if I had Amarok running on OSX or Windows - but on Linux, I cannot reproduce the problem at all.

Another approach: Disabling config pages one by one, until the problematic one is found.
Comment 23 Diego 2009-04-16 12:33:01 UTC
If I should try to make a blind guess of what config page (if one of them is the responsible) is causing the freeze I'd go for the "Collection" page. This is because the freeze happens after the "General" page is loaded, and just before the "Collection" page is loaded.
Comment 24 Myriam Schweingruber 2009-05-26 13:48:39 UTC
Please check it it is still happening with the packages from this server:

http://mafia-server.net/amarok-nightly
Comment 25 Diego 2009-05-26 15:22:17 UTC
The issue is still there but there are some progresses: now the whole config interface gets drawn before the UI freeze, but then again you are not able to click anywhere for a couple of seconds (while the music continues to play normally). No relevant output on the debug during the freeze.
Comment 26 Diego 2009-05-26 15:24:23 UTC
Created attachment 34018 [details]
Amarok debug output on Windows after little progresses.

This is the log file with the 26/05/09 build.
Comment 27 Myriam Schweingruber 2009-08-02 14:45:17 UTC
Any news on this?
Comment 28 Mark Kretschmann 2009-09-04 12:51:23 UTC
Casper, could you look at this by any chance? This seems like a major problem. 

Maybe add some debug output to the config dialog code? Thanks :)
Comment 29 Casper van Donderen 2009-09-04 19:23:52 UTC
Does not happen on my setup:
KDE 4.3.65 
MSVC2008 with Vista Platform SDK
Amarok 2.2 Git
Comment 30 Diego 2009-09-04 22:09:10 UTC
Maybe this has got fixed "for free"... I'll double check when packages of 2.2 are out.
However this happened also to our Mac friends: is it "automagically" fixed for you too?
Comment 31 illogic-al 2009-09-05 00:25:24 UTC
(In reply to comment #30)
> Maybe this has got fixed "for free"... I'll double check when packages of 2.2
> are out.
> However this happened also to our Mac friends: is it "automagically" fixed for
> you too?

Yep. Good to go.
Comment 32 Myriam Schweingruber 2009-09-05 09:46:36 UTC
Great, closing then :)
Comment 33 Diego 2009-09-18 14:28:34 UTC
Sorry, it's not fixed here. :(

Amarok 2.2 vc-90 nightly builds (mafia-server) 18/09/09 with KDE 4.3.0 (mafia-server), Windows XP SP3.

Could it be something fixed in 4.4 trunk and not in 4.3?

Log incoming.
Comment 34 Diego 2009-09-18 14:31:58 UTC
Created attachment 37039 [details]
Amarok 2.2 debug output on Windows.

The freeze is between second 32 and 40 in the log.
Comment 35 Mark Kretschmann 2009-10-31 09:37:43 UTC
So, it's almost November 2009 now. It appears that we don't have a single competent Windows/Mac developer who can solve this issue.

Sad state of affairs.

For those of you who are actually affected by this issue: Please help us get more Windows/Mac developers! Just spread the word, blog about it, etc. Every bit helps.
Comment 36 Diego 2009-10-31 10:24:09 UTC
As mentioned by Casper in comment #29 he is running trunk, so maybe this is fixed in 4.4svn or even 4.3.x with x >= 1. Unfortunately the nightly builds are against KDE 4.3.0...

I'm asking in the forums for others to report their experience:
http://forum.kde.org/viewtopic.php?f=59&t=83278
Comment 37 Diego 2009-11-04 12:41:40 UTC
Apart from the default Phonon backend (DS = crap, VLC = good) this is to me the latest showstopper of Amarok for Windows.

It's not that nasty (it doesn't crash anything) but it's not pleasant at all...

It persists in today's nightly together with KDE 4.3.2, so if a fix is present it's in KDE 4.4. Maybe it's Windows version dependant, who knows...
Comment 38 Myriam Schweingruber 2009-11-16 13:53:37 UTC
Changing version and target. Since most people actually use the nightly builds, this makes more sense.
Comment 39 Myriam Schweingruber 2009-12-26 12:49:55 UTC
removing keyword, pointless to push back a release if there are not enough people working on it
Comment 40 Diego 2011-01-08 16:52:57 UTC
KDE 4.5.4.
Amarok 2.3.2.
No luck.
:(
Comment 41 Myriam Schweingruber 2011-01-08 19:11:03 UTC
Could somebody please test this with a recent 2.4-git build?
Comment 42 Patrick Spendrin 2011-01-08 20:34:29 UTC
Hm, it doesn't freeze here with a freshly installed 2.3.2 version.
I use msvc as the compiler (which is -vc100).
Please remove your installation directory/do a completely fresh install, I have a good guess that this is fixed in the patched kdelibs provided now.
Comment 43 Myriam Schweingruber 2011-03-20 12:31:55 UTC
Closing for lack of feedback, most likely fixed, based on comment #42 aka The Answer :).
Comment 44 Diego 2011-03-20 13:02:08 UTC
Sorry, but I really have no time (and enough CPU cycles) to test source versions. I'll let you know when the next binary build will be out (I've tested nitrostemp installer but it doesn't work for me).