History | Log In     View a printable version of the current page.  
Issue Details (XML)

Key: FB-11712
Type: Bug Bug
Status: Open Open
Priority: C C
Assignee: Tom Lane
Reporter: tjerk ameel
Votes: 12
Watchers: 17
Operations

If you were logged in you would be able to see more operations.
Flash Builder / Flex Builder

When you uncheck "Copy non-embedded files to output folder" you can no longer compile your air app with custom icons...

Created: 01/15/08 07:58 AM   Updated: 06/04/09 04:13 PM
Component/s: AIR: Export to AIR
Security Level: Public (All JIRA Users )

File Attachments: None
Image Attachments:

1. 16.gif
(0.0 kb)

Severity: Non Functioning
Reproducibility: Every Time
Discoverability: Medium
Milestone: Gumbo Release
Affected OS(s): Mac - OS 10.5
Steps to Reproduce:
Steps to reproduce:
1. uncheck "Copy non-embedded files to output folder"
2. add custom icons to ...-app.xml
3. export release build
 
 Actual Results: Error creating AIR file: 303: ERROR, ...
 
 
 Expected Results: A flawless build
 
 
 Workaround (if any): check none other than to check "Copy non-embedded files to output folder" again.
 
 
 
Language Found: English
Bugbase Id: none
Triaged: Yes
Regression: No
QA Owner: Mac Martine
Participants: Bastian K., Charles Galpin, Chris Curtis, Clifford Hall, David Jansen, Debarshi Roy, Denis Carabadjac, Denis Maslov, Dinu Bogdan, Hans-Peter Benz, Heidi Williams, Jereme, John C. Bland II, Larry McLister, Mac Martine, Mikko Hynninen, Philip Bondarev, Raymond Lee, Thomas Pickett, tjerk ameel, Tom Chiverton and Tom Lane
UI Change Needed: No


 All   Comments      Sort Order:
Clifford Hall - [02/16/08 02:44 PM ]
This also is happening on Windows XP. Flex Builder 3 build 3.0.190133 Beta 3. Whatever version of AIR shipped with that FB drop (i haven't updated AIR beyond that).

-=Cliff>

John C. Bland II - [03/06/08 02:14 AM ]
Confirmed: Vista 64 bit, Final bits, AIR 1.0

I don't have to uncheck the "copy non-embedded" checkbox though. It happens by default for me.

Jereme - [03/13/08 02:05 PM ]
Confirmed: Windows XP SP2 32 bit, Flex Builder 3 build 3.0.190133 beta 3) plugin for Eclipse.

I can't get icons published in my AIR application at all. Doesn't matter if "Copy non-embedded files..." option is checked or not.

Dinu Bogdan - [03/16/08 04:52 AM ]
I've had the same problem and solve it by copying the icons in the root folder of the project (no "copy non-embedded files" had to be checked). The -app.xml contains directly the names of icons (without any path). Hope this helps.

Mac Martine - [05/16/08 06:31 PM ]
I can't repro this at all. Can you provide a project for me to try it with? Thanks

Raymond Lee - [06/15/08 11:39 AM ]
Basically, it doesn't include any non-embedded files even I check the "Copy non-embedded files". This leads to the error "Error creating AIR file: 303: ERROR,"...

I am using Mac OSX 10.5.3 and Flex Builder 3.0.194161.

Denis Maslov - [06/16/08 03:30 AM ]
I have got this error message when folder "icon" was in the same level as "src". Just moved "icon" within "src" and probled was solved.

Raymond Lee - [06/18/08 08:19 AM ]
A workaround that works for me.

1. Move all the icons inside the src/ folder
2. Ensure the "Copy non-embedded files to output folder" option is checked.
3. If the non-embedded files are displayed on the list, click "Cancel" button.
4. A "bin-release" folder should be created, just copy non-embedded files across to that folder.
5. Do the export again, the non-embedded files should appear in the list


