Home > Error Reading > Error Reading Asset Data

Error Reading Asset Data

Maybe the Android ResourceManager will like these files better than the AssetManager? These errors relate to the creation …… ← Previous Post Next Post → If you enjoyed this article please consider sharing it! Some of these files are read without any problems, some others make the app crash with the error: "Error reading asset data. Mono for Android Search everywhere only in this topic Advanced Search Binary fiile in Asset folder Classic List Threaded ♦ ♦ Locked 19 messages johnHolmes Reply | Threaded Open this post my review here

a : b; }using namespace android;/* * Streaming access to compressed asset data in an open fd */StreamingZipInflater::StreamingZipInflater(int fd, off64_t compDataStart, size_t uncompSize, size_t compSize) { mFd = fd; mDataMap = Some of these files are read without any problems, some others make the app crash with the error: "Error reading asset data. Assets are stored in the `.apk`, so you just need to bundle a .zip parser in your app (e.g. Thanks for the help!

saetechnologies.com - Colorway Wordpress Theme by InkThemes.com Check out Digital Ocean (more details in this thread) TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Asset Manager has an issue with my file(Android) « previous next » Pages: [1] Author Topic: Asset Manager has I don't think so; afaik AssetsManager just reads from the .apk as well. - Jon _______________________________________________ Monodroid mailing list [hidden email] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid « Return to Mono for Android | There are two (2) ways to fix Error Reading Asset Data Error: Advanced Computer User Solution (manual update): 1) Start your computer and log on as an administrator. 2) Click

I put the "menu_levels_640_960.raw" file into "assets" directory and try to read it byte-by-byte or as a block with a method below (using different acces modes too): --------    public byte[] To be sure you have to split the resource file into small files, that's it. Sounds simple, right? It is almost as if Assets.Open() is looking at the contents of the binary file and deciding it will not load it.

Comment 8 Jonathan Pryor 2012-11-13 10:20:29 UTC It's probably an upstream bug, but to verify that we'd have to write a Java app... On Fri, Apr 26, 2013 at 5:19 PM, Francesco Colombo <[hidden email]> wrote: Ok Thnaks!On Fri, Apr 26, 2013 at 4:54 PM, Jonathan Pryor <[hidden email]> wrote: On Apr 26, 2013, The issue is that eclipse does not let you add flags to this command from within the ADT plugin. Feb 25, 2013 Project Member #8 [email protected] Also, do not read files a single byte at a time.

I'll do that and add the .xnb extension to the "don't compress" list. I did the latter. It fails when I try to read the last chunk.any idea or suggestion? _______________________________________________ Monodroid mailing list [hidden email] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid -- http://www.opgenorth.net _______________________________________________ Monodroid mailing list [hidden email] UNSUBSCRIBE Output from slightly modified code to print full stack trace: Forwarding debugger port 8893 Forwarding console port 8894 Detecting existing processLoaded assembly: /data/data/AndroidReadFileException.AndroidReadFileException/files/.__override__/AndroidReadFileException.dll Loaded assembly: Mono.Android.dll [External] Loaded assembly: System.Core.dll [External]

Free forum by Nabble Edit this page HomeSitemap Services Welcome Home » Software » Error Reading Asset Data Error Reading Asset Data Posted on admin in Software on March 2, It seems that the low level api fails to read certain binary files.  I tried also to read the file in chunks of 1024 byte. I load many textures (about 100Mo when uncompressed). Make a "Ceeeeeeee" program How to respond to your boss's email about a coworker's accusation?

Join them; it only takes a minute: Sign up Asset Manager has issues with my file(Android) up vote 0 down vote favorite I have a file called Gate.IC inside my assets this page Comment 6 Jared Reed 2012-11-02 15:11:26 UTC Wow, that is easy. :) Thanks for all the help. SDA is developed and maintained by the Computer-assisted Survey …… Hybrid ARQ is a combination of ARQ and forward error correction. more hot questions question feed lang-java about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation

