Maximum Call Stack Error

I’ve heard that someone is having trouble loading a game and it crashing with a RangeError: Maximum Call Stack Exceeded

It’s happening on an iPhone when loading a game from Lost Heir 1 into Lost Heir 2.

Any idea what’s causing this or how to fix it?

Looking back through old messages, I see that this same error happened to at least 3 forum members: @DarthShit, @Ryuu, @jankmaster98

I also see that when I last spoke to CoG about it, they didn’t know what was causing it or how to repeat the error.

I wonder if this problem has resolved itself or if it’s still occuring. I also wonder if it’s occuring in any other games.

There was no thread devoted to this problem. If it’s still happening, perhaps we can gather the information needed in order to fix it. Grrr, I hate bugs. :slight_smile:

Im taking a shot into the blue here, but if its only on iphone… maybe ios deems the download data as a call or something? Multiple even.
Though if its that the only solution would be to get an android phone

Also from LH2 to LH3. I don’t know if it still happens, because I wasn’t playing LH for some time. Android ? Never

There probably is something broken with the iPhone JavaScript engine.

Not the developer of CS here, but can you list out what’s your OS version and what iPhone you’re playing on?

The person having trouble was using an iPhone 8 with iOS 11.

They created a new email address, and although they lost their saves, they are able to use the game again. Not ideal, but better than nothing.

Hmm. That’s quite newer than I expected. The issue is probably within CS itself, I’m giving a guess at either the paragraph builder or the fairmaths implementation.

I don’t have a device to test it myself, so I can’t be honestly sure.

Edit: Glanced over CS’ source code once more. It seems that stacks are applied in practically everywhere. Well, that kills my blind guess, but that goes to show the problem could come from anywhere in CS.

1 Like

This problem occurs specifically when a person tries to load a save game from Lost Heir 1 in order to play Lost Heir 2. That means that it’s occurring somewhere that I have no control over.

It’s a known error, but as far as I know, it’s still a mystery and they can’s reliably repeat it.

I had ploblems (like I have wrought, I hadn’t played for months), with iOS 10.2.1, on IPhone 6


Hope photo from last minute upload.

It loaded, and it happens also when loading from LH2 to LH3
Also, in my case the problem is when you are loading second time. At first game uploaded, but when you and the game, or restart, and load another save (or the same once more), it happens, and it keeps happening. To play the game once more from previous saves I must uninstall and reinstall the game. It’s painful, to constantly uninstall and reinstall.

1 Like