Skip to main content
JarSyr
Known Participant
November 1, 2016
Question

Air 24 Beta crashing in iOS

  • November 1, 2016
  • 25 replies
  • 9849 views

My Starling application crashes in iOS device (version 9.3.1) with error

exception, information=ArgumentError: Error #3672: Buffer creation failed. Internal error.

I also tested a blank Starling project with a single Quad on stage. That did not produce the error, but the quad only quickly shows and then the screen goes black.

My application and the blank test project both work perfectly in Emulator.

My app and test project work as expected in the test device when using Air 23.

This topic has been closed for replies.

25 replies

Known Participant
June 7, 2017

Hi Ankit!

Air 25 and Air 26 beta crash the app with this error when testing on iOS Simulator Xcode 8.3.2.

Jun  7 17:37:08 dzfba app[23423]: ArgumentError: Error #3672: Buffer creation failed. Internal error.

Jun  7 17:37:08 dzfba app[23423]: at flash.display3D::Context3D/createVertexBuffer()

Jun  7 17:37:08 dzfba app[23423]: at starling.rendering::VertexData/createVertexBuffer()[/idev/mobapplibs/Starling-Framework/starling/src/starling/rendering/VertexData.as:904]

Anki_AG_
Adobe Employee
Adobe Employee
June 7, 2017

Hi,

Is this specific to Simulator? Is this working fine on device?

Have you tried this with the latest beta available at  Adobe AIR 26 Beta | application development - Adobe Labs.

Thanks,

Ankit | Adobe AIR Engineering

Known Participant
June 7, 2017

Air 26.0.0.112.

Looks like it was failing on all iOS devices because we used fragmentFilter with antiAliasing

/**
* Created by funkymonkey on 31/5/17.
*/
package draw.utils {

   import starling.display.Canvas;

   import starling.display.MeshBatch;

   import starling.display.Quad;

   import starling.filters.FragmentFilter;

   public class DrawCanvas extends Canvas {

   public function DrawCanvas () {

   super();

   addChild( batch = new MeshBatch() );

   fragmentFilter = new FragmentFilter();
  fragmentFilter.antiAliasing = 4;
  this.filter = fragmentFilter;
   }

   private var _thickness :Number = 1;

   private var _color :uint = 0;

   private var _alpha :Number = 1;

   private var _fromX :Number;

   private var _fromY :Number;

   private var _toX :Number;

   private var _toY :Number;

   private var line :Quad;

   private var batch :MeshBatch;

   private var fragmentFilter :FragmentFilter;

   override public function clear () :void {

   batch.clear();

  }

   public function lineStyle ( thickness :Number = 1 , color :uint = 0 , alpha :Number = 1 ) :void {

   _thickness = thickness;

   _color = color;

   _alpha = alpha;

  }

   public function moveTo ( x :Number , y :Number ) :void {

   _fromX = x;

   _fromY = y;

  }

   public function lineTo ( x :Number , y :Number ) :void {

   _toX = x;

   _toY = y;

   line = new Quad( _thickness , _thickness , _color );

   var fXOffset :Number = _toX - _fromX;

   var fYOffset :Number = _toY - _fromY;

   var len :Number = Math.sqrt( fXOffset * fXOffset + fYOffset * fYOffset );

   fXOffset = fXOffset * _thickness / (len * 2);

   fYOffset = fYOffset * _thickness / (len * 2);

   line.setVertexPosition( 2 , _fromX + fYOffset , _fromY - fXOffset );

   line.setVertexPosition( 1 , _toX - fYOffset , _toY + fXOffset );

   line.setVertexPosition( 0 , _toX + fYOffset , _toY - fXOffset );

   line.setVertexPosition( 3 , _fromX - fYOffset , _fromY + fXOffset );

   line.alpha = _alpha;

   batch.addMesh( line );

   _fromX = x;

   _fromY = y;

  }

  }

}

fengy12353241
Known Participant
February 24, 2017

Hi! The AIR SDK25 which is released at feb-22-2017 has solved the crashed problem.

But I met a new problem. When I create a new TextInput(Feather Component) object, the App crashed and back to desktop of iPhone.

I build a demo project at this URL:

https://cdn.feidou.com/yttx/test/AdobeAir25TextInputBug.zip

Feather is a set of components which is based on the starling.

Community Manager
February 24, 2017

Thanks for reporting the issue. We are looking into this.

Thanks,

Krati | Adobe AIR Engineering

Anki_AG_
Adobe Employee
Adobe Employee
March 29, 2017

Hi,

