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

2.7.7.1 CRASH at XPRIZE sites java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.hashCode()' on a null object reference #410

Open
JackMostow opened this issue Nov 28, 2018 · 4 comments
Assignees

Comments

@JackMostow
Copy link
Contributor

Jo Grimstad [7:34 AM] 11/27/2018:

@kdeland @jack_mostow_robotutor Note that after your update, this crash report is being uploaded from your tablets:
CRASH_20181110_101607_5B13001251_release_2.7.7.1.txt
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.hashCode()' on a null object reference
--------- Stack trace ---------
cmu.xprize.robotutor.tutorengine.CTutor.loadTutorGraph(CTutor.java:235)
cmu.xprize.robotutor.tutorengine.CTutor.inflateTutor(CTutor.java:209)
cmu.xprize.robotutor.tutorengine.CTutor.(CTutor.java:163)
cmu.xprize.robotutor.tutorengine.CTutorEngine.createAndLaunchTutor(CTutorEngine.java:356)
cmu.xprize.robotutor.tutorengine.CTutorEngine.startSessionManager(CTutorEngine.java:238)
cmu.xprize.robotutor.RoboTutor.onStartTutor(RoboTutor.java:614)
cmu.xprize.robotutor.RoboTutor.startEngine(RoboTutor.java:585)
cmu.xprize.robotutor.RoboTutor.onServiceReady(RoboTutor.java:532)
cmu.xprize.util.TTSsynthesizer.onInit(TTSsynthesizer.java:68)
android.speech.tts.TextToSpeech.dispatchOnInit(TextToSpeech.java:824)
android.speech.tts.TextToSpeech.-wrap4(TextToSpeech.java)
android.speech.tts.TextToSpeech$Connection$SetupConnectionAsyncTask.onPostExecute(TextToSpeech.java:2201)
android.speech.tts.TextToSpeech$Connection$SetupConnectionAsyncTask.onPostExecute(TextToSpeech.java:2195)
android.os.AsyncTask.finish(AsyncTask.java:667)
android.os.AsyncTask.-wrap1(AsyncTask.java)
android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:684)
android.os.Handler.dispatchMessage(Handler.java:102)
android.os.Looper.loop(Looper.java:154)
android.app.ActivityThread.main(ActivityThread.java:6119)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

--------- Cause ---------

@JackMostow
Copy link
Contributor Author

RoboTutor doesn't use TTS, so why is it initializing it??

cmu.xprize.util.TTSsynthesizer.onInit(TTSsynthesizer.java:68)
android.speech.tts.TextToSpeech.dispatchOnInit(TextToSpeech.java:824)

@JackMostow
Copy link
Contributor Author

Caused by student exit?
CRASH_20181115_202603_6113001032_release_2.7.7.1.txt
after:
...
{"type":"LOG_DATA","tutor":"activity_selector","class":"TUTORSTATE","tag":"TSTag","time":"1542302174377","data":{"target":"activity_selector","type":"behavior","value":"GOODBYE_BUTTON_BEHAVIOR",".promptAudioI want to stop using RoboTutor":"",".buttonBehaviorSELECT_EXIT":"",".buttonidSbuttonExit":"",".helpAudioI want to stop using RoboTutor":""}},
{"type":"LOG_DATA","tutor":"activity_selector","class":"INFO","tag":"RTag","time":"1542302174504","data":{"target":"ctutor","action":"create","tutorname":"activity_selector"}},
{"class":"BATTERY","tag":"Battery","time":"1542302174507","percent":"0.81","chargeType":"UNPLUGGED"},
{"class":"ERROR","tag":"CTutor","type":"Exception","time":"1542302175161","msg":"ERROR: Non-ITutor child view in:activity_selector","exception":"java.lang.ClassCastException: android.view.SurfaceView cannot be cast to cmu.xprize.robotutor.tutorengine.ITutorObject"},
{"type":"LOG_DATA","tutor":"activity_selector","class":"INFO","tag":"RTag","time":"1542302175162","data":{"target":"ctutorgraph","action":"preenterscene","setdatasource":"[file]dev_data.json"}},
{"class":"VERBOSE","tag":"RTag","type":"TimeStamp","datetime":"11/15/2018 20:16:15","time":"1542302175820","data":{"RoboTutor":"SessionEnd"}},
{"end":"end"}]}

@kevindeland
Copy link
Collaborator

kevindeland commented Mar 15, 2019

I added two new folders to Google Drive.

a_crash_examine_0941
a_crash_examine_2942

Each has a collection of all CRASH and PERF files logged between 11/15 and 11/16 for a given tablet.

Many of the CRASH logs contain the hashCode() error. The goal is to map each of these crashes to a corresponding PERF log.
Some of the CRASH logs contain the StringOutOfBoundsException error called from TBpComponent.trackAndLogPerformance(). These will each map to a PERF log that ends with a bpop.addsub activity. This relationship can be used as a sort of "ground truth" between the CRASH and the PERF logs.

@kevindeland
Copy link
Collaborator

kevindeland commented Mar 15, 2019

For reference, here are the types of Crashes in each of the CRASH log files, where HASH indicates the crash mentioned here, STRING indicates the StringOutOfBoundsException, and MEM indicates an OutOfMemoryError.

2942

  • CRASH_20181110_085415_6118002942_release_2.7.7.1 HASH
  • CRASH_20181115_140436_6118002942_release_2.7.7.1 HASH
  • CRASH_20181115_145629_6118002942_release_2.7.7.1 HASH
  • CRASH_20181115_145748_6118002942_release_2.7.7.1 HASH
  • CRASH_20181115_152530_6118002942_release_2.7.7.1 HASH
  • CRASH_20181115_174326_6118002942_release_2.7.7.1 HASH
  • CRASH_20181115_180426_6118002942_release_2.7.7.1 HASH
  • CRASH_20181115_180612_6118002942_release_2.7.7.1 HASH
  • CRASH_20181115_181442_6118002942_release_2.7.7.1 HASH
  • CRASH_20181115_185640_6118002942_release_2.7.7.1 STRING
  • CRASH_20181115_185704_6118002942_release_2.7.7.1 STRING
  • CRASH_20181115_190651_6118002942_release_2.7.7.1 STRING
  • CRASH_20181115_190814_6118002942_release_2.7.7.1 STRING
  • CRASH_20181115_190854_6118002942_release_2.7.7.1 STRING
  • CRASH_20181115_192455_6118002942_release_2.7.7.1 STRING
  • CRASH_20181115_193509_6118002942_release_2.7.7.1 STRING
  • CRASH_20181115_194146_6118002942_release_2.7.7.1 STRING
  • CRASH_20181115_194228_6118002942_release_2.7.7.1 STRING
  • CRASH_20181115_201746_6118002942_release_2.7.7.1 STRING
  • CRASH_20181115_203536_6118002942_release_2.7.7.1 STRING
  • CRASH_20181115_204122_6118002942_release_2.7.7.1 STRING
  • CRASH_20181115_213426_6118002942_release_2.7.7.1 HASH
  • CRASH_20181116_080655_6118002942_release_2.7.7.1 STRING
  • CRASH_20181116_080841_6118002942_release_2.7.7.1 STRING
  • CRASH_20181116_081452_6118002942_release_2.7.7.1 HASH
  • CRASH_20181116_090544_6118002942_release_2.7.7.1 HASH

0941

  • CRASH_20181110_085743_5A27000941_release_2.7.7.1 HASH
  • CRASH_20181115_173753_5A27000941_release_2.7.7.1 HASH
  • CRASH_20181115_174732_5A27000941_release_2.7.7.1 HASH
  • CRASH_20181115_182024_5A27000941_release_2.7.7.1 HASH
  • CRASH_20181115_184934_5A27000941_release_2.7.7.1 MEM
  • CRASH_20181115_185149_5A27000941_release_2.7.7.1 HASH
  • CRASH_20181115_185150_5A27000941_release_2.7.7.1 HASH
  • CRASH_20181115_192830_5A27000941_release_2.7.7.1 HASH
  • CRASH_20181115_200252_5A27000941_release_2.7.7.1 HASH
  • CRASH_20181115_210153_5A27000941_release_2.7.7.1 MEM
  • CRASH_20181115_211107_5A27000941_release_2.7.7.1 HASH
  • CRASH_20181116_070443_5A27000941_release_2.7.7.1 HASH
  • CRASH_20181116_074336_5A27000941_release_2.7.7.1 HASH
  • CRASH_20181116_113037_5A27000941_release_2.7.7.1 HASH
  • CRASH_20181116_113457_5A27000941_release_2.7.7.1 HASH
  • CRASH_20181116_122242_5A27000941_release_2.7.7.1 HASH
  • CRASH_20181116_134808_5A27000941_release_2.7.7.1 STRING
  • CRASH_20181116_134834_5A27000941_release_2.7.7.1 STRING
  • CRASH_20181116_134914_5A27000941_release_2.7.7.1 STRING
  • CRASH_20181116_134943_5A27000941_release_2.7.7.1 STRING
  • CRASH_20181116_135049_5A27000941_release_2.7.7.1 STRING
  • CRASH_20181116_135146_5A27000941_release_2.7.7.1 STRING
  • CRASH_20181116_135245_5A27000941_release_2.7.7.1 STRING
  • CRASH_20181116_135538_5A27000941_release_2.7.7.1 STRING
  • CRASH_20181116_135620_5A27000941_release_2.7.7.1 STRING

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

No branches or pull requests

2 participants