LC8 (DP14) Browser crashes on IOS 9.2.1
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
LC8 (DP14) Browser crashes on IOS 9.2.1
XCODE 7.2
When i build a simpel stack, it crashes immediately when navigating to the card with the browser widget included.
If i check " Build 32 bit slice only" inside the standalone Application settings
the problem disappears.
What could be the problem?
When i build a simpel stack, it crashes immediately when navigating to the card with the browser widget included.
If i check " Build 32 bit slice only" inside the standalone Application settings
the problem disappears.
What could be the problem?
Re: LC8 (DP14) Browser crashes on IOS 9.2.1
Hi mimuBUSkYgY,
Maybe the 64bit implemenation is not yet ready for primetime?
Please consider to bug report this here: http://quality.runrev.com
Best
Klaus
probably the fact that LC 8 is still an early developer preview!mimuBUSkYgY wrote:What could be the problem?

Maybe the 64bit implemenation is not yet ready for primetime?
Please consider to bug report this here: http://quality.runrev.com
Best
Klaus
Re: LC8 (DP14) Browser crashes on IOS 9.2.1
Thanks Klaus for your answer,
can you or somebody else confirm this error ?
If so, we should add this to the bugtracker
can you or somebody else confirm this error ?
If so, we should add this to the bugtracker
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
Re: LC8 (DP14) Browser crashes on IOS 9.2.1
Hi mimuBUSkYgY,
What code do you have on the card that has the browser?
What code do you have on the card that has the browser?
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14
Re: LC8 (DP14) Browser crashes on IOS 9.2.1
I tried it with this minimum code
card script:
on openCard
set the URL of widget "myBrowser" to "http://www.google.com"
end openCard
or
on openCard
launch url "http://www.google.com" in widget " myBrowser"
end openCard
stackscript
on preOpenStack
set the fullscreenmode of this stack to "exactfit"
end preOpenStack
card script:
on openCard
set the URL of widget "myBrowser" to "http://www.google.com"
end openCard
or
on openCard
launch url "http://www.google.com" in widget " myBrowser"
end openCard
stackscript
on preOpenStack
set the fullscreenmode of this stack to "exactfit"
end preOpenStack
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
Re: LC8 (DP14) Browser crashes on IOS 9.2.1
Maybe try browserFrameDocumentLoadFailed to see what the error is.
Also, put this in your stack script to see if you can catch the error.
Also, put this in your stack script to see if you can catch the error.
Code: Select all
on errorDialog pError
if environment() is "mobile" then answer pError
-- put pError
pass errorDialog
end errorDialog
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14
Re: LC8 (DP14) Browser crashes on IOS 9.2.1
Thank you Tom,
but no error is catched.
Has anybody the same error, or i am the only one?
but no error is catched.
Has anybody the same error, or i am the only one?
Re: LC8 (DP14) Browser crashes on IOS 9.2.1
Hi mimuBUSkYgY,
correct syntax!
Completely WRONG syntax!
Pleays ALWAYS refer to the dictionary when in doubt!
OK, let's see:
1. Did you select the browswer widget in the standalone builder settings?
Unfortunately widgets are currently not automatically added to a standalone!
2. If yes, can you try this with a button?
I mean:
Maybe widgets are loaded the same way as externals and are not available immediately "on pre-/openstack/card"?
Best
Klaus
Code: Select all
on openCard
set the URL of widget "myBrowser" to "http://www.google.com"
end openCard
Code: Select all
on openCard
launch url "http://www.google.com" in widget " myBrowser"
end openCard
Pleays ALWAYS refer to the dictionary when in doubt!