This issue has been fixed. Please download the latest AIR 25 SDK from http://labs.adobe.com/downloads/air.html. Kindly, let us know in case of any issues.

Thanks,

Ankit | Adobe AIR Engineering

tepsl
Participating Frequently
February 16, 2017

This seems to have been fixed in AIRSDK Beta 25.0.0 build 118, which was released on February 15, 2017.

My iPhone5 works with no problem.

Inspiring
February 17, 2017

Mmm, 25.0.0 118 still crashes with me on my iPhone 5 with above lines of code applied. I currently worked around having the three colors that I show in actual color on the texture atlas without applying color filters (and that works just fine).

Nearly with one foot in the car towards a few days of mountain pleasure. Will test some more (with a barebones project?) when back.

Inspiring
February 21, 2017

I am still running in the the same problem with Air 24 and 25.0.0.112 beta ( ios problem only), android works fine with all SDKs

AIR 20 works fine on ios, no issues. (have not yet tried AIR 23 like others here)

iphone 5 ios 10.2.1

ipad3 ios 9.3.5

starling 1.8

feathers 2.3.0

I have some texture atlas, then create a render texture.

render texture causes this crash.  Error #3672: Buffer creation failed. Internal error.

I eliminate render texture, it will run the app for a period of time, but graphics dissapear/reapear, glitchy, slower. then eventually crash anyway with no final error in scout.

go back to AIR 20 and all is well.

[Fault] exception, information=ArgumentError: Error #3672: Buffer creation failed. Internal error.

flash.display3D::Context3D/createVertexBuffer

starling.display::QuadBatch/createBuffers at /Users/redge/Dropbox/Development/starling/starling/src/starling/display/QuadBatch.as:180

starling.display::QuadBatch/syncBuffers at /Users/redge/Dropbox/Development/starling/starling/src/starling/display/QuadBatch.as:209

starling.display::QuadBatch/renderCustom at /Users/redge/Dropbox/Development/starling/starling/src/starling/display/QuadBatch.as:227

starling.core::RenderSupport/finishQuadBatch at /Users/redge/Dropbox/Development/starling/starling/src/starling/core/RenderSupport.as:596

starling.textures::RenderTexture/renderBundled at /Users/redge/Dropbox/Development/starling/starling/src/starling/textures/RenderTexture.as:263

starling.textures::RenderTexture/draw at /Users/redge/Dropbox/Development/starling/starling/src/starling/textures/RenderTexture.as:185

Game/createRenderCanvas at D:\Flash1\2017\0_game_walkerproject\src\Game.as:761

Game/initGame at D:\Flash1\2017\0_game_walkerproject\src\Game.as:413

Function/Game.as$0:anonymous at D:\Flash1\2017\0_game_walkerproject\src\Game.as:311

Function/<anonymous> at /Users/redge/Dropbox/Development/starling/starling/src/starling/utils/AssetManager.as:754

Function/http://adobe.com/AS3/2006/builtin::apply

SetIntervalTimer/onTimer

flash.utils::Timer/_timerDispatch

flash.utils::Timer/tick

Inspiring
January 30, 2017

Can I set this thread to be "not answered" somehow?

Colin Holgate
Inspiring
January 30, 2017

Yes it can. Someone might come back later and mark it answered again, we'll see.

deesharm
Adobe Employee
Adobe Employee
December 14, 2016

Hi All,

The issue has been fixed now. Please try it out with our latest AIR release(24.0.0.180) .

Download Link: Download Adobe AIR SDK

Kindly let us know if you still face any problem.

Thanks,

Adobe AIR Team

tepsl
Participating Frequently
January 14, 2017

Not everywhere but some we still have the same issue on iPhone5.

The error always occurs at the almost same source code point.

The debug stack trace is:

We are using Starling 1.8/Feathers 2.3.0 and iOS version is 10.2.

fengy12353241
Known Participant
December 8, 2016

When will we get the new updating?

Anki_AG_
Adobe Employee
Adobe Employee
December 8, 2016

We will update you as soon as we have something to share.

Thanks for the patience.

Ankit | Adobe AIR Engineering

Known Participant
November 28, 2016

Great to hear deesharm!

Just being curious, which one of the issues were you able to fix, or were the #3672 errors related to the crashes I was experiencing...?

deesharm
Adobe Employee
Adobe Employee
November 28, 2016

Hi,

We have this issue fixed internally and this will be out in our next AIR 24 beta/release build.

Also, as per our investigations this issue is specific to applications built in AOT mode.

Thanks,

Adobe AIR Team

