GoogleJump / returnJump

7 stars 2 forks source link

Taking a photo with the camera (on a tablet) #9

Closed khrubes closed 10 years ago

khrubes commented 10 years ago

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.

screenshot_2014-05-13-14-35-18

img_20140512_194533

tasti commented 10 years ago

Can you try this again and add the error log from logcat to here?

khrubes commented 10 years ago

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.(ReadFile.java:31) at com.returnjump.spoilfoil.TastiActivity$BinarizeImageTask.doInBackground(TastiActivity.java:331) at com.returnjump.spoilfoil.TastiActivity$BinarizeImageTask.doInBackground(TastiActivity.java:315) at android.os.AsyncTask$2.call(AsyncTask.java:288) at java.util.concurrent.FutureTask.run(FutureTask.java:237)             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)

tasti commented 10 years ago

Should be working now from the latest commit. Looks like git was ignoring one of the library folders.