Bug: in 8.18 Stable and 9 Dp11 legacy stack import

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

Bug: in 8.18 Stable and 9 Dp11 legacy stack import

Matthias Rebbe via use-livecode
Hi

I have just spent a good few hours "playing" - I wished - with the Text
formatting of field.

Specifically It was on LC9 but I then installed 8.1.8 and the problem is on
there as well.
The problem was that all new fields (and old fields) a card had the "BOLD"
textstyle try as I might I couldn't switch off the bold unless I ticked
underline or italic or any other textstyle - There isnt a Plain button as
in version 6 anymore - or I cant find it.
If I press fixedline height and click on italic i can then switch off bold
and italic but it comes back on when i switch fixedline height off.

Anyway I did some more testing and it seems it was because this stack was
originally created in v6.11 - and I moved onto 9 when I got a corruption
that kept coming back - yes I know backups - I had MAXVs backup plugin
running and dropbox version history but they were saving the corrupted
stack although it was all fine and dandy in the IDE.

So the upshot is (I think) one of loading a legacy stack.

On a related note the corrupted stack was "losing" a substack used for
reporting  and a library stack but not alwayat the same time when I was
rebuilding from a working backup. - Lost days.

I wrote a little binary loader and managed to get the code for both stacks
back - so they were both still in the stack but were not showing in the
projectbrowser.

Can someone point me to the file where this loading of stacks is done and
the structure because I think we need some sort of stack loader for some
such instances in the future

Regards Lagi
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Bug: in 8.18 Stable and 9 Dp11 legacy stack import

Matthias Rebbe via use-livecode
Are you talking about the binary format of a stack file?
On Wed, Jan 24, 2018 at 10:35 AM Lagi Pittas via use-livecode <
[hidden email]> wrote:

> Hi
>
> I have just spent a good few hours "playing" - I wished - with the Text
> formatting of field.
>
> Specifically It was on LC9 but I then installed 8.1.8 and the problem is on
> there as well.
> The problem was that all new fields (and old fields) a card had the "BOLD"
> textstyle try as I might I couldn't switch off the bold unless I ticked
> underline or italic or any other textstyle - There isnt a Plain button as
> in version 6 anymore - or I cant find it.
> If I press fixedline height and click on italic i can then switch off bold
> and italic but it comes back on when i switch fixedline height off.
>
> Anyway I did some more testing and it seems it was because this stack was
> originally created in v6.11 - and I moved onto 9 when I got a corruption
> that kept coming back - yes I know backups - I had MAXVs backup plugin
> running and dropbox version history but they were saving the corrupted
> stack although it was all fine and dandy in the IDE.
>
> So the upshot is (I think) one of loading a legacy stack.
>
> On a related note the corrupted stack was "losing" a substack used for
> reporting  and a library stack but not alwayat the same time when I was
> rebuilding from a working backup. - Lost days.
>
> I wrote a little binary loader and managed to get the code for both stacks
> back - so they were both still in the stack but were not showing in the
> projectbrowser.
>
> Can someone point me to the file where this loading of stacks is done and
> the structure because I think we need some sort of stack loader for some
> such instances in the future
>
> Regards Lagi
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Bug: in 8.18 Stable and 9 Dp11 legacy stack import

Matthias Rebbe via use-livecode
In reply to this post by Matthias Rebbe via use-livecode
Have you tried setting the font, size and textstyle of the stack itself? That is where new fields get there properties, and old fields will use the stacks properties if nothing specific is set for a specific field.

Try typing "put  the textstyle of the mainstack" into the message box and see what you get.

Bob S



> On Jan 24, 2018, at 08:33 , Lagi Pittas via use-livecode <[hidden email]> wrote:
>
> Hi
>
> I have just spent a good few hours "playing" - I wished - with the Text
> formatting of field.
>
> Specifically It was on LC9 but I then installed 8.1.8 and the problem is on
> there as well.
> The problem was that all new fields (and old fields) a card had the "BOLD"
> textstyle try as I might I couldn't switch off the bold unless I ticked
> underline or italic or any other textstyle - There isnt a Plain button as
> in version 6 anymore - or I cant find it.
> If I press fixedline height and click on italic i can then switch off bold
> and italic but it comes back on when i switch fixedline height off.


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Bug: in 8.18 Stable and 9 Dp11 legacy stack import

Matthias Rebbe via use-livecode
In reply to this post by Matthias Rebbe via use-livecode
Hi Brian

Yes I am. It was a very insidious problem - at first I thought it was
Dropbox playing up because all the versions were faulty - but when I had it
backing up on the desktop as well using Max's plugin and checking for the
first 5 or six updates and all ok then 2 hours or more of work all bad -
not once but 3 times I then looked at the code and at the end of the stack
script there were some extraneous  characters specifically : ŽŽIDMŽŽ

If I removed and saved I would get a stack corruption on next load , if I
left them in after some changes - I would assume additions to the main
stack I'm not sure the stack would load saying it couldn't find 2
substacks. When I loaded the stack as a binary the full stack scripts of
both substacks were there but they could not be seen in the PB.

As I say a simple loader that could search for a "stack" and save it as a
single stack file would be a real boon - It doesn't happen often (now)
thank god but when it does it can save hours of time.

