Closed khrubes closed 10 years ago
Can you try this again and add the error log from logcat to here?
I ran the debugger and tried to use the camera again, this is copied from the logcat
05-13 21:09:26.921 6101-6183/com.returnjump.spoilfoil W/dalvikvm﹕ Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/googlecode/leptonica/android/ReadFile;
05-13 21:09:26.921 6101-6183/com.returnjump.spoilfoil W/dalvikvm﹕ threadid=13: thread exiting with uncaught exception (group=0x4158cba8)
05-13 21:09:26.931 6101-6183/com.returnjump.spoilfoil E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #3
Process: com.returnjump.spoilfoil, PID: 6101
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.UnsatisfiedLinkError: Couldn't load lept from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.returnjump.spoilfoil-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.returnjump.spoilfoil-2, /vendor/lib, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:358)
at java.lang.System.loadLibrary(System.java:526)
at com.googlecode.leptonica.android.ReadFile.
Should be working now from the latest commit. Looks like git was ignoring one of the library folders.
Update: no longer toasts “Copied engine trane data” when launching the camera. we should still check to see if this happens when spoilFoil is ran for the first time on a device.
-crashes when taking a real picture, toasts “Binarizing Image” and then displays the “unfortunately, spoilFoil has stopped” message
Here is a screenshot of spoilFoil right after I take and image and hit the "ok" (or checkmark button, whatever. ) and also an image of the receipt I tested it on. The receipt is from HyVee, which is a HUGE grocery chain here in the midwest.