iOS Error
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
iOS Error
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.
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.
-
- VIP Livecode Opensource Backer
- Posts: 7235
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: iOS Error
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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: iOS Error
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)
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)
I sent a message to Thierry about this..linking for arm (arm64) failed with undefined symbols for architecture arm64:
"__libinfoptr_sunnytext2speech"...
https://alternatic.ch
Re: iOS Error
Did Thierry respond to your message?
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: iOS Error
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
I saw this message on his site.
Jean-Marc
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
Usually Thierry answers quickly.Did Thierry respond to your message?
I saw this message on his site.
Best regardsTemporary interruption of activity for personal reasons.
Use the contact button for further information.
I'm really sorry about that
Jean-Marc
https://alternatic.ch
Re: iOS Error
Thanks for letting us know Jean-Marc.
Re: iOS Error
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?
if the environment is "mobile" then mobileClearTouches
Has anyone else experienced this?
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
- Location: McKenna, WA
Re: iOS Error
Yes I have seen this. I reported it as a bug in 2016.
https://quality.livecode.com/show_bug.cgi?id=17035
https://quality.livecode.com/show_bug.cgi?id=17035
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14
Re: iOS Error
Thanks Tom. I guess I will use empty mouseUp / mouseDown handlers to catch these. Hopefully that will work.