AIR 3 RC Native Extensions On Mac OS X Error
I'm getting an error when trying to compile a native extension (.framework) for Mac OS X 10.7 with XCode 4.1; I've included "FlashRuntimeExtension.h" in the project but not sure if i'm missing something else as there is a lack of documentation for Native Extensions with XCode for a Mac Framework (the error I get is "_FRENewObjectFromBool" - symbol(s) not found for architecture i386.
I have AIR 3 RC and the latest Flash installed on my machine.
I'm not sure what i'm missing?
Thanks!
Hi lemonility,
Could you try the following steps out and let me know if they help?
1) Select the project in the project navigation window which will show project summary on right
2) Select 4th tab build phases
3) Select Link binary with library option
4) Add framework for which you are getting
5) Move the framework from main folder to the frameworks folder
6) Build it again and errors should be gone.
Thanks,
Chris
Similar Messages
-
Native extension on Mac OS X (Air 3)
Hi
I have a blocking issue for native extensions when targetting the MacOS-x86 platform. (in my case Snow Leopard)
I succeded in packaging the ANE file, but I have this error when using it in my test app:
[SWF] tekhnia.simpleAirNativeExtension - 2 871 octets après la décompression
[SWF] simpleAirNativeExtensionTest.swf - 2 119 250 octets après la décompression
Context: [object ExtensionContext] in /Users/vandrito/Documents/Projets/o3sui/.metadata/.plugins/com.adobe.flexbuilder.project. ui/ANEFiles/simpleAirNativeExtensionTest/macosx/simpleAirNativeExtension.ane
ArgumentError: Error #3500: The extension context does not have a method with the name isSupported.
at flash.external::ExtensionContext/_call()
at flash.external::ExtensionContext/call()
at tekhnia.org.simpleAirNativeExtension::simpleAirNativeExtension/isSupported()[/Users/vandr ito/Documents/Projets/o3sui/simpleAirNativeExtension/src/tekhnia/org/simpleAirNativeExtens ion/simpleAirNativeExtension.as:16]
at simpleAirNativeExtensionTest/init()[/Users/vandrito/Documents/Projets/o3sui/simpleAirNati veExtensionTest/src/simpleAirNativeExtensionTest.mxml:15]
at simpleAirNativeExtensionTest/___simpleAirNativeExtensionTest_WindowedApplication1_creatio nComplete()[/Users/vandrito/Documents/Projets/o3sui/simpleAirNativeExtensionTest/src/simpl eAirNativeExtensionTest.mxml:5]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core \UIComponent.as:13151]
at mx.core::UIComponent/set initialized()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:1818]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:842]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects \framework\src\mx\managers\LayoutManager.as:1180]
In fact it seems that the initializer is not executed. This is my extension declaration file:
<extension xmlns="http://ns.adobe.com/air/extension/3.1">
<id>tekhnia.simpleAirNativeExtension</id>
<versionNumber>1.0.0</versionNumber>
<name>tekhnia.simpleAirNativeExtension</name>
<copyright>@2011 OpenTekhnia, Techniware</copyright>
<platforms>
<platform name="MacOS-x86">
<applicationDeployment>
<nativeLibrary>simpleAirNativeExtension.framework</nativeLibrary>
<initializer>initNativeExtension</initializer>
<finalizer>doneNativeExtension</finalizer>
</applicationDeployment>
</platform>
</platforms>
</extension>
That's my *.m file in the xcode framework project:
#import "simpleAirNativeExtension.h"
FREObject isSupported(FREContext ctx,
void *functionData,
uint32_t argc,
FREObject argv[]) {
FREObject retObj;
FRENewObjectFromBool(1, &retObj);
return retObj;
// contextInitializer()
// The context initializer is called when the runtime creates the extension context instance.
void contextInitializer(void* extData, const uint8_t* ctxType, FREContext ctx,
uint32_t* numFunctions, const FRENamedFunction** functionsToSet) {
*numFunctions = 1;
FRENamedFunction* func = (FRENamedFunction*)malloc(sizeof(FRENamedFunction) * (*numFunctions));
func[0].name = (const uint8_t*) "isSupported";
func[0].functionData = NULL;
func[0].function = &isSupported;
*functionsToSet = func;
// contextFinalizer()
// The context finalizer is called when the extension's ActionScript code
// calls the ExtensionContext instance's dispose() method.
// If the AIR runtime garbage collector disposes of the ExtensionContext instance, the runtime also calls
// contextFinalizer().
void contextFinalizer(FREContext ctx) {
// Nothing to clean up.
return;
// initMulticastSocket()
// The extension initializer is called the first time the ActionScript side of the extension
// calls ExtensionContext.createExtensionContext() for any context.
void initNativeExtension(void** extDataToSet, FREContextInitializer* ctxInitializerToSet,
FREContextFinalizer* ctxFinalizerToSet) {
*ctxInitializerToSet = &contextInitializer;
*ctxFinalizerToSet = &contextFinalizer;
// done()
// The extension finalizer is called when the runtime unloads the extension. However, it is not always called.
void doneNativeExtension(void* extData) {
// Nothing to clean up.
return;
and that's my .h:
// simpleAirNativeExtension.h
// simpleAirNativeExtension
// Created by Victor Andritoiu on 17/10/11.
// Copyright (c) 2011 OpenTekhnia. All rights reserved.
#import <Foundation/Foundation.h>
#include "Adobe Air/FlashRuntimeExtensions.h"
void initNativeExtension(void** extDataToSet, FREContextInitializer* ctxInitializerToSet,
FREContextFinalizer* ctxFinalizerToSet);
void doneNativeExtension(void* extData);
FREObject isSupported(FREContext ctx,
void *functionData,
uint32_t argc,
FREObject argv[]);
void contextInitializer(void* extData, const uint8_t* ctxType, FREContext ctx,
uint32_t* numFunctions, const FRENamedFunction** functionsToSet);
void contextFinalizer(FREContext ctx);
@interface simpleAirNativeExtension : NSObject
@end
And finally my AS3 code for the lib:
package tekhnia.org.simpleAirNativeExtension
import flash.external.ExtensionContext;
public class simpleAirNativeExtension {
/** extension context */
protected var context: ExtensionContext;
public function simpleAirNativeExtension() {
context = ExtensionContext.createExtensionContext("tekhnia.simpleAirNativeExtension", "");
trace("Context: " + context + " in " + ExtensionContext.getExtensionDirectory("tekhnia.simpleAirNativeExtension").nativePath);
public function isSupported(): Boolean {
return context.call("isSupported") as Boolean;
and for the app using it:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
creationComplete="init()">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
import tekhnia.org.simpleAirNativeExtension.simpleAirNativeExtension;
protected function init(): void {
var sane: simpleAirNativeExtension = new simpleAirNativeExtension();
trace(sane.isSupported());
]]>
</fx:Script>
<fx:Declarations>
<!-- Placer ici les éléments non visuels (services et objets de valeur, par exemple). -->
</fx:Declarations>
</s:WindowedApplication>
If anybody succeeded in using extensions on MacOS, please first tell me that s possible then, maybe help me on getting the error that I make.
Thanks a lot
VictorWorkaround found:
Need to launch adl as a line command (depends on your directory config, of course):
/Applications/Adobe\ Flash\ Builder\ 4.6/sdks/4.6.0/bin/adl -runtime /Library/Frameworks/ -extdir /Users/vandrito/Desktop/simpleAirNativeExtension/launch/extensions -profile extendedDesktop /Users/vandrito/Documents/Projets/o3sui/simpleAirNativeExtensionTest/bin-debug/simpleAirN ativeExtensionTest-app.xml
Pay attention to the library location: it is the one of the Air 3.1 install. Did not check the same trick with Flash Builder 4.6 Air install.
Then use a fake web debugger to connect to the process (if compiled in debug mode). See here how to do (french):
http://www.flex-tutorial.fr/2010/08/05/air-android-debug-sur-mobile-froyo-emulateur-avec-f lash-builder-4/
Victor -
Actionscript 3 - Air and Native Extensions?
I have a Flash AS3 app that I want to run on android phones via AIR. Can I use native extensions? If so, how can I include the .ane files? To reiterate, I just have a regular Flash + AS3 project- not a mobile project. I'm not doing anything with XML. Anyone have an answer to this?
Thanks!you include the ane file by clicking file>publish settings>swf>advanced actionscript settings (the wrench icon)>library path>browse to an ane file (4th or 5th icon at the top of the library path panel).
-
IOS native extension for networkinfo throws an error
Hello,
I'm trying to check wether the active connection on a device is Wifi or mobile data connection. On android this works fine but on iOS there is a problem.
A native extension exists for this see here.
The problem is that the line below throws an error: 'Error #1009: Cannot access a property or method of a null object reference.'
var interfaces:Vector.<com.adobe.nativeExtensions.Networkinfo.NetworkInterface> = com.adobe.nativeExtensions.Networkinfo.NetworkInfo.networkInfo.findInterfaces();
I'm using AIR3.1 (no idea if this works on 3.0).
Anybody a solution?Ever solve this? I'm also getting errors...
Specifically:
ArgumentError: Error #3500: The extension context does not have a method with the name getInterfaces. -
Exception in C++ air native extension for Mac OS X
I develop air extension for ios and mac os x.
I use the same code on ios and mac.
For ios all good.
But on mac - have problems.
In extension I use std::vector. Code example:
vector<Type*>* types; types = new vector<Type*>(); Type* type = new Type(); types->push_back(type);
Application crashed by line:
types->push_back(type);
I tried add try/catch block - but application crashed too.
I don't know what wrong. This code is work fine on ios and in console application for mac.Workaround found:
Need to launch adl as a line command (depends on your directory config, of course):
/Applications/Adobe\ Flash\ Builder\ 4.6/sdks/4.6.0/bin/adl -runtime /Library/Frameworks/ -extdir /Users/vandrito/Desktop/simpleAirNativeExtension/launch/extensions -profile extendedDesktop /Users/vandrito/Documents/Projets/o3sui/simpleAirNativeExtensionTest/bin-debug/simpleAirN ativeExtensionTest-app.xml
Pay attention to the library location: it is the one of the Air 3.1 install. Did not check the same trick with Flash Builder 4.6 Air install.
Then use a fake web debugger to connect to the process (if compiled in debug mode). See here how to do (french):
http://www.flex-tutorial.fr/2010/08/05/air-android-debug-sur-mobile-froyo-emulateur-avec-f lash-builder-4/
Victor -
We are planning to choose a new platform of our new convergent media device. Like to know whether we can develop our platform using Adobe AIR Native Extension for Linux OS?
I came to know that Adobe has subscription based suuport for developers. If that is the case we can purchase support for development assistance on Linux based AIR Native Extensions. What we need are the FRE libraries and C code to run the Native extensions on Linux. I had acces to AIR 3.0 for Linux sometime back. Unfortunately our project look some time to mature.
Please let us know about this so that we can base our plans on AIR/Linux native extensions.Four part Series, this is link to first part
http://quetwo.com/2011/10/31/creating-an-windows-air-native-extension-with-eclipse-part-1/
Another one
http://www.flexjunk.com/2011/11/30/developing-an-air-native-extension-for-osx-and-windows- in-c/
Hope those help. -
Is it possible to access an AIR Native Extension inside an Actionscript worker?
Hi, I'm currently trying to push off some time consuming tasks to an actionscript worker. This worker will in turn needs to call out to an AIR Native Extension as part of it's processing.
I've tried various combination in Flash Builder 4.7 i.e. embedded worker and external worker (with explicit packaging of the ANE in the external worker project) but alas I've been unable to get this to setup to work. I keep getting an error from the worker saying that the native extesion class could not be found (Error #1014).
Does anyone know if it is at all possible to do this or it's a limitation of Actionscript workers (loading thw swf bytes does not load up the ANE)?Hi
I also met the same problem---"native extesion class could not be found"
The problem is solved?
I think the reason is
" <extensions>
<extensionID>XXXXXX</extensionID>
</extensions>“ in "-app.xml"
the worker do not konw the extensionID
In this article :
Adobe AIR * Using native extensions for Adobe AIR
Including the ANE file in your application’s library path
To compile an application that uses a native extension, include the ANE file in your library path.
Using the ANE file with Flash Builder
If your application uses a native extension, include the ANE file for the native extension in your library path. Then you can use Flash Builder to compile your ActionScript code.
Do the following steps, which use Flash Builder 4.5.1:
Change the filename extension of the ANE file from .ane to .swc. This step is necessary so that Flash Builder can find the file.
Select Project > Properties on your Flash Builder project.
Select the Flex Build Path in the Properties dialog box.
In the Library Path tab, select Add SWC....
Browse to the SWC file and select Open.
Select OK in the Add SWC... dialog box.
The ANE file now appears in the Library Path tab in the Properties dialog box.
Expand the SWC file entry. Double-click Link Type to open the Library Path Item Options dialog box.
In the Library Path Item Options dialog box, change the Link Type to External.
Now you can compile your application using, for example, Project > Build Project.
the error will be done
Unfortunately, it still does not work well!
Error: Error #3731: This feature is not available within this context.
at flash.external::ExtensionContext$/_createExtensionContext()
at flash.external::ExtensionContext$/createExtensionContext()
3731
This feature is not available within this context.
This error occurs if a background worker attempts to access an API that is not available to it.
Run-Time Errors - Adobe ActionScript® 3 (AS3) API Reference -
External library inside Air native extension for android
Hello everyone,
First, I've been looking throught this topics
- http://stackoverflow.com/questions/7732742/air-3-native-extensions-for-android-can-i-how-t o-include-3rd-party-libraries
- http://stackoverflow.com/questions/24626380/how-to-include-additional-jar-in-android-nativ e-extension-for-adobe-air-mobile
I got a similar problem. But not exactly the same. And the solution didn't worked for me :(.
First of all, I don't have any visible error.
-I can easily talk between java and action script.
-The gateway is set without problems.
My problem comes when, from my java-side-part of the extension, I try to call a 3rd party library. This library is (and I think this is where I do something wrong) linked to my project as an external lib, in .jar format.
So when I make a call to 3rd party library, it just doesn't print anything. Neither on the adobe part or on the java part. The logs that are before my call are printed but not the ones after.
I tried different solutions that are:
-Taking all compiled class files of my external lib and add it inside the main native extension jar [link1]
same result (no errors)
-including the 3rd party jar inside the ANE by adding a dependence file that require the .jar [link2]
with this method i got this error that I don't get
> aapt tool failed:ERROR: input directory '--auto-add-overlay' does not exist
My third party library also include's itself some external .jars so do I need to include every jars inside the same packaged jar?
I can see that a lot of people are dealing with issues like that so my question would be:
What is the best way to include 3rd party library inside android AIR Native Extension ?.
For information, here is what I do to create the ANE
>adt -package -target ane AirInfinitGameANE\AirInfinitGame.ane AirInfinitGameASLib\src\extension.xml -swc AirInfinitGameANE\AirInfinitGameASLib.swc -platform Android-ARM -C AirInfinitGameLib .
- AirInfinitGameASLib: just the folder with the actionScript part and the config xml file
- AirInfinitGameANE: folder in the one that will be the native extension
- AirInfinitGameLib: the eclipse java project. I need to put in that folder the airInfinitgamelib.jar(extension jar) and the library.swf (from the swc file) in order to beeing able to compile the ANE.
Here it is ! Thanks a lot for thoses who'll read me.I had the same problem recently and fixed it as follows;
- Extract the 3rd party jar file and copy the class folder (usually named "com" in the root of the jar) to my project.
- Under Project Properties -> Java Build Path -> Libraries click "Add class folder" and add the "com" folder you just extracted from your .jar.
Hope this helps -
Creating the native extension package
This question was posted in response to the following article: http://help.adobe.com/en_US/air/extensions/WSf268776665d7970d-2482335412ffea65006-8000.htm l
Hi,
I am trying to create a native extension for MAC.
i am getting the following error in xcode.
i included flashruntime.h and imported the .h file also.
other FRE functions are working fine..i am getting error only after adding FREAcquireByteArray.
Undefined symbols for architecture x86_64:
"_FREAcquireByteArray", referenced from:
_saveFile in save.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation) -
Flash Pro CS6 iOS Native Extension Problem
I am trying out flash pro CS6 new features.
The most important one being ANEs [native extensions].
in flash builder 4.6, when using an ANE for ios, it is sometimes required to put the ios5 SDK location [ -platformsdk in ADT].
This is completely missing in Flash Pro CS6 IDE, any way around that?
[for the info on including the ios5 sdk check:
http://help.adobe.com/en_US/flex/mobileapps/WSe4e4b720da9dedb5-4aefe03513238d8a1b8-8000.ht ml]
Thanks.Uhmm, i'm doing a kind-of-360º-panorama-app and we need Gyroscope and Ad-hoc / AppStore distribution. And i've tried to get an answer of any kind from guys on Adobe on their AIR facebook fan page and here.
SHould we write our own gyroscope ANE?, have any of you succesfully compiled ad-hoc or app-store with Ketzler Euler Gyroscope ANE?
http://www.ketzler.de/2011/11/adobe-air-gyroscope-native-extension-with-euler-angles-roll- pitch-yaw-for-ios/
regards. -
Some iOS Native extensions that can be useful
Hi,
I have made some iOS Native extensions that can be useful.
You can find it at https://github.com/xperiments?tab=repositories
ANE7z
=> Adobe AIR iOS Native Extension to decompres 7z files.
ANEZipFile
=> Adobe AIR iOS Native Extension to zip/unzip files.
ANEFileSyncInterface
=> A micro http server with FileManagement capabilities Native Extension
IOSSystemUtils
=> Adobe Air IOS Native Extension to control Brightness / Torch / Badge
ANEUnRar
=> Adobe Air Native Extension to Obj-C UnRar Lib
Please give me your commentsFirst of all, thank you for creating this extension. However, it doesn't seem to work. Below is my code for decompressing ByteArray (error handling is stripped for simplicity):
public function decompress(aData:ByteArray):ByteArray {
// Save data to file
var fileInput:File = File.applicationStorageDirectory.resolvePath("input.7z");
var stream:FileStream = new FileStream();
stream.open(fileInput, FileMode.WRITE);
stream.writeBytes(aData);
stream.close();
var folderOutput:File = File.applicationStorageDirectory.resolvePath("output");
ANE7z.decompress(fileInput, folderOutput);
var files:Array = folderOutput.getDirectoryListing();
for each (var fileOutput:File in files) {
trace("Extracted file: " + fileOutput.nativePath);
if (!fileOutput.isDirectory) {
var bytes:ByteArray = new ByteArray();
stream = new FileStream();
stream.open(fileOutput, FileMode.READ);
stream.readBytes(bytes);
stream.close();
bytes.position = 0;
return bytes;
return null;
The problem is folderOutput.getDirectoryListing() always returns an empty array. -
Adobe AIR HTML Native Full Screen on Mac OS X
I am building an application in Adobe AIR for Mac in HTML/JavaScript.
What I want to do is when the application loads, make the application go into full-screen mode using the correct native full-screen found in OS X Lion and above.
e.g.
This is NOT using the displayState that Flash/Flex uses.
If the users decides to exit full screen mode they will see the app in a native window and can re-enter full screen mode using the icon you get in the top-right of a window.
I've found some information about an extension here: http://forums.adobe.com/thread/1209193
FREObject _EnableFullScreenMode(FREContext ctx, void* functionData, uint32_t argc, FREObject argv[])
//We should be okay to do this, even on 10.6, according to this post:
//http://www.cocoabuilder.com/archive/cocoa/311124-implementing-full-screen-for-10-7-but-app-should-also-run-on-10-6.html
//We can't use [NSApp mainWindow] - didn't appear to work
//This seems to though:
NSArray * allWindows = [NSApp windows];
if (allWindows.count > 0)
NSWindow *mainWindow = [allWindows objectAtIndex: 0];
NSWindowCollectionBehavior behavior = [mainWindow collectionBehavior];
behavior |= NSWindowCollectionBehaviorFullScreenPrimary;
[mainWindow setCollectionBehavior:behavior];
//TODO: Return a boolean instead depending on if we found the main window
return NULL;
That looks to do what I want! But after reading the Adobe AIR docs I can't get my head around where this code should live in my app directory and how I can call it on app load.
So in my index.html I have:
$(document).ready(function() { // Make window full-screen // CALL THE EXTENSION TO MAKE THE APPLICATION FULL_SCREEN // Make window active window.nativeWindow.activate(); // Make it visible window.nativeWindow.visible = true; });
The initialWindow is not visible by default using <visible>false</false> in the application descriptor XML file. And is made visible and active on the document ready as shown above.
The missing piece is loading in the extension and making the window go native full-screen.
To break this question up:
Where does the extension code go? E.g. do I create an extension file and put it in any particular location in the app directory?
How do I then load the extension into the application
Finally how do I then do the full-screen on document ready
What happens in OS X below Lion? How did full-screen work before it was introduced?
Hopefully I can get pointed in the right direction as the docs have totally baffled me and don't explain how the extension file is created (to me at least).Extensions require both native code and ActionScript code and are packed by the native extension compiler by Adobe to an ANE file. Check this tutorial: http://www.adobe.com/devnet/air/articles/building-ane-ios-android-pt1.html
After compiling the extension, you can put the extensionId into your <extensions> branch in the application.xml and add the .ane as an excluded library into your AS3 project. Then you can use the extension like any other external library (swc file).
It's also helpful to download and play around with extisting ANEs. There are some nice open source libraries here: https://github.com/freshplanet -
AIR Native Extension Application Crash on Android Emulator when Extension method is invoked
I have developed a Hello World Application using AIR Native Extension on Android Emulator and When i try to run the application its crashes. I was able to run same application sometimes back on Android Emulator on Mac. Right now I am using a Windows machine (as i dont have Mac anymore). I tried running same apk file which was compiled and running on Android emulator on Mac but it failed. Also i tried to recompile entire application from same code base but still it is failing. As far as i know Mac or windows should not play a part but still mentioning it out in the discussion. Also i tried running the application on various Android SDK version but with same results.
Following is logcat logs for Android 4.0.3.
D/gralloc_goldfish( 497): Emulator without GPU emulation detected.
I/ActivityManager( 84): Displayed air.com.deloitte.helloWorld/.AppEntry: +4s82
6ms
W/InputManagerService( 84): Starting input on non-focused client com.android.i
nternal.view.IInputMethodClient$Stub$Proxy@413e17e0 (uid=10009 pid=179)
W/ActivityManager( 84): Launch timeout has expired, giving up wake lock!
W/ActivityManager( 84): Activity idle timeout for ActivityRecord{41534258 air.
com.deloitte.helloWorld/.AppEntry}
W/NetworkManagementSocketTagger( 84): setKernelCountSet(10009, 0) failed with
errno -2
E/dalvikvm( 497): JNI ERROR (app bug): attempt to use stale local reference 0x5
d500031
W/dalvikvm( 497): JNI WARNING: 0x5d500031 is not a valid JNI reference
W/dalvikvm( 497): in Lcom/adobe/air/customHandler;.nativeOnTouchCa
llback:(IFFFIFFZ[FI)Z (CallObjectMethodV)
I/dalvikvm( 497): "main" prio=5 tid=1 RUNNABLE
I/dalvikvm( 497): | group="main" sCount=0 dsCount=0 obj=0x409c1460 self=0x128
10
I/dalvikvm( 497): | sysTid=497 nice=0 sched=0/0 cgrp=default handle=107408295
2
I/dalvikvm( 497): | schedstat=( 12139801627 5119955457 1265 ) utm=1128 stm=85
core=0
I/dalvikvm( 497): at com.adobe.air.customHandler.nativeOnTouchCallback(Native
Method)
I/dalvikvm( 497): at com.adobe.air.customHandler.nativeOnTouchCallback(Native
Method)
I/dalvikvm( 497): at com.adobe.air.customHandler.handleMessage(customHandler.
java:23)
I/dalvikvm( 497): at android.os.Handler.dispatchMessage(Handler.java:99)
I/dalvikvm( 497): at android.os.Looper.loop(Looper.java:137)
I/dalvikvm( 497): at android.app.ActivityThread.main(ActivityThread.java:4424
I/dalvikvm( 497): at java.lang.reflect.Method.invokeNative(Native Method)
I/dalvikvm( 497): at java.lang.reflect.Method.invoke(Method.java:511)
I/dalvikvm( 497): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.r
un(ZygoteInit.java:784)
I/dalvikvm( 497): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
551)
I/dalvikvm( 497): at dalvik.system.NativeStart.main(Native Method)
I/dalvikvm( 497):
E/dalvikvm( 497): VM aborting
F/libc ( 497): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1)
I/DEBUG ( 34): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *
I/DEBUG ( 34): Build fingerprint: 'generic/sdk/generic:4.0.3/MR1/237985:eng/
test-keys'
I/DEBUG ( 34): pid: 497, tid: 497 >>> air.com.deloitte.helloWorld <<<
I/DEBUG ( 34): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00
d
I/DEBUG ( 34): r0 00000000 r1 00097bd8 r2 00000000 r3 00000000
I/DEBUG ( 34): r4 deadd00d r5 40872c58 r6 0000020c r7 49622e39
I/DEBUG ( 34): r8 4084ee67 r9 4084e703 10 4084ee73 fp 4084f546
I/DEBUG ( 34): ip 00000000 sp bed6a248 lr 4080bc8f pc 4080bc8e cpsr 600
00030
I/DEBUG ( 34): d0 3f8000003f800000 d1 4b00106845834000
I/DEBUG ( 34): d2 4b0010684b000000 d3 0000000045834000
I/DEBUG ( 34): d4 0000000000000000 d5 0000000000000000
I/DEBUG ( 34): d6 0000000000000000 d7 0000106800000000
I/DEBUG ( 34): d8 3f8000003f800000 d9 0000000000100000
I/DEBUG ( 34): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 34): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 34): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 34): scr 68000012
I/DEBUG ( 34):
I/DEBUG ( 34): #00 pc 00050c8e /system/lib/libdvm.so (dvmAbort)
I/DEBUG ( 34): #01 pc 0004486e /system/lib/libdvm.so
I/DEBUG ( 34): #02 pc 000451b0 /system/lib/libdvm.so
I/DEBUG ( 34): #03 pc 0004c9a0 /system/lib/libdvm.so
I/DEBUG ( 34): #04 pc 000e0e4a /data/data/com.adobe.air/lib/libCo
re.so
I/DEBUG ( 34):
I/DEBUG ( 34): code around pc:
I/DEBUG ( 34): 4080bc6c 34b4f8d3 ec54f7cd 26001e73 2f01f813 ...4..T.s..&...
I/DEBUG ( 34): 4080bc7c 42abb152 d0074416 4798e7f8 f7ff4c0a R..B.D.....G.L.
I/DEBUG ( 34): 4080bc8c 7026ffa7 ec4af7cd 2006490c 44794a0c ..&p..J..I. .Jy
D
I/DEBUG ( 34): 4080bc9c f7cd447a 2000eb00 ebc2f7cd 58e54b05 zD..... .....K.
X
I/DEBUG ( 34): 4080bcac 2b006c6b e7e9d1e9 deadd00d 0006234c kl.+........L#.
I/DEBUG ( 34):
I/DEBUG ( 34): code around lr:
I/DEBUG ( 34): 4080bc6c 34b4f8d3 ec54f7cd 26001e73 2f01f813 ...4..T.s..&...
I/DEBUG ( 34): 4080bc7c 42abb152 d0074416 4798e7f8 f7ff4c0a R..B.D.....G.L.
I/DEBUG ( 34): 4080bc8c 7026ffa7 ec4af7cd 2006490c 44794a0c ..&p..J..I. .Jy
D
I/DEBUG ( 34): 4080bc9c f7cd447a 2000eb00 ebc2f7cd 58e54b05 zD..... .....K.
X
I/DEBUG ( 34): 4080bcac 2b006c6b e7e9d1e9 deadd00d 0006234c kl.+........L#.
I/DEBUG ( 34):
I/DEBUG ( 34): memory map around addr deadd00d:
I/DEBUG ( 34): bed23000-bed71000 [stack]
I/DEBUG ( 34): (no map for address)
I/DEBUG ( 34): (no map above)
I/DEBUG ( 34):
I/DEBUG ( 34): stack:
I/DEBUG ( 34): bed6a208 00000000
I/DEBUG ( 34): bed6a20c 4001df19 /system/lib/libc.so
I/DEBUG ( 34): bed6a210 4004770c /system/lib/libc.so
I/DEBUG ( 34): bed6a214 4004c85c
I/DEBUG ( 34): bed6a218 00000000
I/DEBUG ( 34): bed6a21c 4001f121 /system/lib/libc.so
I/DEBUG ( 34): bed6a220 4004755c /system/lib/libc.so
I/DEBUG ( 34): bed6a224 00000000
I/DEBUG ( 34): bed6a228 0000020c
I/DEBUG ( 34): bed6a22c 49622e39 /data/data/com.adobe.air/lib/libCore.
so
I/DEBUG ( 34): bed6a230 4084ee67 /system/lib/libdvm.so
I/DEBUG ( 34): bed6a234 4001df37 /system/lib/libc.so
I/DEBUG ( 34): bed6a238 4086df90 /system/lib/libdvm.so
I/DEBUG ( 34): bed6a23c bed6a44b [stack]
I/DEBUG ( 34): bed6a240 df0027ad
I/DEBUG ( 34): bed6a244 00000000
I/DEBUG ( 34): #00 bed6a248 00000038
I/DEBUG ( 34): bed6a24c 6c756e28
I/DEBUG ( 34): bed6a250 0000296c
I/DEBUG ( 34): bed6a254 00000000
I/DEBUG ( 34): bed6a258 00000000
I/DEBUG ( 34): bed6a25c 00000000
I/DEBUG ( 34): bed6a260 00000000
I/DEBUG ( 34): bed6a264 00000000
I/DEBUG ( 34): bed6a268 00000000
I/DEBUG ( 34): bed6a26c 00000000
I/DEBUG ( 34): bed6a270 00000000
I/DEBUG ( 34): bed6a274 00000000
I/DEBUG ( 34): bed6a278 00000000
I/DEBUG ( 34): bed6a27c 00000000
I/DEBUG ( 34): bed6a280 00000000
I/DEBUG ( 34): bed6a284 00000000
I/DEBUG ( 34): bed6a288 00000000
I/DEBUG ( 34): bed6a28c 00000000
I/DEBUG ( 34): bed6a290 00000000
I/DEBUG ( 34): bed6a294 00000000
I/DEBUG ( 34): bed6a298 00000000
I/DEBUG ( 34): bed6a29c 00000000
I/DEBUG ( 34): bed6a2a0 00000000
I/DEBUG ( 34): bed6a2a4 00000000
I/DEBUG ( 34): bed6a2a8 00000000
I/DEBUG ( 34): bed6a2ac 00000000
I/DEBUG ( 34): bed6a2b0 00000000
I/DEBUG ( 34): bed6a2b4 00000000
I/DEBUG ( 34): bed6a2b8 00000000
I/DEBUG ( 34): bed6a2bc 00000000
I/DEBUG ( 34): bed6a2c0 00000000
I/DEBUG ( 34): bed6a2c4 00000000
I/DEBUG ( 34): bed6a2c8 00000000
I/DEBUG ( 34): bed6a2cc 00000000
I/DEBUG ( 34): bed6a2d0 00000000
I/DEBUG ( 34): bed6a2d4 00000000
I/DEBUG ( 34): bed6a2d8 00000000
I/DEBUG ( 34): bed6a2dc 00000000
I/DEBUG ( 34): bed6a2e0 00000000
I/DEBUG ( 34): bed6a2e4 00000000
I/DEBUG ( 34): bed6a2e8 00000000
I/DEBUG ( 34): bed6a2ec 00000000
I/DEBUG ( 34): bed6a2f0 00000000
I/DEBUG ( 34): bed6a2f4 00000000
I/DEBUG ( 34): bed6a2f8 00000000
I/DEBUG ( 34): bed6a2fc 00000000
I/DEBUG ( 34): bed6a300 00000000
I/DEBUG ( 34): bed6a304 00000000
I/DEBUG ( 34): bed6a308 00000000
I/DEBUG ( 34): bed6a30c 00000000
I/DEBUG ( 34): bed6a310 00000000
I/DEBUG ( 34): bed6a314 00000000
I/DEBUG ( 34): bed6a318 00000000
I/DEBUG ( 34): bed6a31c 00000000
I/DEBUG ( 34): bed6a320 00000000
I/DEBUG ( 34): bed6a324 00000000
I/DEBUG ( 34): bed6a328 00000000
I/DEBUG ( 34): bed6a32c 00000000
I/DEBUG ( 34): bed6a330 00000000
I/DEBUG ( 34): bed6a334 00000000
I/DEBUG ( 34): bed6a338 00000000
I/DEBUG ( 34): bed6a33c 00000000
I/DEBUG ( 34): bed6a340 00000000
I/DEBUG ( 34): bed6a344 00000000
I/DEBUG ( 34): bed6a348 00000000
I/DEBUG ( 34): bed6a34c 00000000
I/DEBUG ( 34): bed6a350 00000000
I/DEBUG ( 34): bed6a354 00000000
I/DEBUG ( 34): bed6a358 00000000
I/DEBUG ( 34): bed6a35c 00000000
I/DEBUG ( 34): bed6a360 00000000
I/DEBUG ( 34): bed6a364 00000000
I/DEBUG ( 34): bed6a368 00000000
I/DEBUG ( 34): bed6a36c 00000000
I/DEBUG ( 34): bed6a370 00000000
I/DEBUG ( 34): bed6a374 00000000
I/DEBUG ( 34): bed6a378 00000000
I/DEBUG ( 34): bed6a37c 00000000
I/DEBUG ( 34): bed6a380 00000000
I/DEBUG ( 34): bed6a384 00000000
I/DEBUG ( 34): bed6a388 00000000
I/DEBUG ( 34): bed6a38c 00000000
I/DEBUG ( 34): bed6a390 00000000
I/DEBUG ( 34): bed6a394 00000000
I/DEBUG ( 34): bed6a398 00000000
I/DEBUG ( 34): bed6a39c 00000000
I/DEBUG ( 34): bed6a3a0 00000000
I/DEBUG ( 34): bed6a3a4 00000000
I/DEBUG ( 34): bed6a3a8 00000000
I/DEBUG ( 34): bed6a3ac 00000000
I/DEBUG ( 34): bed6a3b0 00000000
I/DEBUG ( 34): bed6a3b4 00000000
I/DEBUG ( 34): bed6a3b8 00000000
I/DEBUG ( 34): bed6a3bc 00000000
I/DEBUG ( 34): bed6a3c0 00000000
I/DEBUG ( 34): bed6a3c4 00000000
I/DEBUG ( 34): bed6a3c8 00000000
I/DEBUG ( 34): bed6a3cc 00000000
I/DEBUG ( 34): bed6a3d0 00000000
I/DEBUG ( 34): bed6a3d4 00000000
I/DEBUG ( 34): bed6a3d8 00000000
I/DEBUG ( 34): bed6a3dc 00000000
I/DEBUG ( 34): bed6a3e0 00000000
I/DEBUG ( 34): bed6a3e4 00000000
I/DEBUG ( 34): bed6a3e8 00000000
I/DEBUG ( 34): bed6a3ec 00000000
I/DEBUG ( 34): bed6a3f0 00000000
I/DEBUG ( 34): bed6a3f4 00000000
I/DEBUG ( 34): bed6a3f8 00000000
I/DEBUG ( 34): bed6a3fc 00000000
I/DEBUG ( 34): bed6a400 00000000
I/DEBUG ( 34): bed6a404 00000000
I/DEBUG ( 34): bed6a408 00000000
I/DEBUG ( 34): bed6a40c 00000000
I/DEBUG ( 34): bed6a410 00000000
I/DEBUG ( 34): bed6a414 00000000
I/DEBUG ( 34): bed6a418 00000000
I/DEBUG ( 34): bed6a41c 00000000
I/DEBUG ( 34): bed6a420 00000000
I/DEBUG ( 34): bed6a424 00000000
I/DEBUG ( 34): bed6a428 00000000
I/DEBUG ( 34): bed6a42c 00000000
I/DEBUG ( 34): bed6a430 00000000
I/DEBUG ( 34): bed6a434 00000000
I/DEBUG ( 34): bed6a438 00000000
I/DEBUG ( 34): bed6a43c 00000000
I/DEBUG ( 34): bed6a440 00000000
I/DEBUG ( 34): bed6a444 00000000
I/DEBUG ( 34): bed6a448 00000000
I/DEBUG ( 34): bed6a44c 342b19f5
I/DEBUG ( 34): bed6a450 00000000
I/DEBUG ( 34): bed6a454 4086df90 /system/lib/libdvm.so
I/DEBUG ( 34): bed6a458 5d500031
I/DEBUG ( 34): bed6a45c 407ff873 /system/lib/libdvm.so
I/DEBUG ( 34): #01 bed6a460 bed6a54c [stack]
I/DEBUG ( 34): bed6a464 408001b5 /system/lib/libdvm.so
D/Zygote ( 37): Process 497 terminated by signal (11)
I/WindowManager( 84): WIN DEATH: Window{41462cb0 SurfaceView paused=false}
I/ActivityManager( 84): Process air.com.deloitte.helloWorld (pid 497) has died
W/ActivityManager( 84): Force removing ActivityRecord{41534258 air.com.deloitt
e.helloWorld/.AppEntry}: app died, no saved state
W/NetworkManagementSocketTagger( 84): setKernelCountSet(10041, 0) failed with
errno -2
I/WindowManager( 84): WIN DEATH: Window{41590db8 SurfaceView paused=false}
I/WindowManager( 84): WIN DEATH: Window{4158b920 air.com.deloitte.helloWorld/a
ir.com.deloitte.helloWorld.AppEntry paused=false}
I/BootReceiver( 84): Copying /data/tombstones/tombstone_06 to DropBox (SYSTEM_
TOMBSTONE)
E/InputDispatcher( 84): Received spurious receive callback for unknown input c
hannel. fd=209, events=0x8
D/dalvikvm( 84): GC_FOR_ALLOC freed 928K, 13% free 11284K/12871K, paused 84ms
W/NetworkManagementSocketTagger( 84): setKernelCountSet(10009, 1) failed with
errno -2
D/dalvikvm( 84): GC_CONCURRENT freed 141K, 10% free 11601K/12871K, paused 6ms+
14ms
D/dalvikvm( 84): GC_FOR_ALLOC freed 177K, 11% free 11552K/12871K, paused 128ms
D/dalvikvm( 84): GC_FOR_ALLOC freed 128K, 10% free 11616K/12871K, paused 84ms
D/dalvikvm( 84): GC_FOR_ALLOC freed 427K, 12% free 11445K/12871K, paused 79ms
W/InputManagerService( 84): Got RemoteException sending setActive(false) notif
ication to pid 497 uid 10041
D/dalvikvm( 136): GC_FOR_ALLOC freed 5544K, 37% free 9812K/15495K, paused 47ms
D/dalvikvm( 179): GC_FOR_ALLOC freed 2416K, 21% free 17911K/22535K, paused 77ms
D/dalvikvm( 179): GC_FOR_ALLOC freed 659K, 17% free 18828K/22535K, paused 100ms
D/dalvikvm( 179): GC_CONCURRENT freed 941K, 12% free 19900K/22535K, paused 6ms+
20ms
D/dalvikvm( 179): GC_CONCURRENT freed 3259K, 18% free 18684K/22535K, paused 12m
s+23msI am not able to solve this yet. Is anybody else facing this this problem.
-
Native Extension for AIR publishing error : framework not found
Hello,
I'm trying to build an iOS app using native extensions for AIR, but when I publish, I've an error message saying : framework not found
I tried with this ANE for GameCenter integration : https://github.com/StickSports/ANE-Game-Center
it says " ld: framework not found GameKit "
Same problem with GREE Platform SDK for AIR :
https://docs.developer.gree.net/en/globaltechnicalspecs/#sdkforair
it says " ld: framework not found CoreTelephony "
The thing is that these frameworks are already included, I guess.
I'm using flash cs6 on mac, and I've included the path to iOS SDK in the publishing settings.Are you using the ANE from there or are you recompiling the ANE at your end?
If you are recompiling, please make sure that you are using the platform.xml file they have provided.
If you are using their precompiled ANEs, probably, the path to iOS SDK is not correct. It should be upto the folder iPhoneOSx.y.sdk. -
Air Native Extension for OS X. Cant call functions from native code.
Hi, I am trying to build native extension for OS X.
After creating context, I try to call native function with "call" method, but always I have an error "The extension context does not have a method with the name ..."
In as3 code my ExtensionContext is not null, so it's okay. And in native objective-c code I have a function, which I call in as3 code.
What should I do?
Here my code.
Objective-c:
FREContext AirContext = nil;
FREObject init(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[])
return nil;
FREObject someFunction(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[])
FREDispatchStatusEventAsync(AirContext ,(uint8_t*) "SOME_EVENT", (uint8_t*) "some information" );
return nil;
void ANEContextInitializer(void* extData, const uint8_t* ctxType, FREContext ctx, uint32_t* numFunctionsToTest, const FRENamedFunction** functionsToSet)
NSLog(@"Entering ContextInitinalizer()");
*numFunctionsToTest = 5;
FRENamedFunction* func = (FRENamedFunction*) malloc(sizeof(FRENamedFunction) * *numFunctionsToTest);
func[0].name = (const uint8_t*) "init";
func[0].functionData = NULL;
func[0].function = &init;
func[1].name = (const uint8_t*) "someFunction";
func[1].functionData = NULL;
func[1].function = &someFunction
// other blank functions
*functionsToSet = func;
AirContext = ctx;
FREDispatchStatusEventAsync(AirContext ,(uint8_t*) "SOME_EVENT", (uint8_t*) "some information" );
void ContextFinalizer(FREContext ctx) {
NSLog(@"Entering ContextFinalizer()");
NSLog(@"Exiting ContextFinalizer()");
void ANEInitializer(void** extDataToSet, FREContextInitializer* ctxInitializerToSet, FREContextFinalizer* ctxFinalizerToSet )
NSLog(@"Entering ExtInitializer()");
*extDataToSet = NULL;
*ctxInitializerToSet = &ContextInitializer;
*ctxFinalizerToSet = &ContextFinalizer;
NSLog(@"Exiting ExtInitializer()");
void ANEFinalizer(void* extData)
return;
ActionScript3:
public class MyANE extends EventDispatcher{
private static var _instance:MyANE;
private var extCtx:ExtensionContext;
public function MyANE()
if (!_instance)
if (this.isSupported)
extCtx = ExtensionContext.createExtensionContext("my.awesome.ane", null);
if (extCtx != null)
trace('context is okay'); //this trace works
extCtx.addEventListener(StatusEvent.STATUS, onStatus);
} else
trace('context is null.');
_instance = this;
else
throw Error('singleton');
public static function getInstance():MyANE
return _instance != null ? _instance : new MyANE();
public function get isSupported():Boolean
var value:Boolean = Capabilities.manufacturer.indexOf('Macintosh') > -1;
trace(value ? 'supported' : 'not supported ');
return value;
private function onStatus(event:StatusEvent):void
trace('Event', event, 'code', event.code, 'level', event.level); //this traсе does not works
private function test(): void
extCtx.call("someFunction"); //this throws error
XML:
<extension xmlns="http://ns.adobe.com/air/extension/3.9">
<id>my.awesome.ane</id>
<versionNumber>1.0.0</versionNumber>
<platforms>
<platform name="MacOS-x86">
<applicationDeployment>
<nativeLibrary>MyANE.framework</nativeLibrary>
<initializer>ANEInitializer</initializer>
<finalizer>ANEFinalizer</finalizer>
</applicationDeployment>
</platform>
</platforms>
</extension>
And this script Im using for build ANE:
mv ../as3/bin/MyANE.swc .
unzip MyANE.swc
mv library.swf mac/
rm catalog.xml
rsync -a ../Obective-C/ANE/Build/Products/Debug/ANE.framework/ mac/ANE.framework/
adt -package -target ane MyANE.ane extension.xml -swc MyANE.swc -platform MacOS-x86 -C mac .
mv MyANE.ane ~/Work/_Projects/test/libs-ane/I haven't done Objective C in a long time, but if I'm not mistaken, it requires the semicolon to terminate a line of code. The line containing "func[1].function = &someFunction" does not have that termination and since that is the function you are trying to execute, maybe that is the source of the error.
Maybe you are looking for
-
ICloud on iMac - asked to enter password every time I login
I share an iMac (intel) with my wife. We have separate accounts on the iMac each without a password. My account works just fine with iCloud and my AppleID is linked to my user account on the iMac. However, whenever my wife logs in, she is asked every
-
Satellite P500 - Restart loop after using Toshiba recovery disk
Hi, I have got a problem recovering SATELLITE P500. I had made the recovery disks. It boots ok from the recovery disk and formats the hard drive and copies the disks to the hard drive. It then starts windows setup and reboots. Then it goes to a loop
-
Business logic callable object and Dynamic User assignment
hi all, I have to design scenario using VC and GP using VC i designed a form that consist of some input parameters value,product.. i integrated the designs created in VC to CO's My workflow should be like this now if the value<500 it should go for ap
-
Common problem and can't fix it: Can't send email
Hello wise crowd! I just switched ISP's from Earthlink to AT&T Yahoo and when I did, my Mac Mail magically couldn't send emails. The message I keep getting is: Cannot send message using the server smtp.mac.com. Use the pop-up menu below to try a diff
-
Been using windows for a long time and just barely got my mac... i know in windows, once your done with the usb flash drive you can just pull it anytime. my question is, do i need to eject it for mac before disconnecting it? since eveytime i pull it