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

Audiorecording crash after orientation change #238

Closed
webratte opened this issue Nov 21, 2014 · 8 comments
Closed

Audiorecording crash after orientation change #238

webratte opened this issue Nov 21, 2014 · 8 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@webratte
Copy link
Contributor

Kontalkversion 3.0 beta3 (36)
Androidversion 2.3.6

Steps to reproduce:
-choose Attachment Audio
-start record
-turn phone from portrait to landscape
-the recordwindow disappears
-choose Attatchment Audio again
-the recordwindow appears
-start record again
-errormessage: "Error starting audio recording."

@acappelli acappelli self-assigned this Nov 21, 2014
@acappelli acappelli added this to the 3.0-beta4 milestone Nov 21, 2014
@acappelli acappelli added the bug Something isn't working label Nov 21, 2014
@acappelli
Copy link
Member

I had try it on android 4 and works good.
I think it's a problem caused by android 2.x
Tomorrow I will work on this.
Il 21/nov/2014 23:49 "webratte" notifications@github.com ha scritto:

A little bit better english :-/


Reply to this email directly or view it on GitHub
#238 (comment)
.

@acappelli
Copy link
Member

Hello @webratte
I had try with your instruction on android 2.3.7 and when rotate the screen the dialog remain open, and can send audio.
After send I re-open audio attachment and record starts without crash.

@webratte
Copy link
Contributor Author

I could send you a catlog if it helps you.

@acappelli
Copy link
Member

yes please..

@webratte
Copy link
Contributor Author

I will send it to your devl.adress.

@acappelli
Copy link
Member

LogCat:

11-23 21:19:04.937    8645-8645/org.kontalk E/WindowManager﹕ Activity org.kontalk.ui.ComposeMessage has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@407d47b8 that was originally added here
    android.view.WindowLeaked: Activity org.kontalk.ui.ComposeMessage has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@407d47b8 that was originally added here
            at android.view.ViewRoot.<init>(ViewRoot.java:263)
            at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:171)
            at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:114)
            at android.view.Window$LocalWindowManager.addView(Window.java:424)
            at android.app.Dialog.show(Dialog.java:241)
            at org.kontalk.ui.ComposeMessageFragment.selectAudioAttachment(ComposeMessageFragment.java:860)
            at org.kontalk.ui.ComposeMessageFragment.onClick(ComposeMessageFragment.java:783)
            at org.kontalk.ui.IconContextMenu$1.onClick(IconContextMenu.java:98)
            at com.android.internal.app.AlertController$AlertParams$3.onItemClick(AlertController.java:873)
            at android.widget.AdapterView.performItemClick(AdapterView.java:284)
            at android.widget.ListView.performItemClick(ListView.java:3736)
            at android.widget.AbsListView$PerformClick.run(AbsListView.java:1968)
            at android.os.Handler.handleCallback(Handler.java:587)
            at android.os.Handler.dispatchMessage(Handler.java:92)
            at android.os.Looper.loop(Looper.java:130)
            at android.app.ActivityThread.main(ActivityThread.java:3687)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:507)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
            at dalvik.system.NativeStart.main(Native Method)

@webratte
Copy link
Contributor Author

webratte commented Jan 9, 2015

Issue seems not completely fixed in Kontalk Kontalkversion 3.0 beta4.

The crash is fixed but after orientation change, while recording, the recordwindow dissapears.
Then I have to start the record again.

@daniele-athome
Copy link
Member

Thanks for reporting. This is a change introduced in aea5715 because the previous fix had some side effects. I've opened #261 for the next fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants