[G1 Apps and Games] mlevin:
Hey folks,

I'm getting a strange error doing something that should work just fine. I'm on Cyanogen 3.6.5.

Here's what I did:

Open Astro

Navigate to a photo

Open the photo with "View Picture" (not "ASTRO Image Viewer")

The picture comes up (so I know it really exists and is not corrupted)

Menu --> Share --> Messaging

At this point, the process com.android.mms crashes: "The application Messaging (process com.android.mms) has stopped unexpectedly."

Why can't I share the photo?

Watching the log while I attempt this, I see the following:

I/ActivityManager( 131): Start proc com.metago.astro for content provider com.metago.astro/.provider.FileSystemProvider: pid=2420 uid=10066 gids={}
D/dalvikvm( 2395): GC freed 2850 objects / 194720 bytes in 457ms
I/ActivityThread( 2420): Publishing provider com.metago.astro.compressed: com.metago.astro.provider.CompressedFileProvider
I/ActivityThread( 2420): Publishing provider com.metago.astro.extension: com.metago.astro.provider.FileExtensionProvider
I/ActivityThread( 2420): Publishing provider com.metago.astro.filesystem: com.metago.astro.provider.FileSystemProvider
D/FileSystemProvider( 2420): open file uri:content://com.metago.astro.filesystem/sdcard/dcim/Camera/me.jpg
D/FileSystemProvider( 2420): id:me.jpg
D/FileSystemProvider( 2420): path:/sdcard/dcim/Camera/me.jpg
D/FileSystemProvider( 2420): path segs:[sdcard, dcim, Camera, me.jpg]
D/FileSystemProvider( 2420): query:null
D/FileSystemProvider( 2420): Trace 1
D/FileSystemProvider( 2420): Trace 4
D/FileSystemProvider( 2420): Trace 6
D/FileSystemProvider( 2420): Trace 7 path:/sdcard/dcim/Camera/me.jpg
D/FileSystemProvider( 2420): Trace 8 pfd:{ParcelFileDescriptor: java.io.FileDescriptor@437bceb0}
D/AndroidRuntime( 2410): Shutting down VM
W/dalvikvm( 2410): threadid=3: thread exiting with uncaught exception (group=0x4000fe70)
E/AndroidRuntime( 2410): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 2410): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity}: java.lang.IllegalArgumentException: Query on content://com.metago.astro.filesystem/sdcard/dcim/Camera/me.jpg returns null result.
E/AndroidRuntime( 2410): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268)
E/AndroidRuntime( 2410): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
E/AndroidRuntime( 2410): at android.app.ActivityThread.access$1800(ActivityThread.java:112)
E/AndroidRuntime( 2410): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
E/AndroidRuntime( 2410): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2410): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 2410): at android.app.ActivityThread.main(ActivityThread.java:3948)
E/AndroidRuntime( 2410): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2410): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 2410): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
E/AndroidRuntime( 2410): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
E/AndroidRuntime( 2410): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2410): Caused by: java.lang.IllegalArgumentException: Query on content://com.metago.astro.filesystem/sdcard/dcim/Camera/me.jpg returns null result.
E/AndroidRuntime( 2410): at com.android.mms.ui.UriImage.initFromContentUri(UriImage.java:97)
E/AndroidRuntime( 2410): at com.android.mms.ui.UriImage.<init>(UriImage.java:62)
E/AndroidRuntime( 2410): at com.android.mms.model.ImageModel.initModelFromUri(ImageModel.java:76)
E/AndroidRuntime( 2410): at com.android.mms.model.ImageModel.<init>(ImageModel.java:58)
E/AndroidRuntime( 2410): at com.android.mms.ui.AttachmentEditor.changeImage(AttachmentEditor.java:247)
E/AndroidRuntime( 2410): at com.android.mms.ui.ComposeMessageActivity.addImage(ComposeMessageActivity.java:2347)
E/AndroidRuntime( 2410): at com.android.mms.ui.ComposeMessageActivity.handleSendIntent(ComposeMessageActivity.java:2424)
E/AndroidRuntime( 2410): at com.android.mms.ui.ComposeMessageActivity.onCreate(ComposeMessageActivity.java:1622)
E/AndroidRuntime( 2410): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
E/AndroidRuntime( 2410): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
E/AndroidRuntime( 2410): ... 11 more
I/Process ( 131): Sending signal. PID: 2410 SIG: 3
I/dalvikvm( 2410): threadid=7: reacting to signal 3
I/dalvikvm( 2410): Wrote stack trace to '/data/anr/traces.txt'