Hans-Peter Benz - [07/09/08 02:10 AM ]
I have this issue and no way to compile with icons, no workaround^. FlexBuilder 3.02, air 1.1. Vista 64 ultimate. Itried out icon folder, icons in assets, icons in src without folder -> no result finally my projects hangs as customer wants icons to be displayed.

Philip Bondarev - [09/23/08 03:21 AM ]
Hans-Peter Benz. There are two ways for solving your problem:
1. The Raymond Lee method should helps you solve this ussue, it's universal no matter where are located icon files. Error occurs because of flex builder don't copy icon files to bin-release directory, so compiler don't see them.
2. The second way is to build using ant or command line. In this way you can copy all assets manually to build directory.

Mac Martine - [10/30/08 02:02 PM ]
reproduced in 3.0.1 and Gumbo

Heidi Williams - [10/30/08 06:53 PM ]
IRB opened to George for post MAX.

Mac Martine - [10/30/08 06:54 PM ]
Here's a 16x16 gif I used, then just referenced this in for each of the icon nodes in the app.xml

Bastian K. - [10/31/08 03:22 PM ]
I had the same error, but it did not affect all icon sizes... Step by step I tried to leave out one or more icon sizes and finally it worked...

Now it's only one icon size that produces this error


Perhaps that information helps someone?

Larry McLister - [01/05/09 03:43 PM ]
bulk change from I9 to I10

Charles Galpin - [01/12/09 11:16 AM ]
Bastian, what image sizes worked?

thanks

Bastian K. - [01/12/09 12:22 PM ]
it's the 32x32 image that doesn't work...

Tom Chiverton - [01/16/09 07:02 AM ]
This is still present in the most recent Linux releases too.
Can we bump it up the 'serious' scale a bit, as the workarounds for this very common work flow action are all fairly painful. I see some other bugs that have been escalated to IRB recently, for instance.

Heidi Williams - [01/28/09 05:44 PM ]
Moved to I11

Tom Chiverton - [02/03/09 12:49 PM ]
This occurs in Builder on Windows still too !

Tom Chiverton - [02/04/09 09:47 AM ]
A work around that saves having to open/close the export wizard is to wait till the list of files come up, then use a shell window (etc.) to copy the icons i.e.
# cp -r ../bin-debug/icons ../bin-release/
then press 'back' in the export wizard and then 'next again'.

Heidi Williams - [02/16/09 03:13 PM ]
Moved to Gumbo Release (post i13).

Debarshi Roy - [02/23/09 09:18 AM ]
I think I have found the solution.
Comment out the remaining icon options that you are not using, this has solved my problem.

eg.
<!-- The icon the system uses for the application. For at least one resolution,
specify the path to a PNG file included in the AIR package. Optional. -->
<icon>
<!--<image16x16></image16x16>-->
<image32x32>/ico32x32.PNG</image32x32>
<!--<image48x48></image48x48>
<image128x128></image128x128>-->
</icon>

Tom Chiverton - [02/24/09 08:44 AM ]
@Debarshi Roy
I am using all four image sizes in the <icon> element, there aren't any unused ones.

Chris Curtis - [02/24/09 02:13 PM ]
I have been getting this problem as well, and have noticed why (at least in my case) this is occurring. If I embed one of the icons that I have defined in the app config xml in another location in my app, it no longer considers it a "non-embedded" file, and will not copy it to the output directory.

My 2 Workarounds (without manually copying them to the output directory):
1) Make two sets of icons (one for system icons, the other for use within the application for embedding)
2) If you want to use the exact same icon within the application, don't embed it (just reference it directly), and it will still be copied to the output directory

Anyway, this may explain why some of you have problems with only certain sizes of your icons. In my case, I used the 32px icon as the logo on the top left of my application, and that is the one that errored during compile. Hopefully that helps...

(A fix for flex builder would be to check for the icons specified in the xml and always add them to the "non-embedded" files list)