Regards Lagi

On 24 January 2018 at 18:52, Brian Milby <[hidden email]> wrote:

> Are you talking about the binary format of a stack file?
> On Wed, Jan 24, 2018 at 10:35 AM Lagi Pittas via use-livecode <
> [hidden email]> wrote:
>
>> Hi
>>
>> I have just spent a good few hours "playing" - I wished - with the Text
>> formatting of field.
>>
>> Specifically It was on LC9 but I then installed 8.1.8 and the problem is
>> on
>> there as well.
>> The problem was that all new fields (and old fields) a card had the "BOLD"
>> textstyle try as I might I couldn't switch off the bold unless I ticked
>> underline or italic or any other textstyle - There isnt a Plain button as
>> in version 6 anymore - or I cant find it.
>> If I press fixedline height and click on italic i can then switch off bold
>> and italic but it comes back on when i switch fixedline height off.
>>
>> Anyway I did some more testing and it seems it was because this stack was
>> originally created in v6.11 - and I moved onto 9 when I got a corruption
>> that kept coming back - yes I know backups - I had MAXVs backup plugin
>> running and dropbox version history but they were saving the corrupted
>> stack although it was all fine and dandy in the IDE.
>>
>> So the upshot is (I think) one of loading a legacy stack.
>>
>> On a related note the corrupted stack was "losing" a substack used for
>> reporting  and a library stack but not alwayat the same time when I was
>> rebuilding from a working backup. - Lost days.
>>
>> I wrote a little binary loader and managed to get the code for both stacks
>> back - so they were both still in the stack but were not showing in the
>> projectbrowser.
>>
>> Can someone point me to the file where this loading of stacks is done and
>> the structure because I think we need some sort of stack loader for some
>> such instances in the future
>>
>> Regards Lagi
>> _______________________________________________
>> use-livecode mailing list
>> [hidden email]
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Bug: in 8.18 Stable and 9 Dp11 legacy stack import

Matthias Rebbe via use-livecode
Hi Lagi,

If you could file a bug describing how you reproduce the stack
corruption, and send us the stack to use to reproduce we'll look into
it.

It sounds like there is a problem somewhere with loading of pre-7 stacks
with certain field content - we'd obviously like to fix this :)

Warmest Regards,

Mark.

--
Mark Waddingham ~ [hidden email] ~ http://www.livecode.com/
LiveCode: Everyone can create apps

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Bug: in 8.18 Stable and 9 Dp11 legacy stack import

Matthias Rebbe via use-livecode
Hi Mark,

I have rethunked overnight and I'm not sure whether the stack was "sort of
corrupted" but working and  might have something to do with it. I am under
pressure with some deadlines till the middle of next week but I will take
out an older version of the stack that was not corrupted and see if that
has the same import problem - and get you a version with the problem as
well.

It might ...  heck - I just loaded  a very old version from last year into
lC9 and  the bold switches on and off ok ,  but It brought up a problem I
had with version 9 (maybe 8) before that had me stumped then  and now for a
good few minutes..

To recreate this "problem" created a new stack in 9 that is 1290 wide by
2048 (that wasn't the size of the stack which runs on different tablets and
phones and I automatically resize  but these sizes work to show the bug).

If you set the scalefactor  to 0.35 or 0.4 or 0.5 etc and its location is
more than a few 100 pixels from the left edge of the screen you can't drag
and drop any of the controls onto the card/stack in fact if I drop the
control onto the desktop it will then be placed on the card/stack. It gets
even more bizarre  if you have a second stack on the screen not even
selected but more to the left - the control that will not drop onto the
"selected stack" if when I drop it on the target stack will show up on the
other stack - in fact you can see it changing to the blue color. Even more
weird In fact when a control drops onto the stack it's not even  close to
where you placed it - this does not happen on the 6.xx series. In fact you
can drop controls on the stack by dropping them to the right of it ON THE
DESKTOP.

Anyway I've wasted a good couple of hours this morning "playing" but I will
get something together for next week and maybe a video as my ramblings are
probably incoherent.

Regards Lagi




On 25 January 2018 at 12:00, Mark Waddingham via use-livecode <
[hidden email]> wrote:

> Hi Lagi,
>
> If you could file a bug describing how you reproduce the stack corruption,
> and send us the stack to use to reproduce we'll look into it.
>
> It sounds like there is a problem somewhere with loading of pre-7 stacks
> with certain field content - we'd obviously like to fix this :)
>
> Warmest Regards,
>
> Mark.
>
> --
> Mark Waddingham ~ [hidden email] ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Bug: in 8.18 Stable and 9 Dp11 legacy stack import

Matthias Rebbe via use-livecode
In reply to this post by Matthias Rebbe via use-livecode
Lagi-

> If I removed and saved I would get a stack corruption on next load , if I
> left them in after some changes - I would assume additions to the main
> stack I'm not sure the stack would load saying it couldn't find 2
> substacks. When I loaded the stack as a binary the full stack scripts of
> both substacks were there but they could not be seen in the PB.

Do send a corrupted version of the stack to Mark. I had a similar
problem last week with dp11 saving in legacy format and sent him a
corrupted stack to examine. More data points would be good.

--
  Mark Wieder
  [hidden email]

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode