Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash when changing to landscape mode during form entry #75

Closed
mitchellsundt opened this issue Jul 8, 2015 · 7 comments
Closed

crash when changing to landscape mode during form entry #75

mitchellsundt opened this issue Jul 8, 2015 · 7 comments

Comments

@mitchellsundt
Copy link
Contributor

mitchellsundt commented Jul 8, 2015

Migrated to getodk/collect#31 by spacetelescope/github-issues-import

Originally reported on Google Code with ID 74

Steps to reproduce:
1.Open a form in ODK Collect v1.1.4 while running Android 2.2

The form should go into landscape mode, but instead the form crashes with a
popup window saying "The application ODK Collect (process
org.odk.collect.android) has stopped unexpectedly. Please try again."

I am running Android 2.2 on a Nexus One with the latest ODK Collect from
the svn repository (which says v1.1.4). I have tested this out on the
Android 2.2 emulator with an identical result. Here is the log from the
phone from the point of switching to landscape while a form is open:

05-23 23:59:02.528: INFO/WindowManager(88): Setting rotation to 1, animFlags=0
05-23 23:59:02.548: INFO/ActivityManager(88): Config changed: { scale=1.0
imsi=310/260 loc=en_US touch=3 keys=1/1/2 nav=3/1 orien=2 layout=34
uiMode=17 seq=92}
05-23 23:59:02.598: DEBUG/FormEntryActivity(8162): onPause
05-23 23:59:02.608: INFO/UsageStats(88): Unexpected resume of
org.odk.collect.android while already resumed in org.odk.collect.android
05-23 23:59:02.668: INFO/PropertyManager(8162): calling constructor
05-23 23:59:02.688: DEBUG/AndroidRuntime(8162): Shutting down VM
05-23 23:59:02.688: WARN/dalvikvm(8162): threadid=1: thread exiting with
uncaught exception (group=0x4001d7e8)
05-23 23:59:02.698: ERROR/AndroidRuntime(8162): FATAL EXCEPTION: main
05-23 23:59:02.698: ERROR/AndroidRuntime(8162): java.lang.RuntimeException:
Unable to start activity
ComponentInfo{org.odk.collect.android/org.odk.collect.android.activities.FormEntryActivity}:
java.lang.NullPointerException
05-23 23:59:02.698: ERROR/AndroidRuntime(8162):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
05-23 23:59:02.698: ERROR/AndroidRuntime(8162):     at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
05-23 23:59:02.698: ERROR/AndroidRuntime(8162):     at
android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3815)
05-23 23:59:02.698: ERROR/AndroidRuntime(8162):     at
android.app.ActivityThread.access$2400(ActivityThread.java:125)
05-23 23:59:02.698: ERROR/AndroidRuntime(8162):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2037)
05-23 23:59:02.698: ERROR/AndroidRuntime(8162):     at
android.os.Handler.dispatchMessage(Handler.java:99)
05-23 23:59:02.698: ERROR/AndroidRuntime(8162):     at
android.os.Looper.loop(Looper.java:123)
05-23 23:59:02.698: ERROR/AndroidRuntime(8162):     at
android.app.ActivityThread.main(ActivityThread.java:4627)
05-23 23:59:02.698: ERROR/AndroidRuntime(8162):     at
java.lang.reflect.Method.invokeNative(Native Method)
05-23 23:59:02.698: ERROR/AndroidRuntime(8162):     at
java.lang.reflect.Method.invoke(Method.java:521)
05-23 23:59:02.698: ERROR/AndroidRuntime(8162):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
05-23 23:59:02.698: ERROR/AndroidRuntime(8162):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
05-23 23:59:02.698: ERROR/AndroidRuntime(8162):     at
dalvik.system.NativeStart.main(Native Method)
05-23 23:59:02.698: ERROR/AndroidRuntime(8162): Caused by:
java.lang.NullPointerException
05-23 23:59:02.698: ERROR/AndroidRuntime(8162):     at
org.odk.collect.android.activities.FormEntryActivity.refreshCurrentView(FormEntryActivity.java:284)
05-23 23:59:02.698: ERROR/AndroidRuntime(8162):     at
org.odk.collect.android.activities.FormEntryActivity.onCreate(FormEntryActivity.java:174)
05-23 23:59:02.698: ERROR/AndroidRuntime(8162):     at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
05-23 23:59:02.698: ERROR/AndroidRuntime(8162):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
05-23 23:59:02.698: ERROR/AndroidRuntime(8162):     ... 12 more
05-23 23:59:02.718: WARN/ActivityManager(88):   Force finishing activity
org.odk.collect.android/.activities.FormEntryActivity
05-23 23:59:02.908: DEBUG/dalvikvm(144): GC_EXTERNAL_ALLOC freed 1459
objects / 67320 bytes in 113ms
05-23 23:59:03.225: WARN/ActivityManager(88): Activity pause timeout for
HistoryRecord{44bff5a0 org.odk.collect.android/.activities.FormEntryActivity}
05-23 23:59:05.008: DEBUG/dalvikvm(88): GC_EXPLICIT freed 3463 objects /
161320 bytes in 101ms
05-23 23:59:12.028: DEBUG/dalvikvm(7811): GC_FOR_MALLOC freed 4289 objects
/ 632496 bytes in 58ms
05-23 23:59:12.726: WARN/ActivityManager(88): Launch timeout has expired,
giving up wake lock!
05-23 23:59:16.678: INFO/Process(8162): Sending signal. PID: 8162 SIG: 9
05-23 23:59:16.708: INFO/ActivityManager(88): Process
org.odk.collect.android (pid 8162) has died.
05-23 23:59:16.708: INFO/WindowManager(88): WIN DEATH: Window{44c56590
org.odk.collect.android/org.odk.collect.android.activities.MainMenuActivity
paused=false}
05-23 23:59:16.718: INFO/ActivityManager(88): Start proc
org.odk.collect.android for activity
org.odk.collect.android/.activities.MainMenuActivity: pid=8175 uid=10083
gids={3003, 1015}

Reported by joshua.purcell on 2010-05-24 05:12:27

@mitchellsundt
Copy link
Contributor Author

mitchellsundt commented Jul 8, 2015

Migrated to opendatakit/collect#31 (comment) by spacetelescope/github-issues-import

any chance you could attach the form that gives you this problem to this bug?

Reported by yanokwa on 2010-07-23 07:09:11

  • Status changed: Started
  • Labels added: Priority-Low, Collect
  • Labels removed: Priority-Medium

@mitchellsundt
Copy link
Contributor Author

mitchellsundt commented Jul 8, 2015

Migrated to opendatakit/collect#31 (comment) by spacetelescope/github-issues-import

Hi, I also got the same issue,
How to resolve that.

My android configurations
API level : 7
 Android2.1 platform

can you help me in that

Reported by nexusanil123 on 2010-07-27 13:33:36

@mitchellsundt
Copy link
Contributor Author

mitchellsundt commented Jul 8, 2015

Migrated to opendatakit/collect#31 (comment) by spacetelescope/github-issues-import

what device, android os, and form are you using?

Reported by yanokwa on 2010-07-27 13:36:26

@mitchellsundt
Copy link
Contributor Author

mitchellsundt commented Jul 8, 2015

Migrated to opendatakit/collect#31 (comment) by spacetelescope/github-issues-import

I am testing on Emulator

and the XFORM is:

<?xml version="1.0"?>
<h:html xmlns="http://www.w3.org/2002/xforms"
        xmlns:h="http://www.w3.org/1999/xhtml"
        xmlns:ev="http://www.w3.org/2001/xml-events"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:jr="http://openrosa.org/javarosa">
  <h:head>
    <h:title>Survey App</h:title>

    <model>
      <instance>
        <survey xmlns="surveyApp">
        <trash1/><counter/>
        </survey>
      </instance>

     <bind nodeset="trash1" required="true()" /> 
     <bind nodeset="counter" required="true()" /> 

    </model>
  </h:head>

  <h:body>
  <select1 ref="trash1">
            <label>Q1: Is TRASH EMPTIED AND NEW LINER SECURED ?</label>
            <item><label>YES</label><value>y</value></item>
            <item><label>NO</label><value>n</value></item>
        </select1>

 <select1 ref="counter">
            <label>Q2: Is COUNTER TOPS CLEAN ?</label>
            <item><label>YES</label><value>y</value></item>
            <item><label>NO</label><value>n</value></item>
        </select1>
</h:body>

</h:html>

Reported by nexusanil123 on 2010-07-27 14:26:55

@mitchellsundt
Copy link
Contributor Author

mitchellsundt commented Jul 8, 2015

Migrated to opendatakit/collect#31 (comment) by spacetelescope/github-issues-import

and what version of the application are you using? 1.1.4? trunk?

Reported by yanokwa on 2010-07-27 14:53:27

@mitchellsundt
Copy link
Contributor Author

mitchellsundt commented Jul 8, 2015

Migrated to opendatakit/collect#31 (comment) by spacetelescope/github-issues-import

-firstly, change your orientation to potrait and then change the SDK API level of your
application to the one your are using for the emulator or device itself

Reported by hollyaceguy on 2010-10-12 09:33:08

@mitchellsundt
Copy link
Contributor Author

mitchellsundt commented Jul 8, 2015

Migrated to opendatakit/collect#31 (comment) by spacetelescope/github-issues-import

As described, I cannot reproduce this failure in the 1.1.6 code tree.

Reported by mitchellsundt on 2011-02-25 00:13:32

  • Status changed: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants