Autore Topic: Risolvere Warning ed Errori di solo Avvio  (Letto 751 volte)

Offline Auron

  • Utente junior
  • **
  • Post: 104
  • Respect: +1
    • Mostra profilo
  • Dispositivo Android:
    Motorola Milestone Android 2.2.1
  • Sistema operativo:
    Windows
Risolvere Warning ed Errori di solo Avvio
« il: 12 Novembre 2011, 18:24:28 CET »
0
Salve gente, mi chiedevo se fosse possibile anche solo risolvere tutti gli Errori e Warning che vengono visualizzati dal LogCat di Eclipse solo con l'avvio dell'emulatore. Vi posto un esempio di un Emulatore configurato così:
- Api lv.8
- Built-in WVGA800
- Abstracted LCD Density 240
- Max VM application heap size 24

LogCat:

Codice: [Seleziona]
11-12 17:17:09.662: WARN/Vold(28): No UMS switch available
11-12 17:17:11.833: ERROR/Zygote(32): setreuid() failed. errno: 2
11-12 17:17:13.004: WARN/MediaProfiles(32): could not find media config xml file
11-12 17:17:20.863: ERROR/Zygote(32): setreuid() failed. errno: 17
11-12 17:17:21.113: WARN/Zygote(32): Preloaded drawable resource #0x1080093 (res/drawable-hdpi/sym_def_app_icon.png) that varies with configuration!!
11-12 17:17:21.123: WARN/Zygote(32): Preloaded drawable resource #0x1080002 (res/drawable-hdpi/arrow_down_float.png) that varies with configuration!!
11-12 17:17:21.164: WARN/Zygote(32): Preloaded drawable resource #0x10800b3 (res/drawable/btn_check.xml) that varies with configuration!!
11-12 17:17:21.164: WARN/Zygote(32): Preloaded drawable resource #0x10800b6 (res/drawable-hdpi/btn_check_label_background.9.png) that varies with configuration!!
11-12 17:17:21.164: WARN/Zygote(32): Preloaded drawable resource #0x10800b7 (res/drawable-hdpi/btn_check_off.png) that varies with configuration!!
11-12 17:17:21.173: WARN/Zygote(32): Preloaded drawable resource #0x10800bc (res/drawable-hdpi/btn_check_on.png) that varies with configuration!!
11-12 17:17:21.183: WARN/Zygote(32): Preloaded drawable resource #0x1080004 (res/drawable/btn_default.xml) that varies with configuration!!
11-12 17:17:21.213: WARN/Zygote(32): Preloaded drawable resource #0x1080005 (res/drawable/btn_default_small.xml) that varies with configuration!!
11-12 17:17:21.233: WARN/Zygote(32): Preloaded drawable resource #0x1080006 (res/drawable/btn_dropdown.xml) that varies with configuration!!
11-12 17:17:21.253: WARN/Zygote(32): Preloaded drawable resource #0x1080008 (res/drawable/btn_plus.xml) that varies with configuration!!
11-12 17:17:21.273: WARN/Zygote(32): Preloaded drawable resource #0x1080007 (res/drawable/btn_minus.xml) that varies with configuration!!
11-12 17:17:21.293: WARN/Zygote(32): Preloaded drawable resource #0x1080009 (res/drawable/btn_radio.xml) that varies with configuration!!
11-12 17:17:21.333: WARN/Zygote(32): Preloaded drawable resource #0x108000a (res/drawable/btn_star.xml) that varies with configuration!!
11-12 17:17:21.394: WARN/Zygote(32): Preloaded drawable resource #0x1080131 (res/drawable/btn_toggle.xml) that varies with configuration!!
11-12 17:17:21.403: WARN/Zygote(32): Preloaded drawable resource #0x1080194 (res/drawable-hdpi/ic_emergency.png) that varies with configuration!!
11-12 17:17:21.403: WARN/Zygote(32): Preloaded drawable resource #0x1080012 (res/drawable-hdpi/divider_horizontal_bright.9.png) that varies with configuration!!
11-12 17:17:21.413: WARN/Zygote(32): Preloaded drawable resource #0x1080014 (res/drawable-hdpi/divider_horizontal_dark.9.png) that varies with configuration!!
11-12 17:17:21.433: WARN/Zygote(32): Preloaded drawable resource #0x1080016 (res/drawable/edit_text.xml) that varies with configuration!!
11-12 17:17:21.433: WARN/Zygote(32): Preloaded drawable resource #0x108016d (res/drawable/expander_group.xml) that varies with configuration!!
11-12 17:17:21.453: WARN/Zygote(32): Preloaded drawable resource #0x1080062 (res/drawable/list_selector_background.xml) that varies with configuration!!
11-12 17:17:21.463: WARN/Zygote(32): Preloaded drawable resource #0x1080227 (res/drawable-hdpi/menu_background.9.png) that varies with configuration!!
11-12 17:17:21.463: WARN/Zygote(32): Preloaded drawable resource #0x1080228 (res/drawable-hdpi/menu_background_fill_parent_width.9.png) that varies with configuration!!
11-12 17:17:21.473: WARN/Zygote(32): Preloaded drawable resource #0x1080229 (res/drawable/menu_selector.xml) that varies with configuration!!
11-12 17:17:21.484: WARN/Zygote(32): Preloaded drawable resource #0x1080234 (res/drawable-hdpi/panel_background.9.png) that varies with configuration!!
11-12 17:17:21.484: WARN/Zygote(32): Preloaded drawable resource #0x108023b (res/drawable-hdpi/popup_bottom_bright.9.png) that varies with configuration!!
11-12 17:17:21.493: WARN/Zygote(32): Preloaded drawable resource #0x108023c (res/drawable-hdpi/popup_bottom_dark.9.png) that varies with configuration!!
11-12 17:17:21.493: WARN/Zygote(32): Preloaded drawable resource #0x108023d (res/drawable-hdpi/popup_bottom_medium.9.png) that varies with configuration!!
11-12 17:17:21.493: WARN/Zygote(32): Preloaded drawable resource #0x108023e (res/drawable-hdpi/popup_center_bright.9.png) that varies with configuration!!
11-12 17:17:21.503: WARN/Zygote(32): Preloaded drawable resource #0x108023f (res/drawable-hdpi/popup_center_dark.9.png) that varies with configuration!!
11-12 17:17:21.503: WARN/Zygote(32): Preloaded drawable resource #0x1080242 (res/drawable-hdpi/popup_full_dark.9.png) that varies with configuration!!
11-12 17:17:21.503: WARN/Zygote(32): Preloaded drawable resource #0x1080245 (res/drawable-hdpi/popup_top_bright.9.png) that varies with configuration!!
11-12 17:17:21.513: WARN/Zygote(32): Preloaded drawable resource #0x1080246 (res/drawable-hdpi/popup_top_dark.9.png) that varies with configuration!!
11-12 17:17:21.533: WARN/Zygote(32): Preloaded drawable resource #0x108006d (res/drawable/progress_indeterminate_horizontal.xml) that varies with configuration!!
11-12 17:17:21.533: WARN/Zygote(32): Preloaded drawable resource #0x108024c (res/drawable/progress_small.xml) that varies with configuration!!
11-12 17:17:21.543: WARN/Zygote(32): Preloaded drawable resource #0x108024d (res/drawable/progress_small_titlebar.xml) that varies with configuration!!
11-12 17:17:21.543: WARN/Zygote(32): Preloaded drawable resource #0x1080270 (res/drawable-hdpi/scrollbar_handle_horizontal.9.png) that varies with configuration!!
11-12 17:17:21.553: WARN/Zygote(32): Preloaded drawable resource #0x1080271 (res/drawable-hdpi/scrollbar_handle_vertical.9.png) that varies with configuration!!
11-12 17:17:21.613: WARN/Zygote(32): Preloaded drawable resource #0x1080071 (res/drawable/spinner_dropdown_background.xml) that varies with configuration!!
11-12 17:17:21.623: WARN/Zygote(32): Preloaded drawable resource #0x1080354 (res/drawable-hdpi/title_bar_shadow.9.png) that varies with configuration!!
11-12 17:17:21.633: WARN/Zygote(32): Preloaded drawable resource #0x10801d6 (res/drawable-hdpi/indicator_code_lock_drag_direction_green_up.png) that varies with configuration!!
11-12 17:17:21.633: WARN/Zygote(32): Preloaded drawable resource #0x10801d7 (res/drawable-hdpi/indicator_code_lock_drag_direction_red_up.png) that varies with configuration!!
11-12 17:17:21.644: WARN/Zygote(32): Preloaded drawable resource #0x10801d8 (res/drawable-hdpi/indicator_code_lock_point_area_default.png) that varies with configuration!!
11-12 17:17:21.644: WARN/Zygote(32): Preloaded drawable resource #0x10801d9 (res/drawable-hdpi/indicator_code_lock_point_area_green.png) that varies with configuration!!
11-12 17:17:21.644: WARN/Zygote(32): Preloaded drawable resource #0x10801da (res/drawable-hdpi/indicator_code_lock_point_area_red.png) that varies with configuration!!
11-12 17:17:21.653: WARN/Zygote(32): Preloaded drawable resource #0x10801e8 (res/drawable-hdpi/jog_tab_bar_left_end_confirm_gray.9.png) that varies with configuration!!
11-12 17:17:21.653: WARN/Zygote(32): Preloaded drawable resource #0x10801ec (res/drawable-hdpi/jog_tab_bar_left_end_normal.9.png) that varies with configuration!!
11-12 17:17:21.663: WARN/Zygote(32): Preloaded drawable resource #0x10801ed (res/drawable-hdpi/jog_tab_bar_left_end_pressed.9.png) that varies with configuration!!
11-12 17:17:21.663: WARN/Zygote(32): Preloaded drawable resource #0x10801f1 (res/drawable-hdpi/jog_tab_bar_right_end_confirm_gray.9.png) that varies with configuration!!
11-12 17:17:21.663: WARN/Zygote(32): Preloaded drawable resource #0x10801f5 (res/drawable-hdpi/jog_tab_bar_right_end_normal.9.png) that varies with configuration!!
11-12 17:17:21.673: WARN/Zygote(32): Preloaded drawable resource #0x10801f6 (res/drawable-hdpi/jog_tab_bar_right_end_pressed.9.png) that varies with configuration!!
11-12 17:17:21.673: WARN/Zygote(32): Preloaded drawable resource #0x10801fb (res/drawable-hdpi/jog_tab_left_confirm_gray.png) that varies with configuration!!
11-12 17:17:21.683: WARN/Zygote(32): Preloaded drawable resource #0x1080200 (res/drawable-hdpi/jog_tab_left_normal.png) that varies with configuration!!
11-12 17:17:21.683: WARN/Zygote(32): Preloaded drawable resource #0x1080201 (res/drawable-hdpi/jog_tab_left_pressed.png) that varies with configuration!!
11-12 17:17:21.683: WARN/Zygote(32): Preloaded drawable resource #0x1080203 (res/drawable-hdpi/jog_tab_right_confirm_gray.png) that varies with configuration!!
11-12 17:17:21.693: WARN/Zygote(32): Preloaded drawable resource #0x1080209 (res/drawable-hdpi/jog_tab_right_normal.png) that varies with configuration!!
11-12 17:17:21.693: WARN/Zygote(32): Preloaded drawable resource #0x108020a (res/drawable-hdpi/jog_tab_right_pressed.png) that varies with configuration!!
11-12 17:17:21.693: WARN/Zygote(32): Preloaded drawable resource #0x108020d (res/drawable-hdpi/jog_tab_target_gray.png) that varies with configuration!!
11-12 17:17:22.292: ERROR/BatteryService(59): usbOnlinePath not found
11-12 17:17:22.292: ERROR/BatteryService(59): batteryVoltagePath not found
11-12 17:17:22.292: ERROR/BatteryService(59): batteryTemperaturePath not found
11-12 17:17:22.313: ERROR/SurfaceFlinger(59): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
11-12 17:17:22.823: WARN/UsageStats(59): Usage stats version changed; dropping
11-12 17:17:23.892: WARN/PackageManager(59): Running ENG build: no pre-dexopt!
11-12 17:17:27.762: WARN/PackageParser(59): No actions in intent filter at /data/app/ApiDemos.apk Binary XML file line #1841
11-12 17:17:27.762: WARN/PackageParser(59): No actions in intent filter at /data/app/ApiDemos.apk Binary XML file line #1847
11-12 17:17:27.793: WARN/PackageManager(59): Package com.example.android.apis desires unavailable shared library com.example.will.never.exist; ignoring!
11-12 17:17:27.993: WARN/PackageManager(59): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.mail in package com.android.contacts
11-12 17:17:28.002: WARN/PackageManager(59): Unknown permission android.permission.ADD_SYSTEM_SERVICE in package com.android.phone
11-12 17:17:28.012: WARN/PackageManager(59): Not granting permission android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS to package com.android.browser (protectionLevel=2 flags=0x1be45)
11-12 17:17:28.012: WARN/PackageManager(59): Unknown permission com.google.android.gm.permission.WRITE_GMAIL in package com.android.settings
11-12 17:17:28.012: WARN/PackageManager(59): Unknown permission com.google.android.gm.permission.READ_GMAIL in package com.android.settings
11-12 17:17:28.023: WARN/PackageManager(59): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.settings
11-12 17:17:28.023: WARN/PackageManager(59): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.providers.contacts
11-12 17:17:28.032: WARN/PackageManager(59): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.cp in package com.android.providers.contacts
11-12 17:17:28.044: WARN/PackageManager(59): Unknown permission com.google.android.googleapps.permission.ACCESS_GOOGLE_PASSWORD in package com.android.development
11-12 17:17:28.044: WARN/PackageManager(59): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.development
11-12 17:17:28.044: WARN/PackageManager(59): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.ALL_SERVICES in package com.android.development
11-12 17:17:28.044: WARN/PackageManager(59): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.YouTubeUser in package com.android.development
11-12 17:17:29.103: ERROR/EventHub(59): could not get driver version for /dev/input/mouse0, Not a typewriter
11-12 17:17:29.103: ERROR/EventHub(59): could not get driver version for /dev/input/mice, Not a typewriter
11-12 17:17:29.323: ERROR/System(59): Failure starting core service
11-12 17:17:29.323: ERROR/System(59): java.lang.SecurityException
11-12 17:17:29.323: ERROR/System(59):     at android.os.BinderProxy.transact(Native Method)
11-12 17:17:29.323: ERROR/System(59):     at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
11-12 17:17:29.323: ERROR/System(59):     at android.os.ServiceManager.addService(ServiceManager.java:72)
11-12 17:17:29.323: ERROR/System(59):     at com.android.server.ServerThread.run(SystemServer.java:184)
11-12 17:17:29.873: WARN/MountService(59): Duplicate state transition (removed -> removed)
11-12 17:17:30.283: WARN/AudioPolicyManagerBase(33): setPhoneState() setting same state 0
11-12 17:17:30.313: ERROR/SoundPool(59): error loading /system/media/audio/ui/Effect_Tick.ogg
11-12 17:17:30.313: WARN/AudioService(59): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
11-12 17:17:30.323: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressStandard.ogg
11-12 17:17:30.323: WARN/AudioService(59): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
11-12 17:17:30.333: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressSpacebar.ogg
11-12 17:17:30.333: WARN/AudioService(59): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
11-12 17:17:30.344: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressDelete.ogg
11-12 17:17:30.344: WARN/AudioService(59): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
11-12 17:17:30.353: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressReturn.ogg
11-12 17:17:30.353: WARN/AudioService(59): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
11-12 17:17:30.373: WARN/HeadsetObserver(59): This kernel does not have wired headset support
11-12 17:17:30.393: WARN/DockObserver(59): This kernel does not have dock station support
11-12 17:17:30.713: WARN/DevicePolicyManagerService(59): failed parsing /data/system/device_policies.xml java.io.FileNotFoundException: /data/system/device_policies.xml (No such file or directory)
11-12 17:17:30.913: WARN/StatusBar(59): No icon ID for slot ime
11-12 17:17:32.483: WARN/RecognitionManagerService(59): no available voice recognition services found
11-12 17:17:33.393: ERROR/ThrottleService(59): Could not open GPS configuration file /etc/gps.conf
11-12 17:17:34.333: ERROR/logwrapper(145): executing /system/bin/tc failed: No such file or directory
11-12 17:17:34.444: ERROR/logwrapper(149): executing /system/bin/tc failed: No such file or directory
11-12 17:17:34.493: ERROR/logwrapper(150): executing /system/bin/tc failed: No such file or directory
11-12 17:17:34.753: WARN/GpsLocationProvider(59): Could not open GPS configuration file /etc/gps.conf
11-12 17:17:41.153: WARN/ActivityManager(59): Unable to start service Intent { act=@0 }: not found
11-12 17:17:41.263: WARN/ActivityManager(59): Unable to start service Intent { act=@0 }: not found
11-12 17:17:44.372: WARN/ActivityManager(59): Unable to start service Intent { act=com.android.ussd.IExtendedNetworkService }: not found
11-12 17:17:44.333: WARN/SystemClock(128): Unable to set rtc to 1321118264: Invalid argument
11-12 17:17:53.059: ERROR/HierarchicalStateMachine(59): TetherMaster - unhandledMessage: msg.what=3
11-12 17:17:54.519: WARN/ActivityManager(59): Activity idle timeout for HistoryRecord{450156d0 com.android.launcher/com.android.launcher2.Launcher}
11-12 17:18:08.166: WARN/SystemClock(128): Unable to set rtc to 1321118288: Invalid argument
11-12 17:18:09.176: WARN/RecognitionManagerService(59): no available voice recognition services found
11-12 17:19:04.256: WARN/KeyCharacterMap(282): No keyboard for id 0
11-12 17:19:04.256: WARN/KeyCharacterMap(282): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
È stata trovata una soluzione al tuo problema?Evidenzia il post più utile premendo . È un ottimo modo per ringraziare chi ti ha aiutato ;-)

Offline bradipao

  • Moderatore globale
  • Utente storico
  • *****
  • Post: 4043
  • keep it simple
  • Respect: +567
    • Github
    • Google+
    • bradipao
    • Mostra profilo
  • Dispositivo Android:
    Nexus 5
  • Play Store ID:
    Bradipao
  • Sistema operativo:
    W7
Re:Risolvere Warning ed Errori di solo Avvio
« Risposta #1 il: 12 Novembre 2011, 20:28:03 CET »
0
Ma è per tua curiosità, o ti serve per qualche ragione specifica?
NON rispondo a domande nei messaggi privati
Bradipao @ Play Store

Offline Auron

  • Utente junior
  • **
  • Post: 104
  • Respect: +1
    • Mostra profilo
  • Dispositivo Android:
    Motorola Milestone Android 2.2.1
  • Sistema operativo:
    Windows
Re:Risolvere Warning ed Errori di solo Avvio
« Risposta #2 il: 12 Novembre 2011, 22:35:38 CET »
0
Diciamo che è per entrambi i motivi, poichè ho fatto qualche mini app di prova con diversi tipi di AVD e ho notato che cambiano i messaggi di errore.
Se non erro saltano fuori dei nuovi messaggi di errore soprattutto quando alla creazione di un nuovo AVD vengono magari aggiunte delle proprietà Hardware.

Comunque il LogCat di avvio precedente è di un AVD base (senza HW aggiuntivo).
È stata trovata una soluzione al tuo problema?Evidenzia il post più utile premendo . È un ottimo modo per ringraziare chi ti ha aiutato ;-)

Offline bradipao

  • Moderatore globale
  • Utente storico
  • *****
  • Post: 4043
  • keep it simple
  • Respect: +567
    • Github
    • Google+
    • bradipao
    • Mostra profilo
  • Dispositivo Android:
    Nexus 5
  • Play Store ID:
    Bradipao
  • Sistema operativo:
    W7
Re:Risolvere Warning ed Errori di solo Avvio
« Risposta #3 il: 13 Novembre 2011, 08:42:21 CET »
0
Si ma sono errori che ti impediscono di fare qualcosa?
Perché guardando con alogcat vedo che anche il mio telefono reale ha qualche errore all'avvio.
NON rispondo a domande nei messaggi privati
Bradipao @ Play Store

Offline Auron

  • Utente junior
  • **
  • Post: 104
  • Respect: +1
    • Mostra profilo
  • Dispositivo Android:
    Motorola Milestone Android 2.2.1
  • Sistema operativo:
    Windows
Re:Risolvere Warning ed Errori di solo Avvio
« Risposta #4 il: 13 Novembre 2011, 12:09:49 CET »
0
In questo caso no, ma se aggiungo qualche HW aggiuntivol'emulatore ad esempio non parte, ovvero carica tutto quello che deve caricare e poi prima di lanciare l'activity si riavvia in automatico e rifà da capo la procedura di avvio.

Il topic l'ho aperto per sapere se è giusto/normale che vengano comunque visualizzati errori anche se ai fini pratici l'emulatori funziona correttamente...In ogni caso, per spaerne di più riguardo a tipi di warning ed errori di LogCat conosci/conoscete guide o qualsiasi cosa dove possa capirne di più? (E' solo per curiosità mia in questo caso, se la cosa è impossibile lascio perdere :-) )
È stata trovata una soluzione al tuo problema?Evidenzia il post più utile premendo . È un ottimo modo per ringraziare chi ti ha aiutato ;-)