Flex 3 Beta 2 Debugger Crash
Hello,
I'm seeing a possible memory leak within
ImageSnapshot.captureImage() and also a debugger crash depending on
the dpi that I pass to that function.
This occurs while iterating over the children of a canvas,
creating an ImageSnapshot, and writing that snapshot to a file
while running / debugging an AIR application within Flex builder 3
beta 2. I've attached a sample application that demonstrates 1. an
out-of-memory error and 2. a debugger crash depending on the dpi
that's passed to captureImage().
1. I get an out-of-memory error #1000 when calling
ImageSnapshot.captureImage() with a dpi that results in an image
size of approx 5800x4400. This error occurs at random locations
within captureImage() depending on the dpi that's passed in.
Sometimes I can call captureImage() four times before getting out
of memory; sometimes more, sometimes less. Is it possible to adjust
the heap-size for an AIR application to avoid this. Could this be a
result of a memory leak? The documents indicate that captureImage()
should be able to produce 8kX8k images as long as they stay within
the (256MB) size limit of ByteArray. Shouldn't I be able to write
endless amounts of 5800x4400 images?
2. In the sample application included here. If the dpi is set
to 300, the app will loop four or five times and the debugger will
then crash.
Any help on either of the two topics above is appreciate.
Thanks,
Pete
Can you please file a bug?
http://bugs.adobe.com/flex
Thanks!
- Peter
Similar Messages
-
Flex Builder Beta M4 uninstall failure
Flex builder beta M4 has expired 53 days earlier than
promised. But that's little trouble. Awful trouble is that it is
refusing to uninstall. When I am trying to uninstall, it says this,
quote:
quote:
java.lang.InternalError: jzentry == 0,
jzfile = 8600112,
total = 1099,
name = C:\Program Files\Adobe\Flex Builder 3\Uninstall Adobe
Flex Builder 3\uninstaller.jar,
i = 99,
message = invalid LOC header (bad signature)
at java.util.zip.ZipFile$3.nextElement(Unknown Source)
at java.util.zip.ZipFile$3.nextElement(Unknown Source)
at ZeroGy.d(DashoA8113)
at ZeroGy.a(DashoA8113)
at ZeroGy.b(DashoA8113)
at ZeroGd.g(DashoA8113)
at ZeroGd.b(DashoA8113)
at ZeroGd.b(DashoA8113)
at ZeroGd.b(DashoA8113)
at com.zerog.ia.installer.LifeCycleManager.a(DashoA8113)
at com.zerog.ia.installer.LifeCycleManager.b(DashoA8113)
at com.zerog.ia.installer.LifeCycleManager.a(DashoA8113)
at com.zerog.ia.installer.Main.main(DashoA8113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.zerog.lax.LAX.launch(DashoA8113)
at com.zerog.lax.LAX.main(DashoA8113)
Anybody has any idea how to bypass this to get this POS
(piece of software) out of my system?Hi Larry,
Thank you so much for your reply!
I am mainly using Flash Builder Beta 2 which like I said does install fine(using the stand alone version). In code mode it does crash sometimes, but is rare, it happens now and then, but what I really want to get working is the design view. i am new to flex, and would really like this to work.
when I go to the terminal
java - version
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)
I did install java 1.5 for CodlFusion 9, turned out that I don't need it, well I think not. I was thinking about re installing Snow Leopard to see if I could get Flex working, but I have not yet done that. I have heard that others have flash builder or flex working in snow leopard, can you confirm this?
My laestest error log FlashBuilder beta 2:
http://hawaiiflash.net/flashBuilder_error.txt
for Flex 3:
http://hawaiiflash.net/flex3_error.txt
also I have http://hawaiiflash.net/Flex3.txt
now I did hear from somebody that since I have 2 different versions of java this is causing issue with Flex? should I un-install all prior versions of java and just leave the 1.6 version? I am not sure why this would cause flex to crash when in design mode?
Thank you so much for your help, I would love to get flex working in design mode, either flex 3 or flash builder`-`
Johnny -
Visual Studio Debugger Crashes Without Notice
In the process of debugging a C++ application, and after increasing the array dimensions to final desired size, code will build but the VS Debugger crashes. I assume that code has exceeded some limit but I do not which. What is the limit
size for an array of doubles? - the code crashes when I define two arrays of 50,000 variables. - What could I being doing wrong?Hi Ernest26505,
Since this forum is to discuss the VS debugger tool issue, to make sure that whether it is your project issue or the VS debugger issue. Could you share us a simple sample with one drive? So we could really repro it in our side.
Since you get this issue when you debug your app, if you run your app with "Start Without debugging(Ctrl+ F5)", how about the result? Please check the detailed message in output window and Error list window if you build your app. We have to
make sure that it has no build error like this case:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/724e0694-e070-440c-811f-013b15a61b64/c-2010-how-to-create-big-array-sizes?forum=vcgeneral
To make sure that whether it is related to the specific line code, add the breakpoints in your project, and debug them, check the result.
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hi all.
I'm banging my head against a wall here, and wondered if someone else could help me out!
I'm working on a project which utilises a 3rd party open source control based on Halo Panels. It would take quite a bit of time to re-write this control to be Spark based.
As part of the project spec, the application must be dynamically skinnable to allow easy customisation. This means the look and feel has been done mostly using embedded images within a CSS file, setting background images and other styles that support images. These can be loaded at runtime, and everyone was happy.
Attached is a screenshot called Flex3Screenshot. This shows the look that was desired in the app : "Glossy" panel headers and a light border around the panel.
Then, it was decided that we should be using Flex 4 Beta 2, not the previous 3.4 SDK. (The version I'm using is the standard vanilla 4.0.0.10485)
Mostly, the transition has been OK. I've changed many controls from Halo to Spark as appropriate, but this wasn't possible with the Goozo controls, so we've had to stick with Halo panels as the containers.
I'm now trying to bring back the old "dark" look and feel, and this is where I'm having trouble!
I've attached a massively cut-down FlexBuilder project with a simple style sheet, a single glossy title bar image, and an MXML app with a panel in it.
No matter what I do, I can't get the CSS to work in the same way, because the panel always has a 2 pixel wide border underneath its header. This border is made up of the panels base header colour which has the bitmap put over the top, leaving a small gap.
I can "remove" this, by setting the baseColor property to black, but the baseColor property seems to override the borderColor property, so I don't have borders any more, which "Isn't What We Want"(tm).
Setting the headerColors doesn't seem to work in Flex 4 (I've checked, and it works fine in Flex 3, and if it worked, I could spoof the glossy look by just setting a white to black gradient in the header colours), or set the header colour to black and overlay the image.
I can use the nasty kludge of -theme=${flexlib}/themes/Halo/halo.swc in the command line properties, but that's like admitting defeat! (and I can't guarantee that it will always work!)
Does anyone have any ideas? As far as I'm aware, I should be able to create an MXML skin component (as per http://blog.flexexamples.com/2009/05/02/changing-the-title-bar-background-fill-on-a-spark- panel-container-in-flex-gumbo/), but as far as I know, I won't then be able to dynamically skin it with a CSS file.
Many thanks.
PeteHi,
Unfortunately this doesn't have anything to do with the FlexUnit code itself. These are bugs inside of the Flash Builder plugin. You may want to post on their forum as well to try to get some support.
The only advice I can offer, is that things seem to work much better if I consistently use the Execute FlexUnit Tests, which can be found under the run button. They work much less well if I right click and tell it to execute tests.
Mike -
Flex 3 Beta 3 FlashVars, where did they go?
Did something change in the way FlashVars are handled in Flex
3 Beta 3?
I am working on an application and I need access to FlashVars
for some functionality, yet when the application loads,
Application.application.parameters does not get populated with any
information.
I have attached the snippet of code used in the HTML file.
In the HTML source from FireBug in FireFox, the <embed> shows
that flashVars is being passed.Also, when using the old fashioned <object><embed
/></object> and appending variables onto the path of the
file, fileName.swf?xmlPath=moo does not populate
Application.application.parameters. -
Migration from Flex 2 beta 3 to Flex 2
Hi there,
Whoever is reading this stuff, may I take an honour to notify
you all, there are big big big changes in running a flex 2 beta 3
applciation in compare to running a flex 2 release application.
I am almost finish with my project now and when we ported the
application to flex 2 release version, the application is not
working at all. Below is the list of problems I am facing...
1. Datagrid not at all supporting array collection anymore
2. Tree.selectedIndex not working
3. Drag and drop methods not supportive
4. All UI constraints are changes...
if anybody can answer these questions i would be
thankfulI'm sorry to hear that you are having problems. A few APIs
did change from B3 to final, but you should be getting compile
errors for those. I can assure you that all of the areas you
mentioned were tested and are working for many folks so if you can
supply examples of what isnt working we can try to get you back up
and running. -
Can't download Flex Builder Beta 3
When I attempt to download Flex Builder Beta 3, I'm
redirected to
http://trials.adobe.com/pub/esd/labs/flex2/FlexBuilder2_B3_05-08.exe
in Firefox and
http://www.adobe.com/cfusion/entitlement/index.cfm?event=custom&sku=RC00211&e=labs
in IE. In both cases I get a "page cannot be displayed" or "server
not found" error. Any suggestions?Hello,
This is being discussed internally. We're working on a
solution. Sorry!
- Rob
"KenichiM" <[email protected]> wrote in
message
news:e3uo1j$4ub$[email protected]..
> When I attempt to download Flex Builder Beta 3, I'm
redirected to
>
http://trials.adobe.com/pub/esd/labs/flex2/FlexBuilder2_B3_05-08.exe
in
> Firefox
> and
>
http://www.adobe.com/cfusion/entitlement/index.cfm?event=custom&sku=RC00211&e=la
> bs in IE. In both cases I get a "page cannot be
displayed" or "server not
> found" error. Any suggestions?
> -
Use of multi-dimensional arrays in forms - forms debugger crash
Hello All readers,
have an issue with use of multi-dimensional arrays in forms when debugging and/or calling another form post array-population.
USING VERSIONS: oracle forms 9.0.4, Jinitiator 1.3.1.17, oracle db 10.1
the following code snippet works from a when-button-pressed trigger when called without the debugger. when called with the debugger it crashes when any element of the multi-dimensional associative array is accessed/populated/read. In addition, if i populate the multi-dimensional array then call a form (a msgbox form to display the arrays content as a string) it crashes too.
declare
type datasource_rec is record (field varchar2(32), val varchar2(3999));
type datasource_arr is table of datasource_rec index by binary_integer;
type datasource_arr_arr is table of datasource_arr index by binary_integer;
l_arr datasource_arr_arr;
procedure poparr(i_arr out datasource_arr_arr) is
idx binary_integer := 1;
iidx binary_integer := 1;
begin
while (idx <= 10) loop
iidx := 1;
while (iidx <= 10) loop
i_arr(idx)(iidx).field := 'field'||to_char(iidx)||':'||to_char(idx); --# debugger crashes here with JVM aborting... message (which crashes forms builder too)
i_arr(idx)(iidx).val := 'test value';
iidx := iidx+1;
end loop;
idx := idx+1;
end loop;
end;
procedure printarr is
idx binary_integer := l_arr.first;
iidx binary_integer;
l_msg varchar2(4000);
l_response pls_integer;
begin
while (idx is NOT null) loop
iidx := l_arr(idx).first;
while (iidx is NOT null) loop
l_msg := l_msg||chr(10)||l_arr(iidx)(idx).field||' = '||l_arr(iidx)(idx).val;
iidx := l_arr(idx).next(iidx);
end loop;
idx := l_arr.next(idx);
end loop;
alerts.info('see console for full printout: '||chr(10)||l_msg);
--l_response := msgbox.show(l_msg); --calls another modal form to display a long message, which crashes the runtime with a java console message*
r$debug.print(l_msg);
end;
begin
poparr(l_arr);
printarr;
end;
The java console does not print anything useful when both forms builder and the runtime crash/hangs as a result of the debugger being attached (except displaying a "JVM aborting" message) but when the runtime alone crashes as a result of calling another form after popping the MD array it prints:
oracle.forms.net.ConnectionException: Forms session <28> aborted: unable to communicate with runtime process.
at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
at oracle.forms.net.HTTPNStream.flush(Unknown Source)
at java.io.DataOutputStream.flush(Unknown Source)
at oracle.forms.net.StreamMessageWriter.run(Unknown Source)
has anyone else encountered this problem and found a solution/workaround? is their some sort of memory limitation for forms-side handling of (multi-dimensional) arrays?+
many thanks
ps: i get similar problems when a) populating the array from a server/db-side packaged procedure (crashes with java console message as above even when not debugging) b) using server/db-side packaged types for the array.Hello All readers,
have an issue with use of multi-dimensional arrays in forms when debugging and/or calling another form post array-population.
USING VERSIONS: oracle forms 9.0.4, Jinitiator 1.3.1.17, oracle db 10.1
the following code snippet works from a when-button-pressed trigger when called without the debugger. when called with the debugger it crashes when any element of the multi-dimensional associative array is accessed/populated/read. In addition, if i populate the multi-dimensional array then call a form (a msgbox form to display the arrays content as a string) it crashes too.
declare
type datasource_rec is record (field varchar2(32), val varchar2(3999));
type datasource_arr is table of datasource_rec index by binary_integer;
type datasource_arr_arr is table of datasource_arr index by binary_integer;
l_arr datasource_arr_arr;
procedure poparr(i_arr out datasource_arr_arr) is
idx binary_integer := 1;
iidx binary_integer := 1;
begin
while (idx <= 10) loop
iidx := 1;
while (iidx <= 10) loop
i_arr(idx)(iidx).field := 'field'||to_char(iidx)||':'||to_char(idx); --# debugger crashes here with JVM aborting... message (which crashes forms builder too)
i_arr(idx)(iidx).val := 'test value';
iidx := iidx+1;
end loop;
idx := idx+1;
end loop;
end;
procedure printarr is
idx binary_integer := l_arr.first;
iidx binary_integer;
l_msg varchar2(4000);
l_response pls_integer;
begin
while (idx is NOT null) loop
iidx := l_arr(idx).first;
while (iidx is NOT null) loop
l_msg := l_msg||chr(10)||l_arr(iidx)(idx).field||' = '||l_arr(iidx)(idx).val;
iidx := l_arr(idx).next(iidx);
end loop;
idx := l_arr.next(idx);
end loop;
alerts.info('see console for full printout: '||chr(10)||l_msg);
--l_response := msgbox.show(l_msg); --calls another modal form to display a long message, which crashes the runtime with a java console message*
r$debug.print(l_msg);
end;
begin
poparr(l_arr);
printarr;
end;
The java console does not print anything useful when both forms builder and the runtime crash/hangs as a result of the debugger being attached (except displaying a "JVM aborting" message) but when the runtime alone crashes as a result of calling another form after popping the MD array it prints:
oracle.forms.net.ConnectionException: Forms session <28> aborted: unable to communicate with runtime process.
at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
at oracle.forms.net.HTTPNStream.flush(Unknown Source)
at java.io.DataOutputStream.flush(Unknown Source)
at oracle.forms.net.StreamMessageWriter.run(Unknown Source)
has anyone else encountered this problem and found a solution/workaround? is their some sort of memory limitation for forms-side handling of (multi-dimensional) arrays?+
many thanks
ps: i get similar problems when a) populating the array from a server/db-side packaged procedure (crashes with java console message as above even when not debugging) b) using server/db-side packaged types for the array. -
This is my first time working with a beta copies of software. I would like to upgrade to Flex 4 Beta 2. I do not see an uninstall for Flex 4 Beta 1. Will Flex 4 Beta 2 install in the same directory as Flex 4 Beta 1?
Are you on a Mac or PC? If on a Mac, you can look in Applications > Adobe Flash Builder Beta (or whatever your version is) > Uninstall Adobe Flash Builder Beta. Run the Uninstall from there. If you're on a PC just go to the Control Panel and uninstall using the Add/Remove Programs dialog.
Also, Flash Builder Beta 2 will install in a separate directory than Flash Builder Beta 1, but I think they still recommend that you uninstall Beta 1 first. -
I have no AIR export button, or even no menu, like "file >
new > AIR project" ! Does it means that AIR hasn't been
implemented in Flex 3 Beta 2 ? Here's a capture :
http://screencast.com/t/smSY2UTSwl
EDIT: I try to deinstall using the unistaller, then
reinstall. It doesn't work...
EDIT : Ok, I see :-) AIR projects are know define in Flex
project properties. Sorry for the useless post !Hi There
For project creation Check out File > New > Flex
Project > Choose the AIR option in the Application type field.
For Export, see File > Export > other > Flex >
Export release version or there is a tool bar button.
hth
-Larry -
Hi,
Last night I spent about 3 hours looking for problem which
came up for me yesterday. Before I'll get back to writing sample
app which tell me if there is a problem in my code I will ask if
anyone has noticed this behaviour.
I'm connecting to c# socket with Socket class. First message
goes nicely. But when I'm trying to write next messages nothing
happends. Messages from socket are coming all the time. The problem
is only with writing.
I'm using writeUTFBytes method to write. RIght after writing
I'm executing flush() n socket.
Is it possible it is the problem with Flex Socket in 3 Beta
2?in
http://bugs.adobe.com/jira/browse/FB-9947
it is remarked that re-establishing an internet connection resolves
the issue, but it DOES NOT!
I still get the
'Flex Builder cannot access the server containing the Start
Page content.
If you are offline, try connecting to the network and
refreshing the Start Page.' message.
Andy -
Flex 2 Beta 3 Flex Component Explorer
Is there some valid or explainable reason that every time I
click on a
component in the explore I am being asked to restart my
computer?ntsiii wrote:
> I am running it inside FB.
>
> Are you having any other problems with FB?
Yes, the code hints pop ups do not work for me, I have a
thread in the
flex_builder forum on this point. They lock out my keyboard
when they
pop up.
> Do you get an error message?
Nope just the "System Settings Change" MS Windows dialog box
saying,
"You must restart your computer before the new settings will
take
effect. Do you want to restart your computer now? Yes | No"
This
happens whenever I click on the component links on the left
side menu.
If I say yes, my computer reboots. If I say no nothing
happens and no
component example.
> Stand alone FB or Eclipse plug-in?
Stand alone Flex Builder 2 Beta 3. -
Flex 2 beta 3 compiler confused by syntactic error
Hi,
The Flex Builder 2 beta 3 compiler seems to get confused by a
specific syntactic mistake I've made in my code.
It is not making a "proper" syntax error report. It's instead
throwing a nasty "An internal build error
has occurred. Please check the Error Log" error, so I thought
I should share that on the forum.
The thing that lead to the "internal error" is that I wrote :
var newCourseXMLDesc : XML =
<CourseDescription
nomDuPlat=_{courseNameTextBox.text.toString()} />;
instead of that :
var newCourseXMLDesc : XML =
<CourseDescription
nomDuPlat={_courseNameTextBox.text.toString()} />;
Notice the position of the _ character just before the
courseNameTextBox.
I guess that should be fixed in a final version of the
compiler.
Cheers
Nicolas FonroseI just successfully deployed all three FDS web applications
on Tomcat 5.5.17 with Sun 1.5.0_06 without any exceptions. From the
stack trace it looks like this is thrown at startup. Can you
confirm?
Are you sure you deployed the war files cleanly? -
In Getting Started with Flex 2.0 (Adobe Flex 2.0 Help) it
says:
"Ensure that a tutorials directory was created in the samples
web
application when you unzipped the tutorials zip file on the
Beta site."
Anyone know where this zip file can be found and what Beta
site are they
talking about, or even know what a "samples web application"
is?
I can't find any tutorials zip file on Macromedia Flex 2
site.
DougYes I have the tutorials, but as you work through them, you
come to one
tutorial which says:
Before you begin this tutorial, perform the following tasks:
� Ensure that you have installed the Flex 2.0 Beta 2
release and that
you can run the applications in the samples web application.
� Ensure that a tutorials directory was created in the
samples web
application when you unzipped the tutorials zip file on the
Beta site.
The directory should contain two MXML files named
completed1.mxml and
completed2.mxml. If you don't have a tutorials directory, the
use folder
names option may not have been enabled when you extracted
files from the
zip file.
I have downloaded everything I can find, but there are no
files on my
computer called completed?.mxml and I can't find any
tutorials zip file.
Doug -
I have installed Flex 3 latest Beta. Now, when I am working
in class editor it colors same words shown on the screen. How can I
get rid of this?
ThanksYou can switch the coloring off by clicking on the Mark
Occurrences button in the tool bar.
Hover the mouse over the buttons to see the tool tip text and
look for mark occurrences.
Thanks,
Gaurav Jain
Flex SDK Team
Maybe you are looking for
-
SUM function with condition in RTF template
Hi All, I have a problem in calculating the SUM in RTF template with condition, Here is the XML - <LIST_G_LINE_NOTES> - <G_LINE_NOTES> <LINE_TRX_ID>1567856</LINE_TRX_ID> <LINE_ID /> - <LIST_G_TRX_LINE> - <G_TRX_LINE> <CF_ITEM_NO>SDCN1144B</CF_ITEM_NO
-
Material code is not coming in MF60
Hi Experts, I am facing a problem, I have released a production order for 40 nos of X fg. X Fg is having a child item i.e. A Qty 1 in one X. but when I see mmbe of A. 50 Nos is showing in recpt reservation tab. Probably this the reason, the material
-
Time Machine stopped backing up, "preparing"
Hi, I recently moved and backed up an imac I left behind as well as my macbook using Time Machine. Everything was fine until Feb 27 when I was hit by a car and spent the next several weeks away from the computer. When I did get the laptop back, I d
-
Upgrade 7.1.1 issue
I get the following error after I installed 7.1.1. The error did not happen before the upgrade and I can use audio with other apps. I have tried reinstalling several times. Can I go back to the previous version which run fine. I am on Windows XP. Err
-
I'm having trouble with my Shuffle.. this started happening a few weeks ago. iTunes can't detect it. when i try opening it in My Computer, it freezes, and i can't get the latest iPod updater to work for it. it says "iPod Service Error" or something l