Cheers

Heidi Williams - [03/17/09 03:55 PM ]
Reassigned to Tom for load balancing.

David Jansen - [03/29/09 05:55 AM ]
Flex Builder 3.0.2.214193, Gumbo SDK 4.0.0.5537
I have th same problem and none of the workarounds solve it.

<icon>
<image16x16>images/PP16.png</image16x16>
<image32x32>images/PP32.png</image32x32>
<image48x48>images/PP48.png</image48x48>
<image128x128>images/PP128.png</image128x128>
</icon>

What really makes me nervous is, that a much older, unusable version of the same project does include the icon files in the "Export Release Build" > "AIR File Contents" dialog.
Projects use the same compiler settings and do not embed icon files.
I spent too much time on this issue already and I cannot see what causes the newest project version to not include the files.

When can we expect a solution?

Good luck

Thomas Pickett - [04/20/09 03:08 PM ]
I had this and what my problem was that i had a graphic name misspelled in the -app.xml...

<!-- The icon to display for the file type. Optional. -->
<!-- <icon>
<image16x16>/icon_016.png</image16x16>
<image32x32>/icon_032.png</image32x32>
<image48x48>/icon_048.png</image48x48>
<image128x128>/icon_128.png</image128x128>
</icon> -->


once i fixed the misspelling, it was fine.

Tom Chiverton - [04/21/09 06:13 AM ]
Misspelling doesn't appear to be the case here:

#grep image Desktop-app.xml |grep Red
                <image16x16>icons/hwNormal/RedJQ16.png</image16x16>
                <image32x32>icons/hwNormal/RedJQ32.png</image32x32>
                <image48x48>icons/hwNormal/RedJQ48.png</image48x48>
                <image128x128>icons/hwNormal/RedJQ128.png</image128x128>

#grep image Desktop-app.xml |grep Red|cut -d\> -f2|cut -d \< -f1 |xargs ls -lah
-rw-r--r-- 1 chivertont users 12K 2009-02-03 16:14 icons/hwNormal/RedJQ128.png
-rw-r--r-- 1 chivertont users 902 2009-02-03 16:14 icons/hwNormal/RedJQ16.png
-rw-r--r-- 1 chivertont users 2.3K 2009-02-03 16:14 icons/hwNormal/RedJQ32.png
-rw-r--r-- 1 chivertont users 3.7K 2009-02-03 16:14 icons/hwNormal/RedJQ48.png

Mikko Hynninen - [05/15/09 12:53 AM ]
Me too. I have the same problem and none of the workarounds above solve it... :(

Denis Carabadjac - [06/04/09 04:13 PM ]
Be aware that icon files should NOT be configured in the section below. It is for another purposes.

WRONG SECTION:
<!-- Listing of file types for which the application can register. Optional. -->
<!-- <fileTypes> -->

<!-- Defines one file type. Optional. -->
<!-- <fileType> -->

<!-- The name that the system displays for the registered file type. Required. -->
<!-- <name></name> -->

<!-- The extension to register. Required. -->
<!-- <extension></extension> -->

<!-- The description of the file type. Optional. -->
<!-- <description></description> -->

<!-- The MIME content type. -->
<!-- <contentType></contentType> -->

<!-- The icon to display for the file type. Optional. -->
<!-- <icon>
<image16x16></image16x16>
<image32x32></image32x32>
<image48x48></image48x48>
<image128x128></image128x128>
</icon> -->

<!-- </fileType> -->
<!-- </fileTypes> -->

CORRECT SECTION:
<!-- The icon the system uses for the application. For at least one resolution,
specify the path to a PNG file included in the AIR package. Optional. -->
<icon>
<image16x16>icons/energynow_16x16.png</image16x16>
<image32x32>icons/energynow_32x32.png</image32x32>
<image48x48>icons/energynow_48x48.png</image48x48>
<image128x128>icons/energynow_128x128.png</image128x128>
</icon>