Replies: 6 comments 1 reply
-
Perhaps the xml reader ? |
Beta Was this translation helpful? Give feedback.
-
Hi, welcome back.
In songfile.cpp, function MusE::read() at line 1174, it is supposed to ignore the first file line I stepped through the code and it appears to be functioning correctly here. Set a breakpoint at line 1180 where it says Run the debugger and when it stops at the breakpoint, step through the code and In particular, watch these two lines for the values of 'token' and 'tag':
The sequence should progress as follows: For the first file line, 'token' should say 'Proc', 'tag' should say "xml version=1.0", and it Next, for the second line, 'token' should say "TagStart" and 'tag' should say "muse". On the next for loop iteration, 'token' should say "Attribut" and 'tag' should say "version".
If this section runs, what are the values of the two variables 'int major' and 'int minor' ? If you cannot run a debugger, instead try inserting a diagnostic print line at line 1185, like this:
Run the app and observe the printout. Maybe the reader is processing file line 1 when in fact it should be ignoring it? Good luck. |
Beta Was this translation helpful? Give feedback.
-
If you cannot run a debugger, then in addition to the diagnostic print line mentioned above,
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your help. Normally the Warning Messagebox prints " File version is -1.-1" not 1.0 Xml::Xml(FILE* _f) What is strange is that the port to qt6 does not affect any of the files concerned. After the bug reading "default.med" the program seems to work normally. I think of subtle QT change ? .Looks like a problem reading default.med xml file at startup. I'm going to try your proposals then download and build edb-debugger to do some tracing. Sorry for my english. |
Beta Was this translation helpful? Give feedback.
-
OK Thanks for the update. If you would like, I can recommend either QtCreator or KDevelop. Of course, there may be some extra learning involved. No worries, which ever way works best for you. Tim. |
Beta Was this translation helpful? Give feedback.
-
After giving up once, I resumed debugging with qtcreator and found that the problem came from the lines Qt5 parsing gives -> "version" I will be able to continue my tests and maybe make a pullrequest if all goes well. Thanks for your help |
Beta Was this translation helpful? Give feedback.
-
I made a patch to port muse to qt6.
The port seems to work but I have a problem when booting up and I can't solve it.
I found the faulty code (songfile.cpp) but don't understand why the error occurs.
Beta Was this translation helpful? Give feedback.
All reactions