?Tom
Okay i will try it in Xcode
can u try this URL
http://itunes.apple.com/us/app/le-tou-dui-dui-jiang/id516551775?mt=8
in us
or search in app store
with key word here “???”
And I will fire a bug with a brief code. [import]uid: 25057 topic_id: 24299 reply_id: 125883[/import]
I’m having issues as well, crashes in Corona Sim, using 925. I had to jump back to 919 to get any kind of stability. SEEMS to involve network.request, but very hard to track down… [import]uid: 96383 topic_id: 24299 reply_id: 125890[/import]
We really can’t do anything without a bug report and source code that reproduces the problem. Running an .APP file won’t give us much to work with. [import]uid: 7559 topic_id: 24299 reply_id: 125894[/import]
Are you handling a network error (time out or other error)?
I’ve noticed in iOS6 that on network.request more errors are being returned, but not always, if you don’t handle the error then your app is likely to sit there or crash.
Before I call the network.request I store the URL and if there is an error, retry the last URL called every second until it either goes through or I print a fail message on the screen after say 30 attempts, but it usually goes through (unless there’s no internet) the 2nd or 3rd time.
for example: (I put this code from memory but it should work if there’s a better way of doing it then somebody let me know)
local last_url
local networkListener
local urltimer
local function retryURL( )
if urltimer~=nil then timer.cancel( urltimer ) end
network.request( last_url, “GET”, networkListener )
end
networkListener = function( event )
if ( event.isError ) then
print( “Network error!”)
urltimer=timer.performWithDelay(1000, retryURL, 0 )
return
else
– do whatever you want to do on success here
end
end
last_url=“www.someaddress.com/test.php”
network.request( last_url, “GET”, networkListener )
[import]uid: 8697 topic_id: 24299 reply_id: 125915[/import]
?Tom
I have fire a bug and upload a sample.
can u check this ASAP>??
I thought many people are using “network.request” will encounter this issue.
Thanks a lot!
Edit1.
Thanks Tom, and thanks for you advise
actually i use “on release event” in my app.
for the sample i reported, i copied from documentation.
Once again, thanks for your suggestion. u r so kind.
If u guys have any further progress, let me know, thanks.
Actually crash happened very often in my app.
I need solve this bug so i can publish another new version for IOS6.
(not happened in Android and IOS5)
I have many users(10 thousands) , so i am afraid that they will remove my app because of this issue.
Owen [import]uid: 25057 topic_id: 24299 reply_id: 125917[/import]
@Tom
I have encounter an emergency issue
After my iphone upgrade to IOS6
I have found sometimes i use
network.request()
It would crash my app.(not every time)
or hang there.
It’s emergency. My app always connect to internet.
Fetch data and store in local device.
Can u guys check this issue ASAP?
Anybody got same issue?
In IOS5 is totally okay, after i upgrade to IOS 6.
U can try this using my app in different IOS
link is here
http://itunes.apple.com/tw/app/le-tou-dui-dui-jiang/id516551775?mt=8 [import]uid: 25057 topic_id: 24299 reply_id: 125803[/import]
I ran your sample code and it was hard to get to to crash but it looked like it was related to sending multiple network.request calls in a short period of time. When I changed your sample to use “onRelease” for the button event, I couldn’t get it to crash.
We have another test case where we call network.request in a For loop and it crashes around 256 calls. It doesn’t crash on iOS5.
We are looking into this to see if there is something we can do about it.
Thanks,
Tom [import]uid: 7559 topic_id: 24299 reply_id: 126083[/import]
I definitely see this crashing issue in places where there are multiple call in a very short time. Earlier builds (I stepped back down to 919) do not exhibit the behavior. [import]uid: 96383 topic_id: 24299 reply_id: 126084[/import]
Build 919 was the first iOS 6.0 build and there is no real difference in the network.request code between that and the current build, 925. My guess is you were not seeing the problem with previous builds when you built for iOS5.1 and not iOS6.0. We believe this is iOS6.0 SDK issue and not because anything changed in Corona. (The network.request code has not changed in Corona in a long time.) [import]uid: 7559 topic_id: 24299 reply_id: 126085[/import]
@Tom
In my app
I call network.request three times at a very shot time.
so it’s reasonable to reproduce it using for loop.
my sample is using one button, just for u easy to recognize. u can make three 3 or more “network.request” with one click.
it would reproduce the status easier. [import]uid: 25057 topic_id: 24299 reply_id: 126088[/import]
We don’t have any reports about network.request crashing on iOS6. You need to file a bug report and supply code that reproduces the problem. That’s the only way we can help. I tried to find your program in the US iTunes APP store and couldn’t. The link you gave me is in Chinese so I didn’t know what to search for. I saw “Billion Lottery” on your support page (Facebook) but no search results when I searched the App store.
Have you tried connecting to Xcode Console when you run your program? Any crash should show something in the console. If you see something with “PCall” error, that means it found a Lua runtime error. If you build with your developer profile and run it until it crashes, it should give you the file and line number of the error. If it gives you a crash log instead, that may be harder to find.
Are you playing audio (sounds) when the game crashes? There are some reported iOS6 audio problems. These are new Apple bugs.
There is a known Apple bug with GameCenter and apps that run only in landscape mode. It looks like your game runs in portrait mode.
Sorry I can’t help you more. [import]uid: 7559 topic_id: 24299 reply_id: 125848[/import]
?Tom
Okay i will try it in Xcode
can u try this URL
http://itunes.apple.com/us/app/le-tou-dui-dui-jiang/id516551775?mt=8
in us
or search in app store
with key word here “???”
And I will fire a bug with a brief code. [import]uid: 25057 topic_id: 24299 reply_id: 125883[/import]
I’m having issues as well, crashes in Corona Sim, using 925. I had to jump back to 919 to get any kind of stability. SEEMS to involve network.request, but very hard to track down… [import]uid: 96383 topic_id: 24299 reply_id: 125890[/import]
We really can’t do anything without a bug report and source code that reproduces the problem. Running an .APP file won’t give us much to work with. [import]uid: 7559 topic_id: 24299 reply_id: 125894[/import]
Are you handling a network error (time out or other error)?
I’ve noticed in iOS6 that on network.request more errors are being returned, but not always, if you don’t handle the error then your app is likely to sit there or crash.
Before I call the network.request I store the URL and if there is an error, retry the last URL called every second until it either goes through or I print a fail message on the screen after say 30 attempts, but it usually goes through (unless there’s no internet) the 2nd or 3rd time.
for example: (I put this code from memory but it should work if there’s a better way of doing it then somebody let me know)
local last_url
local networkListener
local urltimer
local function retryURL( )
if urltimer~=nil then timer.cancel( urltimer ) end
network.request( last_url, “GET”, networkListener )
end
networkListener = function( event )
if ( event.isError ) then
print( “Network error!”)
urltimer=timer.performWithDelay(1000, retryURL, 0 )
return
else
– do whatever you want to do on success here
end
end
last_url=“www.someaddress.com/test.php”
network.request( last_url, “GET”, networkListener )
[import]uid: 8697 topic_id: 24299 reply_id: 125915[/import]
?Tom
I have fire a bug and upload a sample.
can u check this ASAP>??
I thought many people are using “network.request” will encounter this issue.
Thanks a lot!
Edit1.
Thanks Tom, and thanks for you advise
actually i use “on release event” in my app.
for the sample i reported, i copied from documentation.
Once again, thanks for your suggestion. u r so kind.
If u guys have any further progress, let me know, thanks.
Actually crash happened very often in my app.
I need solve this bug so i can publish another new version for IOS6.
(not happened in Android and IOS5)
I have many users(10 thousands) , so i am afraid that they will remove my app because of this issue.
Owen [import]uid: 25057 topic_id: 24299 reply_id: 125917[/import]
@Tom
I have received one e-mail said that u have solved this bug.
Now network.request won’t crash apps.
“YES”, u did resolve this bug.Thanks
But not entirely.
I should mention there are two bugs out there actually.
One is “crash”(resolved)
One is “fail request”
When using network.request at very short time.
ex. request destinations are more than 2 URLs.
Some request will fail fetch.
it happened very often. even u have resolved “crash” issue.
It still exists.
I can’t wait for u to fix it again.
So i have tried to avoid it.
I have changed my code so
request in a very very short time => request in a row.
Like below
local function networkListener( event )
network.request( URL, "GET", networkListener2 ,params)
end
network.request( URL, "GET", networkListener ,params)
Request one after one is exactly done.
But i do think u should resolve this bug , too.
Thanks [import]uid: 25057 topic_id: 24299 reply_id: 126304[/import]
I ran your sample code and it was hard to get to to crash but it looked like it was related to sending multiple network.request calls in a short period of time. When I changed your sample to use “onRelease” for the button event, I couldn’t get it to crash.
We have another test case where we call network.request in a For loop and it crashes around 256 calls. It doesn’t crash on iOS5.
We are looking into this to see if there is something we can do about it.
Thanks,
Tom [import]uid: 7559 topic_id: 24299 reply_id: 126083[/import]