[TIMOB-6910] Android: Emulator - V8/Rhino, StrictMode policy violation is thrown in the console when launching to Ice Cream Sandwich emulator
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-06-14T21:13:45.000+0000 |
Affected Version/s | Release 1.7.5, Release 1.8.0.1 |
Fix Version/s | n/a |
Components | Android |
Labels | fastdev |
Reporter | Wilson Luu |
Assignee | Ingo Muschenetz |
Created | 2011-12-28T14:43:01.000+0000 |
Updated | 2017-06-14T21:13:45.000+0000 |
Description
Steps to reproduce:
1. Launch empty Titanium project to Android Emulator 4.0
Results: StrictMode policy violation is thrown in the TiStud console:
D/StrictMode( 77): StrictMode policy violation; ~duration=812 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=151 violation=2
D/StrictMode( 77): at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1074)
D/StrictMode( 77): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:94)
D/StrictMode( 77): at libcore.io.IoBridge.open(IoBridge.java:390)
D/StrictMode( 77): at java.io.FileOutputStream.<init>(FileOutputStream.java:88)
D/StrictMode( 77): at java.io.FileOutputStream.<init>(FileOutputStream.java:73)
D/StrictMode( 77): at com.android.internal.os.AtomicFile.startWrite(AtomicFile.java:59)
D/StrictMode( 77): at com.android.server.AppWidgetService.saveStateLocked(AppWidgetService.java:1181)
D/StrictMode( 77): at com.android.server.AppWidgetService$2.onReceive(AppWidgetService.java:1463)
D/StrictMode( 77): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728)
D/StrictMode( 77): at android.os.Handler.handleCallback(Handler.java:605)
D/StrictMode( 77): at android.os.Handler.dispatchMessage(Handler.java:92)
D/StrictMode( 77): at android.os.Looper.loop(Looper.java:137)
D/StrictMode( 77): at com.android.server.ServerThread.run(SystemServer.java:744)
D/StrictMode( 77): StrictMode policy violation; ~duration=792 ms: android.os.StrictMode$StrictModeDiskWriteViolation: policy=151 violation=1
D/StrictMode( 77): at android.os.StrictMode$AndroidBlockGuardPolicy.onWriteToDisk(StrictMode.java:1048)
D/StrictMode( 77): at libcore.io.BlockGuardOs.write(BlockGuardOs.java:178)
D/StrictMode( 77): at libcore.io.IoBridge.write(IoBridge.java:447)
D/StrictMode( 77): at java.io.FileOutputStream.write(FileOutputStream.java:187)
D/StrictMode( 77): at com.android.internal.util.FastXmlSerializer.flushBytes(FastXmlSerializer.java:212)
D/StrictMode( 77): at com.android.internal.util.FastXmlSerializer.flush(FastXmlSerializer.java:233)
D/StrictMode( 77): at com.android.internal.util.FastXmlSerializer.endDocument(FastXmlSerializer.java:183)
D/StrictMode( 77): at com.android.server.AppWidgetService.writeStateToFileLocked(AppWidgetService.java:1240)
D/StrictMode( 77): at com.android.server.AppWidgetService.saveStateLocked(AppWidgetService.java:1182)
D/StrictMode( 77): at com.android.server.AppWidgetService$2.onReceive(AppWidgetService.java:1463)
D/StrictMode( 77): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728)
D/StrictMode( 77): at android.os.Handler.handleCallback(Handler.java:605)
D/StrictMode( 77): at android.os.Handler.dispatchMessage(Handler.java:92)
D/StrictMode( 77): at android.os.Looper.loop(Looper.java:137)
Expected: Should not see this error.
Note: This error still persists when I launch an empty 1.7.5 Titanium project against Android Emulator 4.0
[~wluu] Don't suppose you remember if fastdev was running? :)
[~cbarber] Sorry, can't remember if fastdev was running :(
Closing ticket due to the time passed and lack of progress in the past few years. Any further problems, please file a new ticket.