Open Bug 792973 Opened 8 years ago Updated 7 years ago

FilePickerResultHandler StrictMode violations

Categories

(Firefox for Android :: General, defect, P3)

18 Branch
ARM
Android
defect

Tracking

()

Tracking Status
firefox17 --- unaffected
firefox18 --- affected

People

(Reporter: cpeterson, Unassigned)

References

(Blocks 1 open bug, )

Details

STR:
1. Load http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_input_type_file
2. Press "Browse..." button
3. Watch logcat
4. Choose a file

NOTE:
The FilePicker dialog will crash until bug 792702 is fixed!

RESULT:
Many StrictMode violations are logged:


D/StrictMode(25307): StrictMode policy violation; ~duration=56 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=31 violation=2
D/StrictMode(25307): 	at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1107)
D/StrictMode(25307): 	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:106)
D/StrictMode(25307): 	at java.io.File.createNewFile(File.java:933)
D/StrictMode(25307): 	at java.io.File.createTempFile(File.java:1005)
D/StrictMode(25307): 	at org.mozilla.gecko.FilePickerResultHandler.handleActivityResult(FilePickerResultHandler.java:65)
D/StrictMode(25307): 	at org.mozilla.gecko.FilePickerResultHandlerSync.onActivityResult(FilePickerResultHandlerSync.java:21)
D/StrictMode(25307): 	at org.mozilla.gecko.ActivityHandlerHelper.handleActivityResult(ActivityHandlerHelper.java:220)
D/StrictMode(25307): 	at org.mozilla.gecko.GeckoApp.onActivityResult(GeckoApp.java:2413)
D/StrictMode(25307): 	at android.app.Activity.dispatchActivityResult(Activity.java:5192)
D/StrictMode(25307): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:3137)
D/StrictMode(25307): 	at android.app.ActivityThread.handleSendResult(ActivityThread.java:3184)
D/StrictMode(25307): 	at android.app.ActivityThread.access$1100(ActivityThread.java:130)
D/StrictMode(25307): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1243)
D/StrictMode(25307): 	at android.os.Handler.dispatchMessage(Handler.java:99)
D/StrictMode(25307): 	at android.os.Looper.loop(Looper.java:137)
D/StrictMode(25307): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
D/StrictMode(25307): 	at java.lang.reflect.Method.invokeNative(Native Method)
D/StrictMode(25307): 	at java.lang.reflect.Method.invoke(Method.java:511)
D/StrictMode(25307): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
D/StrictMode(25307): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
D/StrictMode(25307): 	at dalvik.system.NativeStart.main(Native Method)


D/StrictMode(25307): StrictMode policy violation; ~duration=40 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=31 violation=2
D/StrictMode(25307): 	at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1107)
D/StrictMode(25307): 	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:106)
D/StrictMode(25307): 	at libcore.io.IoBridge.open(IoBridge.java:400)
D/StrictMode(25307): 	at java.io.FileOutputStream.<init>(FileOutputStream.java:88)
D/StrictMode(25307): 	at java.io.FileOutputStream.<init>(FileOutputStream.java:73)
D/StrictMode(25307): 	at org.mozilla.gecko.FilePickerResultHandler.handleActivityResult(FilePickerResultHandler.java:66)
D/StrictMode(25307): 	at org.mozilla.gecko.FilePickerResultHandlerSync.onActivityResult(FilePickerResultHandlerSync.java:21)
D/StrictMode(25307): 	at org.mozilla.gecko.ActivityHandlerHelper.handleActivityResult(ActivityHandlerHelper.java:220)
D/StrictMode(25307): 	at org.mozilla.gecko.GeckoApp.onActivityResult(GeckoApp.java:2413)
D/StrictMode(25307): 	at android.app.Activity.dispatchActivityResult(Activity.java:5192)
D/StrictMode(25307): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:3137)
D/StrictMode(25307): 	at android.app.ActivityThread.handleSendResult(ActivityThread.java:3184)
D/StrictMode(25307): 	at android.app.ActivityThread.access$1100(ActivityThread.java:130)
D/StrictMode(25307): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1243)
D/StrictMode(25307): 	at android.os.Handler.dispatchMessage(Handler.java:99)
D/StrictMode(25307): 	at android.os.Looper.loop(Looper.java:137)
D/StrictMode(25307): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
D/StrictMode(25307): 	at java.lang.reflect.Method.invokeNative(Native Method)
D/StrictMode(25307): 	at java.lang.reflect.Method.invoke(Method.java:511)
D/StrictMode(25307): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
D/StrictMode(25307): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
D/StrictMode(25307): 	at dalvik.system.NativeStart.main(Native Method)


D/StrictMode(25307): StrictMode policy violation; ~duration=35 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=287 violation=2
D/StrictMode(25307): 	at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1107)
D/StrictMode(25307): 	at android.database.sqlite.SQLiteConnection.applyBlockGuardPolicy(SQLiteConnection.java:1034)
D/StrictMode(25307): 	at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:835)
D/StrictMode(25307): 	at android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:836)
D/StrictMode(25307): 	at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62)
D/StrictMode(25307): 	at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:143)
D/StrictMode(25307): 	at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)
D/StrictMode(25307): 	at com.android.providers.media.MediaProvider.queryForDataFile(MediaProvider.java:4322)
D/StrictMode(25307): 	at com.android.providers.media.MediaProvider.openFileAndEnforcePathPermissionsHelper(MediaProvider.java:4348)
D/StrictMode(25307): 	at com.android.providers.media.MediaProvider.openFile(MediaProvider.java:4273)
D/StrictMode(25307): 	at android.content.ContentProvider.openAssetFile(ContentProvider.java:829)
D/StrictMode(25307): 	at android.content.ContentProvider.openTypedAssetFile(ContentProvider.java:937)
D/StrictMode(25307): 	at android.content.ContentProvider$Transport.openTypedAssetFile(ContentProvider.java:268)
D/StrictMode(25307): 	at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:283)
D/StrictMode(25307): 	at android.os.Binder.execTransact(Binder.java:367)
D/StrictMode(25307): 	at dalvik.system.NativeStart.run(Native Method)
D/StrictMode(25307): # via Binder call with stack:
D/StrictMode(25307): android.os.StrictMode$LogStackTrace
D/StrictMode(25307): 	at android.os.StrictMode.readAndHandleBinderCallViolations(StrictMode.java:1656)
D/StrictMode(25307): 	at android.os.Parcel.readExceptionCode(Parcel.java:1407)
D/StrictMode(25307): 	at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:145)
D/StrictMode(25307): 	at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:617)
D/StrictMode(25307): 	at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:715)
D/StrictMode(25307): 	at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:612)
D/StrictMode(25307): 	at android.content.ContentResolver.openInputStream(ContentResolver.java:447)
D/StrictMode(25307): 	at org.mozilla.gecko.FilePickerResultHandler.handleActivityResult(FilePickerResultHandler.java:67)
D/StrictMode(25307): 	at org.mozilla.gecko.FilePickerResultHandlerSync.onActivityResult(FilePickerResultHandlerSync.java:21)
D/StrictMode(25307): 	at org.mozilla.gecko.ActivityHandlerHelper.handleActivityResult(ActivityHandlerHelper.java:220)
D/StrictMode(25307): 	at org.mozilla.gecko.GeckoApp.onActivityResult(GeckoApp.java:2413)
D/StrictMode(25307): 	at android.app.Activity.dispatchActivityResult(Activity.java:5192)
D/StrictMode(25307): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:3137)
D/StrictMode(25307): 	at android.app.ActivityThread.handleSendResult(ActivityThread.java:3184)
D/StrictMode(25307): 	at android.app.ActivityThread.access$1100(ActivityThread.java:130)
D/StrictMode(25307): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1243)
D/StrictMode(25307): 	at android.os.Handler.dispatchMessage(Handler.java:99)
D/StrictMode(25307): 	at android.os.Looper.loop(Looper.java:137)
D/StrictMode(25307): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
D/StrictMode(25307): 	at java.lang.reflect.Method.invokeNative(Native Method)
D/StrictMode(25307): 	at java.lang.reflect.Method.invoke(Method.java:511)
D/StrictMode(25307): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
D/StrictMode(25307): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
D/StrictMode(25307): 	at dalvik.system.NativeStart.main(Native Method)


D/StrictMode(25307): StrictMode policy violation; ~duration=29 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=31 violation=2
D/StrictMode(25307): 	at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1107)
D/StrictMode(25307): 	at libcore.io.BlockGuardOs.read(BlockGuardOs.java:148)
D/StrictMode(25307): 	at libcore.io.IoBridge.read(IoBridge.java:432)
D/StrictMode(25307): 	at java.io.FileInputStream.read(FileInputStream.java:179)
D/StrictMode(25307): 	at java.io.InputStream.read(InputStream.java:163)
D/StrictMode(25307): 	at org.mozilla.gecko.FilePickerResultHandler.handleActivityResult(FilePickerResultHandler.java:69)
D/StrictMode(25307): 	at org.mozilla.gecko.FilePickerResultHandlerSync.onActivityResult(FilePickerResultHandlerSync.java:21)
D/StrictMode(25307): 	at org.mozilla.gecko.ActivityHandlerHelper.handleActivityResult(ActivityHandlerHelper.java:220)
D/StrictMode(25307): 	at org.mozilla.gecko.GeckoApp.onActivityResult(GeckoApp.java:2413)
D/StrictMode(25307): 	at android.app.Activity.dispatchActivityResult(Activity.java:5192)
D/StrictMode(25307): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:3137)
D/StrictMode(25307): 	at android.app.ActivityThread.handleSendResult(ActivityThread.java:3184)
D/StrictMode(25307): 	at android.app.ActivityThread.access$1100(ActivityThread.java:130)
D/StrictMode(25307): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1243)
D/StrictMode(25307): 	at android.os.Handler.dispatchMessage(Handler.java:99)
D/StrictMode(25307): 	at android.os.Looper.loop(Looper.java:137)
D/StrictMode(25307): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
D/StrictMode(25307): 	at java.lang.reflect.Method.invokeNative(Native Method)
D/StrictMode(25307): 	at java.lang.reflect.Method.invoke(Method.java:511)
D/StrictMode(25307): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
D/StrictMode(25307): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
D/StrictMode(25307): 	at dalvik.system.NativeStart.main(Native Method)


D/StrictMode(25307): StrictMode policy violation; ~duration=28 ms: android.os.StrictMode$StrictModeDiskWriteViolation: policy=31 violation=1
D/StrictMode(25307): 	at android.os.StrictMode$AndroidBlockGuardPolicy.onWriteToDisk(StrictMode.java:1081)
D/StrictMode(25307): 	at libcore.io.BlockGuardOs.write(BlockGuardOs.java:190)
D/StrictMode(25307): 	at libcore.io.IoBridge.write(IoBridge.java:457)
D/StrictMode(25307): 	at java.io.FileOutputStream.write(FileOutputStream.java:187)
D/StrictMode(25307): 	at org.mozilla.gecko.FilePickerResultHandler.handleActivityResult(FilePickerResultHandler.java:71)
D/StrictMode(25307): 	at org.mozilla.gecko.FilePickerResultHandlerSync.onActivityResult(FilePickerResultHandlerSync.java:21)
D/StrictMode(25307): 	at org.mozilla.gecko.ActivityHandlerHelper.handleActivityResult(ActivityHandlerHelper.java:220)
D/StrictMode(25307): 	at org.mozilla.gecko.GeckoApp.onActivityResult(GeckoApp.java:2413)
D/StrictMode(25307): 	at android.app.Activity.dispatchActivityResult(Activity.java:5192)
D/StrictMode(25307): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:3137)
D/StrictMode(25307): 	at android.app.ActivityThread.handleSendResult(ActivityThread.java:3184)
D/StrictMode(25307): 	at android.app.ActivityThread.access$1100(ActivityThread.java:130)
D/StrictMode(25307): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1243)
D/StrictMode(25307): 	at android.os.Handler.dispatchMessage(Handler.java:99)
D/StrictMode(25307): 	at android.os.Looper.loop(Looper.java:137)
D/StrictMode(25307): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
D/StrictMode(25307): 	at java.lang.reflect.Method.invokeNative(Native Method)
D/StrictMode(25307): 	at java.lang.reflect.Method.invoke(Method.java:511)
D/StrictMode(25307): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
D/StrictMode(25307): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
D/StrictMode(25307): 	at dalvik.system.NativeStart.main(Native Method)


D/StrictMode(25307): StrictMode policy violation; ~duration=26 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=31 violation=2
D/StrictMode(25307): 	at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1107)
D/StrictMode(25307): 	at libcore.io.BlockGuardOs.read(BlockGuardOs.java:148)
D/StrictMode(25307): 	at libcore.io.IoBridge.read(IoBridge.java:432)
D/StrictMode(25307): 	at java.io.FileInputStream.read(FileInputStream.java:179)
D/StrictMode(25307): 	at java.io.InputStream.read(InputStream.java:163)
D/StrictMode(25307): 	at org.mozilla.gecko.FilePickerResultHandler.handleActivityResult(FilePickerResultHandler.java:72)
D/StrictMode(25307): 	at org.mozilla.gecko.FilePickerResultHandlerSync.onActivityResult(FilePickerResultHandlerSync.java:21)
D/StrictMode(25307): 	at org.mozilla.gecko.ActivityHandlerHelper.handleActivityResult(ActivityHandlerHelper.java:220)
D/StrictMode(25307): 	at org.mozilla.gecko.GeckoApp.onActivityResult(GeckoApp.java:2413)
D/StrictMode(25307): 	at android.app.Activity.dispatchActivityResult(Activity.java:5192)
D/StrictMode(25307): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:3137)
D/StrictMode(25307): 	at android.app.ActivityThread.handleSendResult(ActivityThread.java:3184)
D/StrictMode(25307): 	at android.app.ActivityThread.access$1100(ActivityThread.java:130)
D/StrictMode(25307): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1243)
D/StrictMode(25307): 	at android.os.Handler.dispatchMessage(Handler.java:99)
D/StrictMode(25307): 	at android.os.Looper.loop(Looper.java:137)
D/StrictMode(25307): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
D/StrictMode(25307): 	at java.lang.reflect.Method.invokeNative(Native Method)
D/StrictMode(25307): 	at java.lang.reflect.Method.invoke(Method.java:511)
D/StrictMode(25307): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
D/StrictMode(25307): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
D/StrictMode(25307): 	at dalvik.system.NativeStart.main(Native Method)
You need to log in before you can comment on or make changes to this bug.