PhenoApps / Field-Book

https://fieldbook.phenoapps.org
GNU General Public License v2.0
51 stars 54 forks source link

[BUG]: v5.5 crashing #706

Closed ramierop closed 1 year ago

ramierop commented 1 year ago

Description

Trying to use v5.5 on my Samsung S22. When opening Field Import, long lag time even with only sample fields and my intended field loaded followed by crashing. I get the attached message. -3480267993938686699

Expected behavior

No response

Field Book version

5.5

ramierop commented 1 year ago

I will add that I am importing from Local Storage

trife commented 1 year ago

@ramierop can you post or send the file that's causing the issue?

@chaneylc here's the crash log

Fatal Exception: java.lang.NoClassDefFoundError: jxl.WorkbookSettings
       at jxl.WorkbookSettings.class$(WorkbookSettings.java:12)
       at jxl.WorkbookSettings.<clinit>(WorkbookSettings.java:6)
       at com.fieldbook.tracker.objects.FieldFileObject$FieldFileExcel.getColumns(FieldFileObject.java:4)
       at com.fieldbook.tracker.activities.FieldEditorActivity.loadFile(FieldEditorActivity.java)
       at com.fieldbook.tracker.activities.FieldEditorActivity.showFieldFileDialog(FieldEditorActivity.java:144)
       at com.fieldbook.tracker.activities.FieldEditorActivity.onActivityResult(FieldEditorActivity.java:30)
       at android.app.Activity.dispatchActivityResult(Activity.java:8951)
       at android.app.ActivityThread.deliverResults(ActivityThread.java:5987)
       at android.app.ActivityThread.handleSendResult(ActivityThread.java:6033)
       at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:67)
       at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
       at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2574)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loopOnce(Looper.java:226)
       at android.os.Looper.loop(Looper.java:313)
       at android.app.ActivityThread.main(ActivityThread.java:8757)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
ramierop commented 1 year ago

Yes, I will load that this afternoon

On Mon, Aug 7, 2023, 10:20 PM Trevor Rife @.***> wrote:

@chaneylc https://github.com/chaneylc

   at jxl.WorkbookSettings.class$(WorkbookSettings.java:12)
   at jxl.WorkbookSettings.<clinit>(WorkbookSettings.java:6)
   at com.fieldbook.tracker.objects.FieldFileObject$FieldFileExcel.getColumns(FieldFileObject.java:4)
   at com.fieldbook.tracker.activities.FieldEditorActivity.loadFile(FieldEditorActivity.java)
   at com.fieldbook.tracker.activities.FieldEditorActivity.showFieldFileDialog(FieldEditorActivity.java:144)
   at com.fieldbook.tracker.activities.FieldEditorActivity.onActivityResult(FieldEditorActivity.java:30)
   at android.app.Activity.dispatchActivityResult(Activity.java:8951)
   at android.app.ActivityThread.deliverResults(ActivityThread.java:5987)
   at android.app.ActivityThread.handleSendResult(ActivityThread.java:6033)
   at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:67)
   at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
   at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
   at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2574)
   at android.os.Handler.dispatchMessage(Handler.java:106)
   at android.os.Looper.loopOnce(Looper.java:226)
   at android.os.Looper.loop(Looper.java:313)
   at android.app.ActivityThread.main(ActivityThread.java:8757)
   at java.lang.reflect.Method.invoke(Method.java)
   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)````

@ramierop can you post or send the file that's causing the issue?

— Reply to this email directly, view it on GitHub https://github.com/PhenoApps/Field-Book/issues/706#issuecomment-1668811321, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQX3JRBVNFEKT3VWCMAX3VTXUGPANANCNFSM6AAAAAA3HP2QNQ . You are receiving this because you authored the thread.Message ID: @.***>

ramierop commented 1 year ago

23StorageRating.xls

Attached is the file. Let me know if you need anything else.

trife commented 1 year ago

@ramierop I think I know what the issue is but won't be able to confirm until I'm back in the office on Thursday. Until then, you should be able to save this as a csv and import without issue.

@chaneylc I think this is more fallout from minify

chaneylc commented 1 year ago

@trife easiest solution for now is to disable minify on release, until I figure out a better solution

trife commented 1 year ago

fixed in #709