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

[BUG]: App Crashing While Changing The Landscape in Exploration/Question Player #5657

Open
TanishMoral11 opened this issue Jan 20, 2025 · 1 comment · May be fixed by #5680
Open

[BUG]: App Crashing While Changing The Landscape in Exploration/Question Player #5657

TanishMoral11 opened this issue Jan 20, 2025 · 1 comment · May be fixed by #5680
Assignees
Labels
bug End user-perceivable behaviors which are not desirable. Impact: Medium Moderate perceived user impact (non-blocking bugs and general improvements). Work: Low Solution is clear and broken into good-first-issue-sized chunks.

Comments

@TanishMoral11
Copy link
Collaborator

Describe the bug

The App Crashes When Changing The configuration to landscape in the Exploration/Question player after interacting with previous responses.

Steps To Reproduce

  1. Open the "Fraction" exploration.
  2. Choose 2-3 Multiple Incorrect Options.
  3. Click on "Previous Responses" to expand it.
  4. Change configuration to landscape.
  5. App crashes.
Error Log
E  FATAL EXCEPTION: main
                                                                                                    Process: org.oppia.android, PID: 12678
                                                                                                    kotlin.UninitializedPropertyAccessException: lateinit property state has not been initialized
                                                                                                    	at org.oppia.android.app.player.audio.AudioViewModel.loadMainContentAudio(AudioViewModel_updated.kt:75)
                                                                                                    	at org.oppia.android.app.player.audio.AudioFragmentPresenter$subscribeToAudioLanguageLiveData$1.onChanged(AudioFragmentPresenter_updated.kt:158)
                                                                                                    	at org.oppia.android.app.player.audio.AudioFragmentPresenter$subscribeToAudioLanguageLiveData$1.onChanged(AudioFragmentPresenter_updated.kt:154)
                                                                                                    	at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
                                                                                                    	at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:151)
                                                                                                    	at androidx.lifecycle.LiveData.setValue(LiveData.java:309)
                                                                                                    	at androidx.lifecycle.MutableLiveData.setValue(MutableLiveData.java:50)
                                                                                                    	at androidx.lifecycle.Transformations$1.onChanged(Transformations.java:76)
                                                                                                    	at androidx.lifecycle.MediatorLiveData$Source.onChanged(MediatorLiveData.java:152)
                                                                                                    	at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
                                                                                                    	at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:151)
                                                                                                    	at androidx.lifecycle.LiveData.setValue(LiveData.java:309)
                                                                                                    	at org.oppia.android.util.data.DataProviders$NotifiableAsyncLiveData.setValue(DataProviders.kt:405)
                                                                                                    	at org.oppia.android.util.data.DataProviders$NotifiableAsyncLiveData.setValue(DataProviders.kt:354)
                                                                                                    	at androidx.lifecycle.LiveData$1.run(LiveData.java:93)
                                                                                                    	at android.os.Handler.handleCallback(Handler.java:883)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:100)
                                                                                                    	at android.os.Looper.loop(Looper.java:214)
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:7356)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

Expected Behavior

App should not crash when changing configuration to landscape after interacting with the previous responses.

Screenshots/Videos

crash_Video.webm

What device/emulator are you using?

Pixel 8 Pro API 29

Which Android version is your device/emulator running?

No response

Which version of the Oppia Android app are you using?

No response

Additional Context

No response

@TanishMoral11 TanishMoral11 added bug End user-perceivable behaviors which are not desirable. triage needed Impact: Medium Moderate perceived user impact (non-blocking bugs and general improvements). labels Jan 20, 2025
@TanishMoral11 TanishMoral11 self-assigned this Jan 20, 2025
@adhiamboperes adhiamboperes added Work: Low Solution is clear and broken into good-first-issue-sized chunks. and removed triage needed labels Jan 22, 2025
@adhiamboperes
Copy link
Collaborator

Related #3006

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug End user-perceivable behaviors which are not desirable. Impact: Medium Moderate perceived user impact (non-blocking bugs and general improvements). Work: Low Solution is clear and broken into good-first-issue-sized chunks.
2 participants