Skip to main content
Inspiring
October 26, 2012
Question

iPad app crashes in ad-hoc mode; debug interpreter works fine

  • October 26, 2012
  • 12 replies
  • 2959 views

Hi there,

I've been fighting with this issue for days now. I have an app which uses Away3D and Starling together. Works beautifully on the web, and also when compiled with debug-interpreter mode. However, when I compile for ad-hoc ipa and run it, it loads up just as slowly as debug-interpreter mode, and then crashes. I find a LowMemory report in my CrashReporter directory when I sync with iTunes.

Another strange thing is that the app's viewport is screwed up, it truncates part of the screen.

I am using the combined Flex 4.6/Air 3.3 sdk found here: - and compiling against air 3.3.

This is using Windows XP.

Can anyone help please - this is so frustrating..

Thank you.

This topic has been closed for replies.

12 replies

Inspiring
March 22, 2013

Hi,

Yesterday I also ran into this same problem. Using Air 3.6

[Fault] exception, information=TypeError: Error #1034: Type Coercion failed: cannot convert Vector.<Number>@8568b29 to .

So it has not been fixed in Air 3.6

I had this problem a few months ago as well and I fixed it after painstakingly debugging the code and adding timers, took more than a few days. I remember this problem had nothing to do with the Vector.<Number> but I don't remember how I fixed it in the end and I didn't write it down. So I am going to repeat my process and waste a few days on this. But who needs weekends, right?

Legend
March 22, 2013

Weekends are for the week. (sic).

Participating Frequently
March 1, 2013

Bug allready reportet.

For everyone who encountered this, please vote https://bugbase.adobe.com/index.cfm?event=bug&id=3488916

Zen SevenAuthor
Inspiring
March 1, 2013

How is this the same bug?

Zen SevenAuthor
Inspiring
October 31, 2012

I have been able to reproduce the error under the debugger with Ad-hoc (AKA "Standard" Device deployment mode). It's really quite bizzare:

TypeError: Error #1034: Type Coercion failed: cannot convert __AS3__.vec::Vector.<game.defs::cDefCountry>@4342b51 to .

That is not a typo. The compiler didn't know what to convert it to, and just outputted "blank". Even though my class, cDefCountry, is imported in.

Anyone seen such weird behaviour before?

Legend
November 2, 2012

First guess, because ithappens in ad hoc but not fast compile modes, is that you are using unsupported functions such as loading in code from an external SWF.

Remember, Fast compile is _very_ different to standard/ad hoc compile ( much slower for one :() and has a Flash runtime that Ad Hoc or Standard do not have. This, regrettably, means you can occasionally get things to work in Fast mode that are simply not possible in any other mode.

G

Zen SevenAuthor
Inspiring
November 2, 2012

Hi Gaius,

With the exception of my preloader, which has no actionscript code in it whatsoever, I do not have any external swfs being loaded into my app. It's all images, zip and text files.

How are they _very_ different? Is this documented somewhere? I ended up working around the problem - it seemed like it doesn't support pass-by-reference of typed vectors, although I have other code that does things like so:

var foo:Vector.<cFoo> = GetFooVector(); 

and it works just fine. Sounds like a bug to me. Anyway, my workaround didn't solve the problem - because I ran into this next:

https://bugbase.adobe.com/index.cfm?event=bug&id=3356966

Thankfully it's the exact same issue that several people have encountered, and it causes no 3d meshes to be renderable on an iOS device. Pretty serious stuff.