.msc file impossible to re-open

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

.msc file impossible to re-open

Delvaux Bernard
Hello
 
I'm using mscore with Ubuntu studio 8.04, saving my file as .msc
But since there has been some updates or something else (regarding the general system), I cannot open anymore a file that I've saved as .msc
When I open the .msc file with a text editor, there are many lines looking like
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
 
When I manually remove them, I can open again my native file with mscore, nice and clean...
I've tried to reinstall mscore (vie Synaptic package manager), but the problems remains...
 
Any suggestions?
 
victor

__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit├ęs
http://mail.yahoo.fr Yahoo! Mail
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer

Reply | Threaded
Open this post in threaded view
|

Re: .msc file impossible to re-open

wschweer
Administrator
Hi,

this is a problem with Qt4.4. You either have to reinstall Qt4.3 or compile the
current svn version of mscore yourself.

Werner

On Sonntag 18 Mai 2008, Delvaux Bernard wrote:

> Hello
>
>   I'm using mscore with Ubuntu studio 8.04, saving my file as .msc
>   But since there has been some updates or something else (regarding the general system), I cannot open anymore a file that I've saved as .msc
>   When I open the .msc file with a text editor, there are many lines looking like
>
>   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
>
>   When I manually remove them, I can open again my native file with mscore, nice and clean...
>   I've tried to reinstall mscore (vie Synaptic package manager), but the problems remains...
>
>   Any suggestions?
>
>   victor
>
>  __________________________________________________
> Do You Yahoo!?
> En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit├ęs
> http://mail.yahoo.fr Yahoo! Mail




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: .msc file impossible to re-open

Toby Smithe-2
On Sun, May 18, 2008 at 10:43 PM, Werner Schweer <[hidden email]> wrote:
> Hi,
>
> this is a problem with Qt4.4. You either have to reinstall Qt4.3 or compile the
> current svn version of mscore yourself.

Hi Werner, could you elaborate a bit on the problem, and the fix in
svn (ie, which commit contains the fix)?, as I would like to backport
the fix to the Ubuntu Hardy package.

Thanks,

Toby

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: .msc file impossible to re-open

wschweer
Administrator
On Montag 19 Mai 2008, Toby Smithe wrote:
> On Sun, May 18, 2008 at 10:43 PM, Werner Schweer <[hidden email]> wrote:
> > Hi,
> >
> > this is a problem with Qt4.4. You either have to reinstall Qt4.3 or compile the
> > current svn version of mscore yourself.
>
> Hi Werner, could you elaborate a bit on the problem, and the fix in
> svn (ie, which commit contains the fix)?, as I would like to backport
> the fix to the Ubuntu Hardy package.

in Qt4.4 the QTextDocument->toHtml() method produces html which is not valid
xml and cannot be parsed by the qt DOM module by prepending a line like
<!DOCTYPE HTML PUBLIC ...
Mscore 0.9.2 has already code to deal with this qt4.4 behaviour but i overlooked
one place:

In file score.cpp at line 449 change:
            xml << rights->toHtml("UTF-8") << '\n';
into:
            xml.writeHtml(rights->toHtml("UTF-8"));
which should fix the problem.

Werner


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: .msc file impossible to re-open

Toby Smithe-2
Awesome!
I should be able to get on a fix in Hardy when i get home later this evening.

On 5/20/08, Werner Schweer <[hidden email]> wrote:

> On Montag 19 Mai 2008, Toby Smithe wrote:
>> On Sun, May 18, 2008 at 10:43 PM, Werner Schweer <[hidden email]> wrote:
>> > Hi,
>> >
>> > this is a problem with Qt4.4. You either have to reinstall Qt4.3 or
>> > compile the
>> > current svn version of mscore yourself.
>>
>> Hi Werner, could you elaborate a bit on the problem, and the fix in
>> svn (ie, which commit contains the fix)?, as I would like to backport
>> the fix to the Ubuntu Hardy package.
>
> in Qt4.4 the QTextDocument->toHtml() method produces html which is not valid
> xml and cannot be parsed by the qt DOM module by prepending a line like
> <!DOCTYPE HTML PUBLIC ...
> Mscore 0.9.2 has already code to deal with this qt4.4 behaviour but i
> overlooked
> one place:
>
> In file score.cpp at line 449 change:
>             xml << rights->toHtml("UTF-8") << '\n';
> into:
>             xml.writeHtml(rights->toHtml("UTF-8"));
> which should fix the problem.
>
> Werner
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: .msc file impossible to re-open

Toby Smithe-2
On Tue, May 20, 2008 at 3:22 PM, Toby Smithe <[hidden email]> wrote:
> Awesome!
> I should be able to get on a fix in Hardy when i get home later this evening.

Ok, I've successfully added a patch to fix this, and uploaded to my
PPA; it's in the build queue right now. See [0] for sources.list
entries, and please test :-)

I won't be able to get an updated package into hardy-updates (yet, if
at all), as my package has not yet hit Debian, and as such isn't
updated in Intrepid. Stable Release Update policy requires that
patches be first tested in the current development release before they
are even considered for inclusion (and I'm too busy with exam work to
argue that this patch is so trivial that it's an unimportant point).

Cheers,

Toby

[0] https://launchpad.net/~tsmithe/+archive

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: .msc file impossible to re-open

Toby Smithe-2
On Tue, May 20, 2008 at 6:37 PM, Toby Smithe <[hidden email]> wrote:
> On Tue, May 20, 2008 at 3:22 PM, Toby Smithe <[hidden email]> wrote:
>> Awesome!
>> I should be able to get on a fix in Hardy when i get home later this evening.
>
> Ok, I've successfully added a patch to fix this, and uploaded to my
> PPA; it's in the build queue right now. See [0] for sources.list
> entries, and please test :-)

Hmm, FTBFS...

Werner:

/build/buildd/mscore-0.9.1d+dfsg/mscore/mscore/score.cpp: In member
function 'void Score::write(Xml&)':
/build/buildd/mscore-0.9.1d+dfsg/mscore/mscore/score.cpp:312: error:
'class Xml' has no member named 'writeHtml'
/build/buildd/mscore-0.9.1d+dfsg/mscore/mscore/score.cpp: In member
function 'MeasureBase* Score::searchLabel(const QString&,
MeasureBase*)':
/build/buildd/mscore-0.9.1d+dfsg/mscore/mscore/score.cpp:1561:
warning: empty body in an if-statement

Does this mean that Qt 4.4 (which was in Backports?) provides that
member, and as backports are not enabled for the PPA buildds, I won't
be able to build that package with the Qt4.4 patch in my PPA?

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: .msc file impossible to re-open

wschweer
Administrator
On Dienstag 20 Mai 2008, Toby Smithe wrote:

> On Tue, May 20, 2008 at 6:37 PM, Toby Smithe <[hidden email]> wrote:
> > On Tue, May 20, 2008 at 3:22 PM, Toby Smithe <[hidden email]> wrote:
> >> Awesome!
> >> I should be able to get on a fix in Hardy when i get home later this evening.
> >
> > Ok, I've successfully added a patch to fix this, and uploaded to my
> > PPA; it's in the build queue right now. See [0] for sources.list
> > entries, and please test :-)
>
> Hmm, FTBFS...
>
> Werner:
>
> /build/buildd/mscore-0.9.1d+dfsg/mscore/mscore/score.cpp: In member
> function 'void Score::write(Xml&)':
> /build/buildd/mscore-0.9.1d+dfsg/mscore/mscore/score.cpp:312: error:
> 'class Xml' has no member named 'writeHtml'
> /build/buildd/mscore-0.9.1d+dfsg/mscore/mscore/score.cpp: In member
> function 'MeasureBase* Score::searchLabel(const QString&,
> MeasureBase*)':
> /build/buildd/mscore-0.9.1d+dfsg/mscore/mscore/score.cpp:1561:
> warning: empty body in an if-statement
>
> Does this mean that Qt 4.4 (which was in Backports?) provides that
> member, and as backports are not enabled for the PPA buildds, I won't
> be able to build that package with the Qt4.4 patch in my PPA?
sorry, i mixed up the versions. My patch was for mscore-0.9.2. The diff
for mscore-0.9.1 is attached. It adds Xml->writeXml() and some more places
were to call this method. The patched source compiles/works with qt4.3 and
qt4.4. The bug can be seen when compiling mscore-0.9.1 with qt4.4 and
saving/loading demo file sonata16.msc.

Werner



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer

mscore-0.9.1.diff (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: .msc file impossible to re-open

Toby Smithe-2
On Wed, May 21, 2008 at 9:22 AM, Werner Schweer <[hidden email]> wrote:
> sorry, i mixed up the versions. My patch was for mscore-0.9.2. The diff
> for mscore-0.9.1 is attached. It adds Xml->writeXml() and some more places
> were to call this method. The patched source compiles/works with qt4.3 and
> qt4.4. The bug can be seen when compiling mscore-0.9.1 with qt4.4 and
> saving/loading demo file sonata16.msc.

Thanks muchly. The fixed package is now published in my PPA for Hardy.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: .msc file impossible to re-open

Jim Burton
Toby Smithe-2 wrote
On Wed, May 21, 2008 at 9:22 AM, Werner Schweer <ws@seh.de> wrote:
> sorry, i mixed up the versions. My patch was for mscore-0.9.2. The diff
> for mscore-0.9.1 is attached. It adds Xml->writeXml() and some more places
> were to call this method. The patched source compiles/works with qt4.3 and
> qt4.4. The bug can be seen when compiling mscore-0.9.1 with qt4.4 and
> saving/loading demo file sonata16.msc.

Thanks muchly. The fixed package is now published in my PPA for Hardy.
Hi Toby, this problem is still in Hardy. When you say "published in my PPA" does that mean I can get hold of it?

Thanks,

Jim