tepsl
Participating Frequently
December 2, 2016

About when will the fixed version be released?

fengy12353241
Known Participant
November 25, 2016

I put a IPA package in this URL.

http://cdn.heyshell.com/yttx/apk/yttxthnew-iphone-dev-iosth-7.6.0-6.4.0.0-20161124-115725.ipa

I test it use iphone5c and ipad4, both of them are crashed. My iphone7 is right.

But when I use AIR 23 SDK, all of them are right.

There are some crash log in my ipad. It seems have relationship with the net work.

Thank you for your help.

My telephone number is +86 13301251215. If you have other questions, welcome to call my.

Nov 25 11:15:02 kaixinde-iPad kernel[0] <Notice>: 194503.048938 wlan0.A[36836] AppleBCMWLANNetManager::updateRxDataRSSI(): Rx Data Rssi -103 dBm is out of range?

Nov 25 11:15:08 kaixinde-iPad mediaserverd[97] <Error>: 11:15:08.176 [0x3f0f000] No read permission for property: 'ovrd'; session id: 0x61403

Nov 25 11:15:08 kaixinde-iPad mediaserverd[97] <Error>: 11:15:08.177 [0x3f0f000] No read permission for property: 'ovrd'; session id: 0x61403

Nov 25 11:15:08 kaixinde-iPad mediaserverd[97] <Error>: 11:15:08.179 [0x3f0f000] No read permission for property: 'ovrd'; session id: 0x61403

Nov 25 11:15:08 kaixinde-iPad mediaserverd[97] <Error>: 11:15:08.179 [0x3f0f000] No read permission for property: 'ovrd'; session id: 0x61403

Nov 25 11:15:34 kaixinde-iPad ??????PK[8219] <Warning>: Extension Initialized

Nov 25 11:15:34 kaixinde-iPad ??????PK[8219] <Warning>: Context Created

Nov 25 11:15:34 kaixinde-iPad ??????PK[8219] <Warning>: Restore Called over

Nov 24 11:39:35 kaixinde-iPad My App[6814] <Error>: Could not successfully update network info during initialization.

Nov 24 11:39:35 kaixinde-iPad My App[6814] <Warning>: registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later.

Nov 24 11:39:36 kaixinde-iPad My App[6814] <Warning>: getProducts Called..

Nov 24 11:39:36 kaixinde-iPad assistivetouchd[356] <Warning>: Received memory warning.

Nov 24 11:39:36 kaixinde-iPad nsurlstoraged[272] <Error>: realpath() returned NULL for /var/root/Library/Caches/IAPCrazyDemond

Nov 24 11:39:36 kaixinde-iPad nsurlstoraged[272] <Error>: The read-connection to the DB=/var/root/Library/Caches/IAPCrazyDemond/Cache.db is NOT valid.  Unable to determine schema version.

Nov 24 11:39:36 kaixinde-iPad nsurlstoraged[272] <Error>: realpath() returned NULL for /var/root/Library/Caches/IAPCrazyDemond

Nov 24 11:39:36 kaixinde-iPad nsurlstoraged[272] <Error>: realpath() returned NULL for /var/root/Library/Caches/IAPCrazyDemond

Nov 24 11:39:36 kaixinde-iPad nsurlstoraged[272] <Error>: ERROR: unable to determine file-system usage for FS-backed cache at /var/root/Library/Caches/IAPCrazyDemond/fsCachedData. Errno=13

Nov 24 11:39:36 kaixinde-iPad discoveryd[77] <Notice>: Basic DeviceInformation Memory Pressure Warning sent: pressure

Nov 24 11:39:37 kaixinde-iPad SpringBoard[42] <Warning>: Application 'UIKitApplication:com.xxxxxxxxxxxxx[0x7678]' was killed by jetsam.

Known Participant
November 25, 2016

I must have something wrong in my project if no-one else is experiencing a similar crash, but I'll share this anyway.

Here's my minimal project which crashes on AIR 24 but not on AIR 23.

Dropbox - test-project-2.zip

As I first thought it was somehow Feathers related, I've posted more details here:

AIR 24 packaging issue · Issue #1500 · BowlerHatLLC/feathers · GitHub

deesharm
Adobe Employee
Adobe Employee
November 25, 2016

Hi Timo,

Thanks for sharing the project.

The problem seems to be related to feathers only. It works completely fine if I remove feathers from the sample project that you shared. We are investigating it further at our end.

Thanks,

Adobe AIR Team

Known Participant
November 25, 2016

Thanks Deesharm, good to hear!