Logged PompiPompi Level 10 Re: Asset Manager has an issue with my file(Android) « Reply #2 on: October 27, 2012, 02:49:32 am » Well I found out the issue, but I Use a large byte buffer. you can't fix it from Java either, it's an OS bug, requiring an OS update to actually "fix").  - Jon _______________________________________________ Monodroid mailing list [hidden email] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid _______________________________________________ Monodroid get redirected here I'm trying to read some binary files, which are ~2mb, from the Asset folder.

Using default runtime: v2.0.50727 GREF GC Threshold: 46800 Error reading asset data Unable to access asset data: -1 Java.IO.IOException: Exception of type 'Java.IO.IOException' was thrown. On Wed, Apr 24, 2013 at 11:02 AM, Francesco Colombo <[hidden email]> wrote: Hi,I'm having a strange issue in android 4.0 wiht Sam G2. This website should be used for informational purposes only.

Click here follow the steps to fix Error Reading Asset Data and related errors.

Anyway, thanks for the help! http://pompidev.net/2012/10/27/unable-to-access-asset-data-1-and-compressed-assetsandroid/ share|improve this answer answered Oct 27 '12 at 17:06 user1097185 4932823 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Some of these files are read without any problems, some others make the app crash with the error: "Error reading asset data. At this point * either we've satisfied the request, or we've exhausted the available * output data in mOutBuf. * * 2.

Sign in android / platform / frameworks / native / 11862d6 / . / libs / utils / StreamingZipInflater.cppblob: 8512170ae900dba79d46c8a14d26b8b3ef48e8a2 [file] [log] [blame]/* * Copyright (C) 2010 The Android Open Source In some cases the error may have more parameters in Error Reading Asset Data format .This additional hexadecimal code are the address of the memory locations where the instruction(s) was loaded Fired because your skills are too far above your coworkers What are 6 colors which are also well-distinguishable in grayscale? useful reference I didn't knew but, Android when installs applications, do not uncompress the apk file.

Error Reading Asset Data Error Codes are caused in one way or another by misconfigured system files in your windows operating system. It fails when I try to read the last chunk.any idea or suggestion? _______________________________________________ Monodroid mailing list [hidden email] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid -- http://www.opgenorth.net _______________________________________________ Monodroid mailing list [hidden email] UNSUBSCRIBE What will you bring for Thanksgiving? It seems that the low level api fails to read certain binary files.  I tried also to read the file in chunks of 1024 byte.

I have attached a project that reproduces the issue. if (mInflateState.avail_in == 0) { int err = readNextChunk(); if (err < 0) { ALOGE("Unable to access asset data: %d", err); if (!mStreamNeedsInit) { ::inflateEnd(&mInflateState); initInflateState(); } return -1; } } if the request is for more data than exists, bail. * a. You get the compression benefits, plus the android tools leave it alone.

Joined: May 7, 2011 … Asset data was 452KB. 3. Some works fine but one crash. Going further with this experiment!On Sun, Apr 28, 2013 at 6:32 PM, Francesco Colombo <[hidden email]> wrote: It seems that trying to read the apk itself from the app is not They are many and too many.  On Sun, Apr 28, 2013 at 4:57 PM, Jonathan Pryor <[hidden email]> wrote: On Apr 28, 2013, at 6:45 AM, Francesco Colombo <[hidden email]> wrote:

You can work around it in Xamarin.Android (by not compressing, or using another mechanism entirely such as EmbeddedResources), but you can't _fix_ it, anymore than you can fix it in Java But I'm facing the issue on Android 4.0. This is really strange to me. Some of these files are read without any problems, some others make the app crash with the error: "Error reading asset data. An incomplete installation, an incomplete uninstall, improper deletion of applications or hardware.

What causes Error Reading Asset Data error? This happens more frequently when there are a lot of similar bytes in a row in the asset file, but not necessary. Maybe the Android ResourceManager will like these files better than the AssetManager? It fails when I try to read the last chunk.any idea or suggestion? _______________________________________________ Monodroid mailing list [hidden email] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid -- http://www.opgenorth.net _______________________________________________ Monodroid mailing list [hidden email] UNSUBSCRIBE