LC crashes on importing HyperCard stack

If you find an issue in LiveCode but are having difficulty pinning down a reliable recipe or want to sanity-check your findings with others, this is the place.

Please have one thread per issue, and try to summarize the issue concisely in the thread title so others can find related issues here.

Moderator: Klaus

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

LC crashes on importing HyperCard stack

Post by mwieder » Mon Jun 08, 2020 8:25 pm

This weekend I tried something I haven't tried in a long time: importing an old HyperCard stack into LiveCode.

I realize there have been discussions about the fact that importing HyperCard stacks no longer works, but I'm surprised and dismayed to find that attempting to do so crashes LiveCode 9.6.0 with a segfault. I did manage to import the stack using Revolution 4.6.4, after disabling errors and messages, then saving and fixing LotsOfThings, as expected when updating scripts that are decades old. But it doesn't seem right that selecting "Open stack" from the menubar and attempting to open a file of any type should cause the whole thing to come tumbling down.
Last edited by mwieder on Tue Jun 09, 2020 9:10 pm, edited 1 time in total.

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: HyperCard importing

Post by bogs » Mon Jun 08, 2020 10:56 pm

I wonder whatever made you try to do that. Not that I think it is bad, but it sounds like something I would do, not like something I expect to see anyone else attempt Image
Image

kdjanz
Posts: 300
Joined: Fri Dec 09, 2011 12:12 pm

Re: HyperCard importing

Post by kdjanz » Mon Jun 08, 2020 11:04 pm

My rapidly failing memory is trying to remind me of a discussion I heard about this, although the details are pretty hazy...

I think the ability to open Hypercard directly went away with v7 and above. The solution seemed to be to open it with v6 and clean up before saving it now as a new LiveCode stack and then opening with the current version. Don't quote me on this, but I seem to remember it coming up in one of Elanor's Beginners Covid Q&A sessions.

Kelly

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: HyperCard importing

Post by mwieder » Mon Jun 08, 2020 11:10 pm

Yeah, I know it can't be done with current versions, although I'm not sure of the technical details why not. I'm just surprised it crashes so dramatically. It shouldn't be possible to crash things from the IDE. IMO.

kdjanz
Posts: 300
Joined: Fri Dec 09, 2011 12:12 pm

Re: HyperCard importing

Post by kdjanz » Tue Jun 09, 2020 5:38 am

Agreed! Hope Mark and the team see this - or maybe you can send them this poison stack for testing.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10097
Joined: Fri Feb 19, 2010 10:17 am

Re: HyperCard importing

Post by richmond62 » Tue Jun 09, 2020 10:18 am

Personally I'd dig out an ancient computer (I have lots of them) and try to convert my HC stacks using
the earliest recension of LiveCode/Revolution I could manage and then work with that output in "the latest and greatest."

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: HyperCard importing

Post by mwieder » Tue Jun 09, 2020 3:16 pm

Folks - to be clear, I'm not concerned here with converting HyperCard stacks.
I'm concerned about LiveCode crashing.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10097
Joined: Fri Feb 19, 2010 10:17 am

Re: HyperCard importing

Post by richmond62 » Tue Jun 09, 2020 3:50 pm

But it doesn't seem right that selecting "Open stack" from the menubar and attempting to open a file of any type should cause the whole thing to come tumbling down.
Just toooooooooo lazy to read that far before my second cup of coffee. Sorry. 8)

Well [MacOS 10.15.5 / LC 9.6.0 Community] I wrote a text file in BBEdit and saved it with the name 'cheese.livecode',
then opened it with LiveCode:
-
fromage.jpg

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: HyperCard importing

Post by bogs » Tue Jun 09, 2020 3:54 pm

Um. Mark is pointing out that Lc hard crashes on opening an Hc stack, and you are pointing out...what, that livecode doesn't open text files, and displays a warning when you try?
Image

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: HyperCard importing

Post by mwieder » Tue Jun 09, 2020 3:56 pm

Right. That's what I'd expect.
What I got was a hard LC crash back to the system.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10097
Joined: Fri Feb 19, 2010 10:17 am

Re: HyperCard importing

Post by richmond62 » Tue Jun 09, 2020 4:31 pm

bogs wrote:
Tue Jun 09, 2020 3:54 pm
Um. Mark is pointing out that Lc hard crashes on opening an Hc stack, and you are pointing out...what, that livecode doesn't open text files, and displays a warning when you try?
attempting to open a file of any type
Yes, I did know that: I'm not quite THAT stupid. 8)

I also got a complete LiveCode 9.6.0 crash when I tried to open a HyperCard stack: no error message, no nuffin.

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: HyperCard importing

Post by bogs » Tue Jun 09, 2020 5:04 pm

richmond62 wrote:
Tue Jun 09, 2020 4:31 pm
attempting to open a file of any type
Yes, I did know that: I'm not quite THAT stupid.
I don't think your 'stupid' at all, I just wonder sometimes about your interpretation of things. For instance, your quote from his post is really out of context, he isn't indicating it crashes when opening any file, but that it shouldn't crash no matter what type of file your opening.
mwieder wrote:
Mon Jun 08, 2020 8:25 pm
But it doesn't seem right that selecting "Open stack" from the menubar and attempting to open a file of any type should cause the whole thing to come tumbling down.
i.e., attempting to open an old Hc stack should not make the IDE crash, nor should opening any other type of file, the IDE should give a warning and exit gracefully, as your example (a text file) did.
Image

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10097
Joined: Fri Feb 19, 2010 10:17 am

Re: HyperCard importing

Post by richmond62 » Tue Jun 09, 2020 5:35 pm

I just wonder sometimes about your interpretation of things.
Well, as my Granny used to say, "Taste is allus i the gab." (Taste is always in the mouth). 8)

decompress this (a HyperCard stack) and "have a go with it".
Attachments
19th Century Technology.zip
(23.02 KiB) Downloaded 128 times

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7390
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: HyperCard importing

Post by jacque » Tue Jun 09, 2020 5:49 pm

I keep an old copy of LC 6 around just for that reason, though I haven't had to do an HC conversion in a very long time.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10045
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: HyperCard importing

Post by FourthWorld » Tue Jun 09, 2020 6:14 pm

You'd think the old HC-parsing routines that crash could be stubbed out so it doesn't crash.

You'd think it would be possible to play a video on Linux too. Or a browser widget that doesn't freeze up Linux.

Clearly they're preoccupied. Can any of these paper cuts be handled by the community?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply