V5.2 Migration - weird messages about a jpg #Bug
Cross post from private email
|
|
Gavin, 0 - Attaching a copy of your v5.1.2a .xtc file would be much appreciated to aid diagnosis. Adam
|
|
Dave Bullis
We've tightened up some of the checking we do on .xtc/.xtp files.
In particular you might see an error "Track segment ?? not on Path" or "Unknown segment type" The indicate problems with the input files. In general, as Adam says, we need the files in question and the exact steps involved. Dave
|
|
Gavin Dewar
The "weird jpg" was just a screen stip I took of the error message which I had inclluded in my email to Adam.
I initially found the problem appeared to be a fault in a "custom turnout" I had setup a number of years ago - a return loop with a couple of points included.
When I edited the parameters file to remove it - the original problem disappeared
But then I found I still had problems when saving in Version 5-2-0 GA
and then getting errors when reloading the file, with only part of the layout being displayed. After a lot of to & froing between 5-2-0 & 5-1-2a
- Removing various layers & individual items: a) Load original in 5-1 - remove layers/items & save with new name. When I remove the four of these I had in two layers, then the new version now works
|
|
Gavin Dewar
The <cnmakaiimooadjca.jpg> and <lnchablgpehkadgd.jpg> were screen snips I sent to Adam when I first contacted him about my problem with Version 5-2-0
|
|
Gavin Dewar
Just tried a new blank file, then Draw > Notes > Comment, Placed the default Note on drawing. Then File > Save and immediate crash out exit from file. !! Restart 5-2 - Yes to Offer to recover - blank file. Also tried a few tracks - no problem. Then again Draw > Notes > Commen, Placed the default Note on drawing. Immediate crash on Saveing.
|
|
There does seem to be something "odd" about Notes in general (and not just Comments). I am not seeing them added properly on Mac (the icon is not showing). They are being written out properly for me on save, though. So that's one thing to be addressed. ^^ Ignore me -> You have to be below scale 1:16 to see the note icons. :-( Can we see your .xtc file (v5.1.2a) please?
|
|
Also, can we get precision on which platforms people are using, please? There are sometimes (as it seems in this case) differences - and we then can try running in the right place.
|
|
Gavin Dewar
Hi Adam The following is modified to operate correctly in v5.2.0 So repeating direct to you a number of years ago - a return loop with a couple of points included.
When I edited the parameters file to remove it - the original problem disappeared
But then I found I still had problems when saving in Version 5-2-0 GA
and then getting errors when reloading the file, with only part of the layout being displayed. After a lot of to & froing between 5-2-0 & 5-1-2a
- Removing various layers & individual items: a) Load original in 5-1 - remove layers/items & save with new name. When I remove the four of these I had in two layers, then the new version now works
Alsotried a new blank file, then Draw > Notes > Comment, Placed the default Note on drawing. I am using Windows10 - with all updates. Gavin
|
|
Gavin, Please attach the .xtc here in the forum, or reply to the email I sent you directly with them. ---------- Now we are homing in on Notes and Windows, involving bad loading and saving, we are getting somewhere because there are BOTH platform specific code parts AND the format of the Notes entries has changed a lot between versions. The old code at parm <12 and >9 was a single line of setup, several lines of content and a terminating END
the new format is just one line
The text string(s) (for Windows is also UTF8 encoded rather than system codepage). The new code should read in the old parmlevels of .xtc correctly, however. I suspect that the issue is somewhere in all this. By reading in a V5.1.2a NOTE badly it is likely mangling some definition following it (hence your missing stuff) and then writing the badly read note out in the new V5.2 format causes some exception (there is an assert if the type of the Note object is not >0 and <2, for example). There even seems to be an issue with writing a simple note at V5.2 level on Windows based on other's observations as well. The input .xtc will show us a lot, I expect. Adam
|
|
Gavin Dewar
Martin
|
|
Thanks for the file, that helped a lot, Gavin. There is another issue that I just found and have fixed with Note as well. Select was abending on Notes that were >76 characters long. I confirmed that the 5.1.2a Note format of your file would read and then be rewritten properly in 5.2 format.
|
|
Here's how to add a file to a post
|
|