Page 1 of 1

iOS Error

Posted: Tue Mar 13, 2018 8:37 pm
by chelling
I am working on an iOS app update and suddenly started having problems. It started after adding this to the stack script to stop text to speech once a use has tapped/clicked on a button. stopGenieSpeech has been added to all buttons.

command stopGenieSpeech
if isMobile() then sunnYspeechStop "Now"
end stopGenieSpeech

So, I added this to the stack script: answer "There was an error" && pError. In the simulator, this is coming back...a lot "There was an error 2,0,0". These are my questions:

I know that 2 indicates recursion error. What is the 0,0?
Is recursion in LiveCode due to functions or an out of control loop?
Any suggestions?

I am also logging errors to the console, but what I am able to find is inconsistent and to be frank above my pay grade.

This is the set-up:
Mac OS 10.12.6
LiveCode Business 8.1.6
Xcode 8
Xcode 8.3.3

I have a custom font (Blogger Sans-Bold.ttf) in the Add Files pane in addition to the external sunnytext2speech.lcext 2.1.

Re: iOS Error

Posted: Wed Mar 14, 2018 4:34 pm
by jacque
If removing that single command fixes the problem then I'd suspect an issue with the external. I'd check with the author to see if there's a solution, or for help tracking down the cause.

Re: iOS Error

Posted: Wed Mar 14, 2018 7:43 pm
by jmburnod
I use sunnyspeechstop "now" without issue with this setup
OS X 10.12.3
LC 8.1.6
xCode 8.3.3

I didn't try with LC 8.1.6

But I get an error when I try to compile on OS X 10.13 with
LC 8.1.9 and xCode 9.2 (requisite at first April by Apple for new app)
..linking for arm (arm64) failed with undefined symbols for architecture arm64:
"__libinfoptr_sunnytext2speech"...
I sent a message to Thierry about this

Re: iOS Error

Posted: Fri Mar 16, 2018 2:28 am
by chelling
Did Thierry respond to your message?

Re: iOS Error

Posted: Sat Mar 17, 2018 11:19 am
by jmburnod
Hi All,

Good news, I'm able to use xCode 9.2 to install an app (LC 8.1.6, xCode 8.3.3) on iOS 11.2.6.
sunnyspeechstop "now" works fine
Did Thierry respond to your message?
Usually Thierry answers quickly.
I saw this message on his site.
Temporary interruption of activity for personal reasons.
Use the contact button for further information.
I'm really sorry about that
Best regards
Jean-Marc

Re: iOS Error

Posted: Sat Mar 17, 2018 3:04 pm
by chelling
Thanks for letting us know Jean-Marc.

Re: iOS Error

Posted: Sun Mar 25, 2018 9:17 pm
by chelling
After a lot of incremental testing, the error seems to be related to this line:

if the environment is "mobile" then mobileClearTouches

Has anyone else experienced this?

Re: iOS Error

Posted: Sun Mar 25, 2018 10:36 pm
by quailcreek
Yes I have seen this. I reported it as a bug in 2016.

https://quality.livecode.com/show_bug.cgi?id=17035

Re: iOS Error

Posted: Sun Mar 25, 2018 11:48 pm
by chelling
Thanks Tom. I guess I will use empty mouseUp / mouseDown handlers to catch these. Hopefully that will work.