OK, let's see:
1. Did you select the browswer widget in the standalone builder settings?
Unfortunately widgets are currently not automatically added to a standalone!
2. If yes, can you try this with a button?
I mean:
Code: Select all
on mouseup
set the URL of widget "myBrowser" to "http://www.google.com"
end mouseup
Best
Klaus
Re: LC8 (DP14) Browser crashes on IOS 9.2.1
Hello Klaus,
from the docs:
userAgent
// Set custom User-Agent header. The remote web server may be configured to deliver custom content for browsers using this User-Agent.
set the userAgent of widget "myBrowser" to "myAppEmbeddedBrowser"
launch url "http://myexampleserver.com/content.html" in widget "myBrowser"
(i tried different User Agentsettings)
but my first attempt was using the
set the URL of widget "myBrowser" to "http://www.google.com"
syntax
i even already tried set url inside a button.
i 've included the browser widget.
Everything works till i uncheck the the checkbox " Build 32 bit slice only" inside the build settings.
from the docs:
userAgent
// Set custom User-Agent header. The remote web server may be configured to deliver custom content for browsers using this User-Agent.
set the userAgent of widget "myBrowser" to "myAppEmbeddedBrowser"
launch url "http://myexampleserver.com/content.html" in widget "myBrowser"
(i tried different User Agentsettings)
but my first attempt was using the
set the URL of widget "myBrowser" to "http://www.google.com"
syntax
i even already tried set url inside a button.
i 've included the browser widget.
Everything works till i uncheck the the checkbox " Build 32 bit slice only" inside the build settings.
Re: LC8 (DP14) Browser crashes on IOS 9.2.1
OK, then this might be the culprit, as I wrote in my first answer.
Please consider to report it here: http://quality.livecode.com
Please consider to report it here: http://quality.livecode.com
Re: LC8 (DP14) Browser crashes on IOS 9.2.1
Hi everybody,
did anybody try a simple stack with a browser widget
build on OS X 10.11 with Xcode 7.2.1 or 7.2 for iOS ?
Does the browser widget work on iOS 9.2.1 without checking "Build 32 bit slice only"?
On simulator everything is fine.
or is perhaps my system environment screwed up?
did anybody try a simple stack with a browser widget
build on OS X 10.11 with Xcode 7.2.1 or 7.2 for iOS ?
Does the browser widget work on iOS 9.2.1 without checking "Build 32 bit slice only"?
On simulator everything is fine.
or is perhaps my system environment screwed up?
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
Re: LC8 (DP14) Browser crashes on IOS 9.2.1
Hi mimuBUSkYgY,
Crashes for me on the device too. Immediate and hard...
Put this in the script of the card where your browser is. See if you get the same error I do in the sim. Both browserDocumentLoadFailed and browserNavigateFailed throw an error.
Have you reported it yet?
Crashes for me on the device too. Immediate and hard...
Code: Select all
set the URL of widget "theBrowser" to "https://www.google.com"
Code: Select all
on browserDocumentLoadFailed pUrl, pError
answer "browserDocumentLoadFailed" && pError
end browserDocumentLoadFailed
on browserFrameDocumentLoadFailed pUrl, pError
answer "browserFrameDocumentLoadFailed" && pError
end browserFrameDocumentLoadFailed
on browserNavigateFailed pUrl, pError
answer "browserNavigateFailed" && pError
end browserNavigateFailed
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14
Re: LC8 (DP14) Browser crashes on IOS 9.2.1
Hello quail creek,
excuse me for the late answer, i was a couple of days out of office.
After inserting the error detection code i get this in simulator:
browser document load failed NSURLErrorDomain error -999
but the page loads fine
But the real problem is, i don't get any error on the iphone when i navigate to the card with the browser,
the app dies immediately.
I' am still not sure if the error has something to to with a misconfiguration or if there are more people which get this error
using the browser widget on a real device.
excuse me for the late answer, i was a couple of days out of office.
After inserting the error detection code i get this in simulator:
browser document load failed NSURLErrorDomain error -999
but the page loads fine
But the real problem is, i don't get any error on the iphone when i navigate to the card with the browser,
the app dies immediately.
I' am still not sure if the error has something to to with a misconfiguration or if there are more people which get this error
using the browser widget on a real device.
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
Re: LC8 (DP14) Browser crashes on IOS 9.2.1
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14