Bug 294164 - Kmid launches never loads mid file
Summary: Kmid launches never loads mid file
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmid
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: 2.4.0
Platform: Compiled Sources Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Unknown
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-15 17:32 UTC by blinkycomix
Modified: 2018-09-03 03:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description blinkycomix 2012-02-15 17:32:45 UTC
Version:           2.4.0 (using Devel) 
OS:                MS Windows

Kmid launches- never loads mid file- not ready appears in bar. Kar file doesn't load either.

Reproducible: Always

Steps to Reproduce:
Launch program- try to play a midi song- karaoke won't load. The file won't load. Never hear music or see karaoke. 

Actual Results:  
The message in the bar at the top reads "not ready". Never recovers.

Expected Results:  
Music plays. Karaoke appears.

OS: WindowsNT (i686) release Windows 7
Compiler: cl.exe
Comment 1 Unknown 2012-02-28 06:13:44 UTC
I can confirm this bug, and reproduce the wrong behavior with the precompiled packages distributed by kde-windows. Unfortunately, the 'emerge' build system offered by kde-windows is too buggy and the people involved is so unfriendly that I don't have the means or the motivation to debug and fix it by myself. As a consequence, I'm resigning as kmid maintainer. 

If you have installed kmid compiling the kde-windows sources by yourself, good for you!. Maybe you can try and fix the bug yourself, and even become the new kmid maintainer.

As a final clue, my suspicions are that the problem comes from a workaround made to circunvent an old problem in kde-windows. Look at "win/winmidiobject.cpp", see line 614 and following (method void WinMIDIObject::openFile).

        //TODO: looks like KIO::NetAccess::download() is broken in Windows/KDE 4.4.0
        KUrl url(fileName);
        kDebug() << fileName;
        if (fileName.startsWith(QLatin1String("file://"), Qt::CaseInsensitive)) {
            kDebug() << "KUrl::localFile:" << url.toLocalFile();
            tmpFile = fileName.mid(7);
            kDebug() << "workaround, loading" << tmpFile;
        } else {
            kDebug() << "download:" << url;
            KIO::NetAccess::download(url, tmpFile, 0);
        }

My guess is that maybe KIO has been fixed lately. In this case, all the above code can be replaced by this line:

	KIO::NetAccess::download(fileName, tmpFile, 0)

Good luck.
Comment 2 blinkycomix 2012-03-06 01:55:06 UTC
I can't find the "win/winmidiobject.cpp" file to change. I also can't find the file in the KDE directory either. My guess is that the karaoke can't load so the midi file refuses to follow.
Comment 3 Andrew Crouthamel 2018-09-03 03:30:17 UTC
Hello! Sorry to be the bearer of bad news, but this project has been
unmaintained for many years and I will be closing this bug.