読者です 読者をやめる 読者になる 読者になる

のねのBlog

パソコンやソフト開発で起きた問題など書きます。よろしくお願いします。

dumpsys meminfo

>adb shell dumpsys meminfo
Applications Memory Usage (in Kilobytes):
Uptime: 1307381926 Realtime: 1307381926

Total PSS by process:
    288,808K: system (pid 716)
    121,257K: com.android.systemui (pid 895 / activities)
     98,846K: com.estrongs.android.pop (pid 31687)
     94,891K: logd (pid 326)
     85,529K: com.google.android.gms (pid 11126)
     75,822K: com.android.launcher3 (pid 30699 / activities)
     59,365K: com.google.android.gms.persistent (pid 11064)
     46,825K: com.google.android.googlequicksearchbox:search (pid 8986)
     40,395K: com.google.android.apps.maps (pid 14504)
     37,940K: com.android.settings (pid 9282 / activities)
     33,054K: com.google.android.apps.plus (pid 14147)
     29,985K: jp.co.lim.android.eval (pid 32165 / activities)
     28,062K: com.android.chrome (pid 14607)
     27,614K: surfaceflinger (pid 377)
     25,430K: com.android.nfc (pid 1358)
     23,755K: com.android.inputmethod.latin (pid 11180)
     21,809K: com.google.android.music:main (pid 22133)
     16,345K: com.google.android.apps.photos (pid 14582)
     16,261K: com.android.phone (pid 1133)
     15,434K: com.android.vending (pid 30438)
     14,019K: com.google.android.gms.feedback (pid 14533)
     12,921K: .esfm (pid 31928)
     11,724K: mm-qcamera-daemon (pid 470)
     10,584K: com.google.android.googlequicksearchbox:interactor (pid 4962)
     10,088K: android.process.acore (pid 14443)
      8,834K: com.google.process.gapps (pid 1444)
      8,566K: com.google.android.ext.services (pid 1266)
      6,803K: zygote (pid 458)
      5,569K: android.process.media (pid 14646)
      5,566K: zygote64 (pid 457)
      5,544K: com.estrongs.android.pop:ka (pid 2038)
      5,338K: com.google.android.configupdater (pid 14339)
      4,755K: audioserver (pid 459)
      3,488K: rild (pid 469)
      3,323K: media.codec (pid 464)
      3,303K: mediadrmserver (pid 465)
      2,381K: mediaserver (pid 467)
      2,101K: media.extractor (pid 466)
      1,612K: vold (pid 346)
      1,593K: netd (pid 468)
      1,545K: sdcard (pid 900)
      1,542K: cameraserver (pid 460)
      1,513K: drmserver (pid 461)
      1,277K: wpa_supplicant (pid 1117)
      1,234K: dumpsys (pid 14674)
      1,099K: /init (pid 1)
        880K: keystore (pid 463)
        871K: adbd (pid 417)
        820K: installd (pid 462)
        767K: gatekeeperd (pid 472)
        731K: lmkd (pid 375)
        718K: ueventd (pid 307)
        629K: servicemanager (pid 376)
        563K: qseecomd (pid 336)
        517K: healthd (pid 374)
        488K: perfprofd (pid 473)
        462K: sh (pid 413)
        393K: debuggerd64 (pid 345)
        365K: qseecomd (pid 334)
        352K: libestool2.so (pid 31842)
        319K: debuggerd64:signaller (pid 348)
        316K: debuggerd (pid 344)
        253K: debuggerd:signaller (pid 350)

Total PSS by OOM adjustment:
    186,808K: Native
         94,891K: logd (pid 326)
         27,614K: surfaceflinger (pid 377)
         11,724K: mm-qcamera-daemon (pid 470)
          6,803K: zygote (pid 458)
          5,566K: zygote64 (pid 457)
          4,755K: audioserver (pid 459)
          3,488K: rild (pid 469)
          3,323K: media.codec (pid 464)
          3,303K: mediadrmserver (pid 465)
          2,381K: mediaserver (pid 467)
          2,101K: media.extractor (pid 466)
          1,612K: vold (pid 346)
          1,593K: netd (pid 468)
          1,545K: sdcard (pid 900)
          1,542K: cameraserver (pid 460)
          1,513K: drmserver (pid 461)
          1,277K: wpa_supplicant (pid 1117)
          1,234K: dumpsys (pid 14674)
          1,099K: /init (pid 1)
            880K: keystore (pid 463)
            871K: adbd (pid 417)
            820K: installd (pid 462)
            767K: gatekeeperd (pid 472)
            731K: lmkd (pid 375)
            718K: ueventd (pid 307)
            629K: servicemanager (pid 376)
            563K: qseecomd (pid 336)
            517K: healthd (pid 374)
            488K: perfprofd (pid 473)
            462K: sh (pid 413)
            393K: debuggerd64 (pid 345)
            365K: qseecomd (pid 334)
            352K: libestool2.so (pid 31842)
            319K: debuggerd64:signaller (pid 348)
            316K: debuggerd (pid 344)
            253K: debuggerd:signaller (pid 350)
    288,808K: System
        288,808K: system (pid 716)
    162,948K: Persistent
        121,257K: com.android.systemui (pid 895 / activities)
         25,430K: com.android.nfc (pid 1358)
         16,261K: com.android.phone (pid 1133)
     75,822K: Foreground
         75,822K: com.android.launcher3 (pid 30699 / activities)
     78,515K: Visible
         59,365K: com.google.android.gms.persistent (pid 11064)
         10,584K: com.google.android.googlequicksearchbox:interactor (pid 4962)
          8,566K: com.google.android.ext.services (pid 1266)
     23,755K: Perceptible
         23,755K: com.android.inputmethod.latin (pid 11180)
     43,509K: Previous
         37,940K: com.android.settings (pid 9282 / activities)
          5,569K: android.process.media (pid 14646)
    240,083K: B Services
         98,846K: com.estrongs.android.pop (pid 31687)
         85,529K: com.google.android.gms (pid 11126)
         21,809K: com.google.android.music:main (pid 22133)
         15,434K: com.android.vending (pid 30438)
         12,921K: .esfm (pid 31928)
          5,544K: com.estrongs.android.pop:ka (pid 2038)
    232,945K: Cached
         46,825K: com.google.android.googlequicksearchbox:search (pid 8986)
         40,395K: com.google.android.apps.maps (pid 14504)
         33,054K: com.google.android.apps.plus (pid 14147)
         29,985K: jp.co.lim.android.eval (pid 32165 / activities)
         28,062K: com.android.chrome (pid 14607)
         16,345K: com.google.android.apps.photos (pid 14582)
         14,019K: com.google.android.gms.feedback (pid 14533)
         10,088K: android.process.acore (pid 14443)
          8,834K: com.google.process.gapps (pid 1444)
          5,338K: com.google.android.configupdater (pid 14339)

Total PSS by category:
    262,457K: Native
    186,938K: Dalvik
    100,017K: .dex mmap
     89,435K: Unknown
     86,400K: EGL mtrack
     71,210K: .oat mmap
     53,131K: .art mmap
     31,692K: .so mmap
     31,569K: Dalvik Other
     23,095K: .apk mmap
     19,472K: Gfx dev
     11,848K: Stack
      6,672K: Ashmem
      4,955K: Other mmap
        476K: Other dev
        192K: .ttf mmap
          4K: Cursor
          4K: .jar mmap
          0K: GL mtrack
          0K: Other mtrack

Total RAM: 1,857,648K (status normal)
 Free RAM:   610,789K (  232,945K cached pss +   341,416K cached kernel +    36,428K free)
 Used RAM: 1,294,740K (1,100,248K used pss +   194,492K kernel)
 Lost RAM:   177,973K
     ZRAM:    79,416K physical used for   362,504K in swap (  520,908K total swap)
   Tuning: 192 (large 512), oom   322,560K, restore limit   107,520K (high-end-gfx)

cjk_ttx.bat

start ttx -y 0 -o NotoSansCJK-Regular#0_JP_Regular.ttx NotoSansCJK-Regular.ttc
start ttx -y 1 -o NotoSansCJK-Regular#1_KR_Regular.ttx NotoSansCJK-Regular.ttc
start ttx -y 2 -o NotoSansCJK-Regular#2_SC_Regular.ttx NotoSansCJK-Regular.ttc
start ttx -y 3 -o NotoSansCJK-Regular#3_TC_Regular.ttx NotoSansCJK-Regular.ttc
start ttx -y 4 -o NotoSansCJK-Regular#4_JP_MONO.ttx NotoSansCJK-Regular.ttc
start ttx -y 5 -o NotoSansCJK-Regular#5_KR_MONO.ttx NotoSansCJK-Regular.ttc
start ttx -y 6 -o NotoSansCJK-Regular#6_SC_MONO.ttx NotoSansCJK-Regular.ttc
start ttx -y 7 -o NotoSansCJK-Regular#7_TC_MONO.ttx NotoSansCJK-Regular.ttc

ttx ttcファイル Error: specify a font number between 0 and 7 (inclusive)

>ttx 0 NotoSansCJK-Regular.ttc
Dumping "NotoSansCJK-Regular.ttc" to "NotoSansCJK-Regular.ttx"...
Error: specify a font number between 0 and 7 (inclusive)
>ttx -y 0 NotoSansCJK-Regular.ttc
Dumping "NotoSansCJK-Regular.ttc" to "NotoSansCJK-Regular.ttx"...
Dumping 'GlyphOrder' table...
Dumping 'head' table...
Dumping 'hhea' table...
Dumping 'maxp' table...
Dumping 'OS/2' table...
Dumping 'name' table...
Dumping 'cmap' table...
Dumping 'post' table...
Dumping 'CFF ' table...
Dumping 'BASE' table...
Dumping 'GPOS' table...
Dumping 'GSUB' table...
Dumping 'VORG' table...
Dumping 'hmtx' table...
Dumping 'vhea' table...
Dumping 'vmtx' table...

