dmix icon indicating copy to clipboard operation
dmix copied to clipboard

Connection UI problems

Open hurzl opened this issue 9 years ago • 19 comments

I switch WLAN off and on (I go out and come back) and get the dialog "connect failed: ENETUNREACH (Network is unreachable)." I can't get past this dialog no matter what I do other than kill the program completely.

hurzl avatar Sep 21 '15 13:09 hurzl

Investigating on connection problems I noticed that if you lock the phone/tablet, after resuming it you get connection error even if you quit and restart the app; but, if you open another app that uses wifi, download some data, and then switch back to mpdroid the error vanishes. So it could be caused by a wrong managment of connectivity change when android suspends an then resumes from powersave. I'm not android expert nor I have knowledge of mpdroid code but googling I found this article http://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html supporting my thesis on how tricky could be handling this aspect.... maybe I'm wrong.. only hoping to give some useful clues. :-)

dav01it avatar Nov 30 '15 22:11 dav01it

I can't confirm this, downloading sth. via another app doesn't help.

But if restart the mpd server MPDroid has no problem reconnecting (without interrupting wifi of course).

hurzl avatar Dec 01 '15 11:12 hurzl

Perhaps we can try to play with some mpd server config options such as "connection_timeout ... (look at the man page "http://linux.die.net/man/5/mpd.conf" ) or "max_connections " I'll try too and I'll write here the results.

dav01it avatar Dec 01 '15 11:12 dav01it

Usually this happens when mpdroid bugs out and maxes out mpd's connections. This got insanely better in the betas though

Le 1 déc. 2015 à 12:52, dav01it [email protected] a écrit :

Perhaps we can try to play with some mpd server config options such as "connection_timeout ... (look at the man page "http://linux.die.net/man/5/mpd.conf" ) or "max_connections " I'll try too and I'll write here the results.

— Reply to this email directly or view it on GitHub.

abarisain avatar Dec 01 '15 12:12 abarisain

@hurzl please try again in this way because for me works every time: start some music in mpd. Lock phone for.. lets say a minute. Re enable phone, you get network error. Switch to chrome or other browser open a link and FORCE PAGE RELOAD, now switch back to mpd .. should work. Thanks for trying.

dav01it avatar Dec 13 '15 10:12 dav01it

No sorry it doesn't help. (What do you mean by "lock phone"? I mean wifi lost or switched off) The error I get is "socket failed: errno 64 (Machine is not on the network)" Anyway it wouldn't be a solution having to switch to a browser and download something.

hurzl avatar Dec 13 '15 11:12 hurzl

@hurzl I get "no response from server" when reactivating after the phone goes in standby ( in stand by when you activate it again i have a lock screen). I never got errno 64 before. I found another way that works for me without switching: in settings->connection ignore the "default" and use the "Wlan based connection settyings" and in the "host" and "streaming host" fields put the server's network hostname NOT THE IP. I think you must have samba installed and active in the server in order to operate this way.

dav01it avatar Dec 13 '15 20:12 dav01it

If I use the name of my samba server (I don't want to depend on samba anyway) it connects, but after wifi was gone I get "No address associated with hostname" and I have to kill it just the same. In that state even entering the ip number doesn't solve it.

hurzl avatar Dec 13 '15 21:12 hurzl

In my case setting samba name both in HOST and also STREAMING HOSTI get error after wifi on off but i do not need to kill retry usually works and in the worst case i solve with quit and reopen. My version 1.07.2

dav01it avatar Dec 14 '15 14:12 dav01it

Is a trick possible in android to make the app crash so that it really quits if I want?

hurzl avatar Dec 14 '15 18:12 hurzl

System.exit(0) iirc.

Or throw a new runtime exception ¯(ツ)/¯

Le 14 déc. 2015 à 19:15, hurzl [email protected] a écrit :

Is a trick possible in android to make the app crash so that it really quits if I want?

— Reply to this email directly or view it on GitHub.

abarisain avatar Dec 14 '15 18:12 abarisain

I thought exiting was somehow forbidden nowadays, but that works :)

hurzl avatar Dec 14 '15 18:12 hurzl

you do not need to kill app if you go to home screen or any other app before the phone goes to powersave mode.

dav01it avatar Dec 16 '15 07:12 dav01it

I have no problem reconnecting after suspend

hurzl avatar Dec 16 '15 09:12 hurzl

try if you reconnect after changing wifi no?

Il 16/12/2015 10:32, hurzl ha scritto:

I have no problem reconnecting after suspend

— Reply to this email directly or view it on GitHub https://github.com/abarisain/dmix/issues/763#issuecomment-165046115.

dav01it avatar Dec 16 '15 09:12 dav01it

Note that hurzl running a bleeding edge version might change his experience compared to yours

abarisain avatar Dec 16 '15 10:12 abarisain

ah ok thanks clarifying!

Il 16/12/2015 11:23, Arnaud Barisain-Monrose ha scritto:

Note that hurzl running a bleeding edge version might change his experience compared to yours

— Reply to this email directly or view it on GitHub https://github.com/abarisain/dmix/issues/763#issuecomment-165058011.

dav01it avatar Dec 16 '15 10:12 dav01it

It seems this whole problem doesn't exist on Android 4.4 - ?

hurzl avatar Dec 23 '15 14:12 hurzl

When will you publish a new version where this fix/commits are included?

fin0 avatar Oct 29 '16 12:10 fin0