02-06-2012 06:13 PM
Hi all,
I have a strange failure while creating the package, or even launching Apk2barVerifier.
I have this Java callstack :
Click the "Details" button to see details
Packaging failed:1
C:\MyApps\Android\Eclipse\eclipse_3.6.1\eclipse>se
C:\MyApps\Android\Eclipse\eclipse_3.6.1\eclipse>se
C:\MyApps\Android\Eclipse\eclipse_3.6.1\eclipse>ja
[BarGenerator]
[BarGenerator] Start packaging LetterGame.apk
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferByte.<init>(Unknown Source)
at java.awt.image.Raster.createPackedRaster(Unknown Source)
at java.awt.image.BufferedImage.<init>(Unknown Source)
at com.sun.imageio.plugins.wbmp.WBMPImageReader.read(
at javax.imageio.ImageIO.read(Unknown Source)
at javax.imageio.ImageIO.read(Unknown Source)
at net.rim.tools.apk2bar.packager.AndroidManifestPars
at net.rim.tools.apk2bar.packager.AndroidManifestPars
at net.rim.tools.apk2bar.packager.AndroidManifestPars
at net.rim.tools.apk2bar.packager.BarGenerator.genera
at net.rim.tools.apk2bar.packager.BarGenerator.genera
at net.rim.tools.apk2bar.Apk2bar.apk2BarPackage(Apk2b
at net.rim.tools.apk2bar.Apk2bar.main(Apk2bar.java:23
I also tried the online tool, but I get this (not very useful ) error :
"We're sorry, an error occurred while processing your request. The information has been registered and we're working on getting this fixed as soon as we can."
Does someone else have this kind of issue ?
What can I do about it ?
Here are some details :
I try to port my game :
It's using my own Android library, and several middleware ( Admob and Scoreloop ).
I tried to convert the icon into a 86x86 png by myself, to avoid the issue, but it didn't change anything..
Thanks for any advice,
Emmanuel / Alocaly
02-06-2012 06:47 PM
Arghhh...
I finally found the culprit :
I have some raw data files ( compressed version of english dictionary for my game ).
And the bar packager tries to interpret them as icons !!!
By setting 4 Go for the java heap, the error is now more clear :
validateIcons: assets/lettersf.dict: Dimensions (width=1970949 height=2097024) are too large...
How can I prevent that ?
Thanks,
Emmmanuel / Alocaly
02-07-2012 09:15 PM
I investigated more on my issue,
And it's even more strange :
I have 26 dictionary files ( one for each letters ).
And only 4 of them are interpreted as icon by Apk2Bar / apk2BarVerifier.
I tried to change their names, or their extensions, but it didn't change anything.
Could someone from RIM helps me with that ?
Is it possible to get rid of this icon verification ?
I sure can provide a file that create the issue...
Or do we have access to the sources of the apk2barVerifier ?
Thanks for any help,
Emmanuel / Alocaly
02-09-2012 03:31 PM
I finally find a way to create my package :
I tried changing the names of my files, but it didn't changed anything.
So I imaginated the packager was intepreting the start of my files, and some combinaisons were interpreted as an icon.
So I added a specific header to all of my files, changed the reader in my android app, and voilà !
It's now working !!
So :
1) if you experience the same issue, try to add an artificial header to your file
2) Rim : please fix your app2bar verifier so it doesn't incorrectly interpret the start of the files to mark them as "icons".
Emmanuel / Alocaly
02-11-2012 04:11 AM
I'm having the same problem. how can I add an artificial header to my file?
and then, what does the 2 point meen?
2) Rim : please fix your app2bar verifier so it doesn't incorrectly interpret the start of the files to mark them as "icons".
thanks
Nuno
02-22-2012 08:22 AM
Sorry, i was travelling for my job, so couldn't answer more quickly.
To add an artificial header, I just made a small C program that open the file, add 4 characters at the start, and append the rest of the file behind it.
then in my android application, I skip the 4 first characters.
The second point was for RIM (Reearch In motion => blackberry makers ). It would be really better if they could fix this bug on their side !
Emmanuel / Alocaly