On a live device Samsung A5 T550 Android 6.0.1, the application runs out of memory.
About the App: We are building a data collection tool like ODK collect but all the questions are on a single form. The application behaves very well when capturing a survey of like 60 question, but longer survey (like 100 questions) crashes the app. To render a single question, we use at least 4 components. Hence a survey of 100 questions will require at least 400 components, communicating with each other using https://www.codenameone.com/javadoc/java/util/Observable.html. We used android studio to pull out the crash log 05-16 10:05:48.293 13078-13090/? D/Tattara: [EDT] 0:11:34,198 - Exception in AppName version 1.2 05-16 10:05:48.293 13078-13090/? D/Tattara: [EDT] 0:11:34,199 - OS and 05-16 10:05:48.293 13078-13090/? D/Tattara: [EDT] 0:11:34,200 - Error java.lang.OutOfMemoryError: Failed to allocate a 3072012 byte allocation with 2348648 free bytes and 2MB until OOM 05-16 10:05:48.293 13078-13090/? D/Tattara: [EDT] 0:11:34,201 - Current Form null 05-16 10:05:48.293 13078-13090/? D/Tattara: [EDT] 0:11:34,202 - Exception: java.lang.OutOfMemoryError - Failed to allocate a 3072012 byte allocation with 2348648 free bytes and 2MB until OOM 05-16 10:05:48.293 13078-13090/? W/System.err: at com.encentral.tattara.mobile.e.b.bq.a(OptionsDialog.java:163) 05-16 10:05:48.293 13078-13090/? W/System.err: at com.encentral.tattara.mobile.e.b.bq.a(OptionsDialog.java) 05-16 10:05:48.293 13078-13090/? W/System.err: at com.encentral.tattara.mobile.e.b.br.a(Unknown Source) 05-16 10:05:49.533 13078-13090/? W/System.err: at com.encentral.tattara.mobile.e.b.bq.a(OptionsDialog.java:163) 05-16 10:05:49.533 13078-13090/? W/System.err: at com.encentral.tattara.mobile.e.b.bq.a(OptionsDialog.java) 05-16 10:05:49.533 13078-13090/? W/System.err: at com.encentral.tattara.mobile.e.b.br.a(Unknown Source) And in case u are wondering what's in line 163 of OptionsDialog: dialog.show(spaceH < 0 ? 0 : spaceH, spaceH < 0 ? 0 : spaceH, spacew < 0 ? 5 : spacew, spacew < 0 ? 5 : spacew); -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/38572234-7776-4afb-bc9b-677abec26066%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