DeviceSetupManager eventID 112 デバイスの接続音、切断音が頻繁にする。

デバイスの接続音、切断音が頻繁にする。

デバイスが接続される音が頻繁にする。たまに切断の音がする。

eventID=112

ログの名前:       Microsoft-Windows-DeviceSetupManager/Admin
ソース:           Microsoft-Windows-DeviceSetupManager
イベント ID:      112
説明:
デバイス 'USB3.0 Card Reader' ({20b9cde5-7039-e011-a935-0002a5d5c51b}) に
サービスが提供され、4 個のタスクを処理し、
0 個のプロパティを書き込み、アクティブな作業時間は 3 ミリ秒でした。

Device Managerを表示して、問題のデバイスを探す。
表示(V)>"デバイス(接続別)(V)"をクリックする。
表示(V)>"非表示のデバイスの表示(W)"をクリックする。

Generic SD Card Readerがおかしかったので、このデバイスのドライバを削除した。

Font collection must have at least one valid typeface

Cross Reference: /frameworks/minikin/libs/minikin/FontCollection.cpp

     78 FontCollection::FontCollection(const vector<FontFamily*>& typefaces) :
     79     mMaxChar(0) {
     80     AutoMutex _l(gMinikinLock);
     81     mId = sNextId++;
     82     vector<uint32_t> lastChar;
     83     size_t nTypefaces = typefaces.size();
     84 #ifdef VERBOSE_DEBUG
     85     ALOGD("nTypefaces = %zd\n", nTypefaces);
     86 #endif
     87     const FontStyle defaultStyle;
     88     for (size_t i = 0; i < nTypefaces; i++) {
     89         FontFamily* family = typefaces[i];
     90         MinikinFont* typeface = family->getClosestMatch(defaultStyle).font;
     91         if (typeface == NULL) {
     92             continue;
     93         }
     94         family->RefLocked();
     95         const SparseBitSet* coverage = family->getCoverage();
     96         if (coverage == nullptr) {
     97             family->UnrefLocked();
     98             continue;
     99         }
    100         mFamilies.push_back(family);  // emplace_back would be better
    101         if (family->hasVSTable()) {
    102             mVSFamilyVec.push_back(family);
    103         }
    104         mMaxChar = max(mMaxChar, coverage->length());
    105         lastChar.push_back(coverage->nextSetBit(0));
    106     }
    107     nTypefaces = mFamilies.size();
    108     LOG_ALWAYS_FATAL_IF(nTypefaces == 0,
    109         "Font collection must have at least one valid typeface");
    110     size_t nPages = (mMaxChar + kPageMask) >> kLogCharsPerPage;
    111     size_t offset = 0;
    112     // TODO: Use variation selector map for mRanges construction.
    113     // A font can have a glyph for a base code point and variation selector pair but no glyph for
    114     // the base code point without variation selector. The family won't be listed in the range in
    115     // this case.
    116     for (size_t i = 0; i < nPages; i++) {
    117         Range dummy;
    118         mRanges.push_back(dummy);
    119         Range* range = &mRanges.back();
    120 #ifdef VERBOSE_DEBUG
    121         ALOGD("i=%zd: range start = %zd\n", i, offset);
    122 #endif
    123         range->start = offset;
    124         for (size_t j = 0; j < nTypefaces; j++) {
    125             if (lastChar[j] < (i + 1) << kLogCharsPerPage) {
    126                 FontFamily* family = mFamilies[j];
    127                 mFamilyVec.push_back(family);
    128                 offset++;
    129                 uint32_t nextChar = family->getCoverage()->nextSetBit((i + 1) << kLogCharsPerPage);
    130 #ifdef VERBOSE_DEBUG
    131                 ALOGD("nextChar = %d (j = %zd)\n", nextChar, j);
    132 #endif
    133                 lastChar[j] = nextChar;
    134             }
    135         }
    136         range->end = offset;
    137     }
    138 }

Cross Reference: /system/core/include/log/log.h

   390 /*
    391  * Log a fatal error.  If the given condition fails, this stops program
    392  * execution like a normal assertion, but also generating the given message.
    393  * It is NOT stripped from release builds.  Note that the condition test
    394  * is -inverted- from the normal assert() semantics.
    395  */
    396 #ifndef LOG_ALWAYS_FATAL_IF
    397 #define LOG_ALWAYS_FATAL_IF(cond, ...) \
    398     ( (__predict_false(cond)) \
    399     ? ((void)android_printAssert(#cond, LOG_TAG, ## __VA_ARGS__)) \
    400     : (void)0 )
    401 #endif
    402 
    403 #ifndef LOG_ALWAYS_FATAL
    404 #define LOG_ALWAYS_FATAL(...) \
    405     ( ((void)android_printAssert(NULL, LOG_TAG, ## __VA_ARGS__)) )
    406 #endif