I'm trying to develop flex app using Adobe Flash Builder 4.6, small multicast conferencing solution. But I have lots of troubles to run this app. Basically I run app in safari (via flash builder), everything work fine, just I expected. I export app and run it again, just like before works great (in browser on file:// .... /multicast.html).
Problem occurs when I try to run it on any server. Like, on python -
python -m SimpleHTTPServer 8080
or rails webrick or any another.
if I open a browser and type localhost:8080/multicast.html, it will run app but as3 throw an exception with this:
Error: Error #2154: The NetStream Object is invalid. This may be due to a failed NetConnection.
at flash.net::NetStream/invoke()
at flash.net::NetStream/attachCamera()
at multicast/setupStream()
at multicast/netStatus()
source: http://pastebin.com/wyhzXveC
I decided to completely uninstall chrome and install again to avoid flash debugger, which is installed in safari. So far, no luck.
Any suggestions, tips, anything?
Thanks!
I found it! I did not realize, that stream.attachCamera(cam); needs to wait after netStream will be successfully connected to a server.
Thanks #LDMediaServices!
Related
I'm having major issues with my Flash Debug Player. For a while now it hasn't been able to launch properly, or at least so it seems. Whenever I visit a site with the debug player enabled I just get the sad puzzle piece and a message saying that Macromedia Flash Player has crashed. It's the same thing with ADL, I can only run it with the -nodebug flag.
It works just fine if I install the regular Flash Player or use the one built into Chrome.
If I'm not mistaken, this might have begun to happen when I installed the Flashbug debugger in Firefox.
I've done the following:
tried installing an older version of the debug player
uninstalled flash and AIR completely before installing a new version
made sure there is a flashlog.txt file
I've edited my mm.cfg to look like this:
ErrorReportingEnable=1
TraceOutputFileEnable=1
Nothing is written to flashlog.txt when I try using the debug player, or ADL, and it works with the regular player and ADL with -nodbug enabled, so I'm guessing something happens with the logging part of the player. When running ADL i get "Bus error: 10" in the terminal.
Could anyone give me a hint, or any ideas at all on how to fix this? Could there be some hidden configuration file somewhere that isn't removed when I uninstall to do a fresh install or something?
Please can you tell me what version you are running. The error appears when you try to debug a project from Flex or Flash Builder? I Had similar when trying to debug projects in Flash Builder with Firefox, the solution (for me) was to uninstall flash player with this program and then install again a correct version, in this case try with the version 9 or 10.
I hope it will be helpful
I am developing an as3 application intended to be published with AIR.
I use the 4.6 version of Flex SDK with the flash builder plugin for eclipse.
I can launch/debug my app via eclipse without any problems. I export a valid version of the app and get my air installer. When I install and launch my app, I get a blank screen...
I don't know how to debug this. It seems that I miss something in the publication configuration but I don't know what.
I have been searching the web for hours and didn't find any solution, hope somebody can help me here !
Thanks for any help.
It simply was a real as3 error that didn't show up on debug mode...
When allowing the debug mode on the AIR application I learned that the property mouseChildren cannot be set on SimpleButton.
I got the same problem with my app and I finally found a way to display the error in the package app:
You just have to add a file named debug into your app/META-INF/AIR folder.
For detailed information see Adobe Cookbook.
I've just upgraded to publish my SWF files as Flash 11. I want to attach FlashDevelop to Firefox (or IE). I'm able to first attach it, however player crashes after my first call to PHP file(not sure if it is related) and the debugger is stopped. If I just run the program without debugging it doesn't crash.
How can I figure out what is causing the problem?
Here is my set up:
FlashDevelop 4.0.1 RTM on Windows 7 (32bit)
Installed - Windows Flash Player 11.2 Plugin content
debugger (for Netscape-compatible browsers) (EXE, 3.89MB) from http://www.adobe.com/support/flashplayer/downloads.html
In FlashDevelop, I point Program->Settings->FlashViewer to flashplayer_11_plugin_debug_32bit.exe (I'm not exactly sure if this correct).
The way I attach is by going to Debug->Start Remote Session. Then launch an HTML page that loads my SWF.
update: Instead of upgrading to 11.2 version I upgraded to 11.1 . Now I'm getting some feedback in the output window. [Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference. However FlashDevelop doesn't break on that exception and I don't see a file name or line number which would help me to figure out wher exectly the error is happening.
update: I finally rolled back to my original version of 10.1.102.64 and now FlashDeveloper isn't crashing while debugging.
When you debug a flash application, you freeze the thread and your browser will think the application has locked up or died. It will then try to save your browsing session by force closing the plugin causing the problem (in this case, Flash).
To stop Firefox from doing this, type in "about:config" (minus quotes) in the address bar and hit enter, then click "I'll be careful" if a warning comes up.
Look for "dom.ipc.plugins.timeoutSecs" by typing it in the config search bar and set its value to -1. This will stop the browser from shutting down laggy plugins.
Disable the flash debugger plugin in your browser. Are you accessing the same SWF from the browser that you are debugging?
I am trying a simple code for event handling. I applied break point on a line of action script code of event. I want to see the debug window to check which event is generated. It does not show me any error but whenever i click the debug button i get the following problem
The Flash Builder debugger failed to connect to the running application.
Ensure that:
For in-browser applications, you are running the debugger version of Flash Player.
For network debugging on a mobile device, you have a reliable network connection to the device, and port 7935 is open on your machine's firewall.
My project runs correctly in browser showing the desired output but it shows me launching failed dialog with above error. Please help
One other thing you can try which worked for me when the above didn't - in Flex Compiler in Properties for the project, untick Generate HTML wrapper file, apply that, then tick it again and apply again. Seems to clean/reset the project in some way, which 'clean project' doesn't.
Try to shutdown "adl.exe" in taskmanager, It seens the old adl.exe occupied port 7935 that flashplayer can't creat new one.
That's how I solved it.
It happens many a time, but you can solve it in 4 ways
1) Clean the project and try.
2) Close flex builder and reopen it. try it, If that doesn't work than go for 3 option
3) Change your workspace and import that project in it or best is create new one and make the changes in it, Sometimes the workspace get corrupted and so it happens...
4) If above 3 option that doesn't work than reinstall your Flex builder, make sure that you uninstall flex builder properly.
I had exactly that symptom. Blank browser window, a freeze at 57% for 2 minutes and the same error message.
The problem was an error in my javascript. As usual, it just silently aborts whatever it is doing. As a result, the SWF was never started and the debugger failed to connect to the running program.
So, if the browser window remains blank it is probably a javascript error. Display the javascript console to see what is going on.
When I faced this issue what I had to do is re-install the adobe flash debugger version for firefox and Flash could successfully run in debug mode
Reason for the error : The firefox updates the flash builder version which for some reason doesn't work with the Adobe Flash Builder 4.6
You can follow below steps and get the flash application run in the debugger mode :
1) Go to https://www.adobe.com/support/flashplayer/debug_downloads.html
2) Download : [Download the Flash Player content debugger for Firefox - NPAPI][1]
3) Install the downloaded executable and install it over whatever version of Adobe Flash
builder that you have .
4) Restart the Flash Builder and run the application in debugger mode and check if it
works.
I have a complex, pre-existing Actionscript project to work with at my current employer. The project was originally created with FlashDevelop, which is not an option for me as a Mac user. I can successfully build the project and deploy it to others. It runs as expected.
The problem is with the debugging. I cannot make it work. I believe users of Flash Builder on Windows machines have successfully debugged this project on their machine. I can build and debug projects I make myself. It's THIS particular project, or something about how it is constructed, that is preventing debugging from occurring.
Symptoms:
Starting the program via the Debug button runs the program, but the presence of a breakpoint causes the program to freeze the browser where it is running
Removing the breakpoint or stopping the debugger allows the browser to unfreeze and continue normally
At no point does the breakpoint actually get reached and break into the debugger
Attempting to place a breakpoint during execution results in an internal error: java.lang.NullPointerException
Example log message from within .metadata/.log
java.lang.NullPointerException
!STACK 0
!MESSAGE Error processing debugger commands
!ENTRY com.adobe.flexbuilder.project 4 43 2011-08-24 13:35:07.404
at java.lang.Thread.run(Thread.java:680)
at com.adobe.flexbuilder.debug.model.FlexDebugTarget$FdbThread.run(FlexDebugTarget.java:793)
at com.adobe.flexbuilder.debug.model.FlexDebugTarget$FdbThread.eventLoop(FlexDebugTarget.java:732)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at com.adobe.flexbuilder.debug.model.FlexDebugTarget$FdbThread$1.run(FlexDebugTarget.java:752)
at com.adobe.flexbuilder.debug.model.FlexDebugTarget$FdbThread.access$7(FlexDebugTarget.java:642)
at com.adobe.flexbuilder.debug.model.FlexDebugTarget$FdbThread.advanceStateMachine(FlexDebugTarget.java:668)
at com.adobe.flexbuilder.debug.model.FlexDebugTarget$FdbThread.installDeferredBreakpoints(FlexDebugTarget.java:637)
at com.adobe.flexbuilder.debug.model.FlexDebugTarget.access$4(FlexDebugTarget.java:1006)
at com.adobe.flexbuilder.debug.model.FlexDebugTarget.instantiateBreakpoint(FlexDebugTarget.java:1012)
at com.adobe.flexbuilder.debug.breakpoints.FlexLineBreakpoint.instantiate(FlexLineBreakpoint.java:465)
at com.adobe.flexbuilder.debug.breakpoints.FlexLineBreakpoint.findSourceFiles(FlexLineBreakpoint.java:412)
Attempted Fixes:
Cleaned project
Cleared browser cache
Tried different browsers (Yes, I have the debug player)
Deleted .metadata
Deleted workspace
Reinstalled Flash Builder
Reinstalled Debug Flash Player
Restarted Mac
Tried a different SDK
Reordered Java preference for both 32 and 64 bit configurations
Removed symlinks from project configuration (that is, symlinks are no longer needed to correctly find the build or run location)
Cleared Flash logs
Ensured no more than one version of the program was getting compiled (so it can't actually be running from another location)
Explicitly turned on debugging through compiler argument: -debug=true
Changing just about every relevant and lots of irrelevant settings within Project Properties
Project Details:
Interestingly, clicking on Actionscript Applications in the Project Properties results in Flash Builder immediately becoming unresponsive
Uses third-party libraries for functionality that may or may not be Debug builds
Uses third-party code for functionality that is included with the rest of the code via Actionscript Build Path > Source path (note that this folder must be included explicitly for this project even though the path included is already in the source directory)
Runs from a local web server, accessing local database using a custom domain that is not "localhost" nor an IP address (changed for Chrome cookie issues), rather it looks like http://programname.local/
Launch configuration starts the web browser at the correct local url (as opposed to starting up from a file), probably irrelevant
There is one additional compiler argument that simply creates a global, compile-time constant, probably irrelevant
Source and project directories contain svn repository folders and files, probably irrelevant
I have an NDA, so I can only talk about the project and its structure, I can't post code
Configuration:
Mac OS 10.6.8
Flash Builder 4 (through CS5)
Flex SDK 4.0 and 4.5.1
Figured it out. Our app uses a preloader which I had always gotten from others. I had assumed it was compiled to debug because I always got my copy from our debug server. I didn't fully understand how it worked or what it was doing.
Due to a Flash error in the preloader, this morning I was forced to compile it for the first time. Compiling it normally (as debug) I realized the problem with non-debug swfs loading debug swfs might apply here.
Breakpoints worked as expected once I correctly compiled the preloader and fixed its bug. Apparently our preloader is doing the actual loading of the main app. Flash Builder apparently can't handle this setup (non-debug loading a debug swf), whereas FlashDevelop apparently can.
Have you tried restarting your Mac?
I feel your pain, and your list of attempted fixes are what I'd try first :)
I had a similar situation to this and after hours of cursing Adobe I restarted my Mac and that solved it (probably some kind of memory error).