Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the meaning of the log from tag:"szipinf" and text:"Initializing inflate state" from Logcat

I am a new programmer for Android, so please excuse my knowledge and also my English because it is not my first language. So I am having a log with the tag:"szipinf" and text:"Initializing inflate state" and I don`t know what it means.... I also seen that it appears only when I test the game on my phone, on the emulator it doesn't show up. I would really appreciate if someone could tell me what it means.

like image 935
Chisalita Stefan Avatar asked Jan 26 '12 17:01

Chisalita Stefan


People also ask

How do I read Logcat logs?

View your app logsThe Logcat window shows the log messages for the selected app, as selected from the dropdown lists at the top of the window, as shown in figure 1. By default, logcat displays just the log messages for your app running on the device. To change this default, see how to filter logcat messages.

What is TAG log?

A personal time logging and analysis tool written in Tcl/Tk. Taglog provides an electronic workbook, combining logging of time to projects with keeping a detailed diary of what you actually do.

Where are Logcat logs stored?

The Android logging system provides a mechanism for collecting and viewing system debug output, which then can be viewed and filtered by the logcat command. ADB will start collecting logs and start writing them to a text file. Navigate to c:/adb/on your file explorer. The file "txt" will now contain the logs.


1 Answers

Let's search this message through the source code to find who prints the log. StreamingZipInflater.cpp:

/*
 * Streaming access to compressed data held in an mmapped region of memory
 */
StreamingZipInflater::StreamingZipInflater(FileMap* dataMap, size_t uncompSize) {
    ...
    initInflateState();
}

void StreamingZipInflater::initInflateState() {
    LOGV("Initializing inflate state");
    ...
}

The next question we'd like to ask is where and how it's used? In the _CompressedAsset which is a subclass of Asset for dealing with compressed files:

/*
 * Instances of this class provide read-only operations on a byte stream.
 *
 * Access may be optimized for streaming, random, or whole buffer modes.  All
 * operations are supported regardless of how the file was opened, but some
 * things will be less efficient.
 *
 * "Asset" is the base class for all types of assets.  The classes below
 * provide most of the implementation.  The AssetManager uses one of the
 * static "create" functions defined here to create a new instance.
 */

More precisely:

static Asset* createFromCompressedFile(const char* fileName, AccessMode mode);

You can find usages of this class in renderscript, BitmapFactory and other places.

like image 165
Andrey Ermakov Avatar answered Sep 21 '22 10:09

Andrey Ermakov