Robyer / foo-httpcontrol

Automatically exported from code.google.com/p/foo-httpcontrol
2 stars 2 forks source link

ajquery does not refresh properly in Firefox using Wi-Fi #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Starting ajquery on remote
2.Sometimes the page loads properly, more often I get random parts of what it 
is supposed to look like.
3.

What is the expected output? What do you see instead?
Random versions of some information. Different every time. 
The default template works perfectly.

What version of the product are you using? On what operating system?
ajquery0.64
foo_httpcontrol 0.97
Firefox 3.6.10

Please provide any additional information below.

Original issue reported on code.google.com by dbarr...@gmail.com on 8 Oct 2010 at 12:48

GoogleCodeExporter commented 9 years ago
OS version?
what type of connection do you use, localhost/LAN/internet?
do you have any kind of intermediate HTTP proxies? 
also make sure component version is 0.97 by checking fb2k components list in 
preferences.

you can try disabling network.http.keep-alive in firefox about:config. although 
it works perfectly on my test 3.6.10 without any additional hassle.

Original comment by oblikoamorale@gmail.com on 8 Oct 2010 at 3:28

GoogleCodeExporter commented 9 years ago
The host is running Windows XP SP3. The remote is running Windows 7 64 bit. 
Connecting via LAN to http://192.168.0.31:8888/ajquery/index.html on Firefox 
3.6.10.

Original comment by dbarr...@gmail.com on 8 Oct 2010 at 3:43

GoogleCodeExporter commented 9 years ago
disabling network.http.keep-alive made no difference. I did notice the 
following (it was in very small text, so I didn't see it before):

An AJAX error occured.

Possible reasons:

    * JSON parser got stuck on erroneous data;
    * borken connection;
    * god knows what else.

Restart template or think of something else.

Original comment by dbarr...@gmail.com on 8 Oct 2010 at 3:55

GoogleCodeExporter commented 9 years ago
copy&paste whole contents of this error message text here, if any

Original comment by oblikoamorale@gmail.com on 8 Oct 2010 at 4:01

GoogleCodeExporter commented 9 years ago
paste list of your firefox addons as well

Original comment by oblikoamorale@gmail.com on 8 Oct 2010 at 4:26

GoogleCodeExporter commented 9 years ago
That's the only error that shows up. There is nothing more in the console.

Original comment by dbarr...@gmail.com on 8 Oct 2010 at 4:47

GoogleCodeExporter commented 9 years ago
Firefox add-ons:

Adobe Contribute Toolbar 6.0
Adobe DLM 1.6.2.87
DOM Inspector 2.0.8
Firebug 1.5.4
Java Console 6.0.21
Jeteye 1.8.20090402101040
RealPlayer Browser Record Plugin 1.1.5
Web Developer 1.1.8

Original comment by dbarr...@gmail.com on 8 Oct 2010 at 4:51

GoogleCodeExporter commented 9 years ago
really weird. I'm trying to reproduce the problem using XPSP3 with newly 
installed firefox 3.6.10 to access remote machine, w7 x64 running fb2k 1.1 with 
foo_httpcontrol 0.97, via internet. and it loads ok, no matter how violent I 
abuse F5 key.
can you try a clean separate firefox install on the same or other PC?

Original comment by oblikoamorale@gmail.com on 8 Oct 2010 at 8:54

GoogleCodeExporter commented 9 years ago
also, show your preferences page of the component, perhaps something there is 
guilty

Original comment by oblikoamorale@gmail.com on 8 Oct 2010 at 9:02

GoogleCodeExporter commented 9 years ago
I ran a different setup with my notebook computer (Win 7 64) running as the 
host/server and another box running XP SP3 as the remote. I think you may have 
transposed my terminology. I call the box running Foobar the host and the other 
computer accessing Foobar remotely the remote. Anyway, with this setup it works 
perfectly. Another factor may be that the original setup (the one with the 
problem) had the output going to ASIO support 1.2.7. To be clear Foobar and 
foo_httpcontrol 0.97 are running on the XP SP3 box. The Win 7 64 notebook is 
logging into that over a LAN.

Original comment by dbarr...@gmail.com on 8 Oct 2010 at 4:13

GoogleCodeExporter commented 9 years ago
ah, indeed, not much attention from my side. okay, I'll try to reverse my test 
combo tomorrow.

Original comment by oblikoamorale@gmail.com on 8 Oct 2010 at 4:19

GoogleCodeExporter commented 9 years ago
Thanks. I have another system that has the XP SP3 host, with this same Win 7 64 
notebook as the remote. I am using this other setup at a show later. I will 
test with that. I think I was getting the same error.inconsistent behavior on 
that system last time. These are all computer-based live sound mixing rigs that 
replace a traditional mixer with a computer running Software Audio Console. I 
have added Foobar/foo_httpcontrol as a way of playing break music through the 
system. This other system is almost identical to the one with the issues here, 
so it is probably either related to the ASIO support driver or something with 
XP SP3. Those are the two common denominators. I should be able to eliminate 
ASIO by switching the output to the standard onboard soundcard (even though I 
don't use that). I can also reverse the host/remote relationship, once both 
computers are setup on the WiFi LAN this sytem operates on.

Original comment by dbarr...@gmail.com on 8 Oct 2010 at 4:34

GoogleCodeExporter commented 9 years ago
really interesting! the thing is that stuff like ASIO do not have direct 
influence on networking part of the component. 
the problem you are experiencing is similar to what I had several versions ago. 
firefox assumed it can do KeepAlive connection when remote serves don't 
explicitly disable it via certain HTTP response headers. network library I'm 
based on doesn't support KeepAlive and I can't be bothered to rewrite it. 
anyways, sending proper response solved the issue then and it didn't appear 
since. but as you say disabling keepalive in firefox config doesn't help, it 
must be something else. and I'm unaware of what it is.

Original comment by oblikoamorale@gmail.com on 8 Oct 2010 at 5:13

GoogleCodeExporter commented 9 years ago
I unchecked "HTTP compression", "retrieve embedded album art" and now it works 
perfectly. I didn't have time to isolate which one was causing the problem. I 
don't really care at this point, but I will go back and find out when I have 
time. Thanks for all your help. I'm not sure what HTTP compression does. Maybe 
that slows down or confuses the connection enough to cause the error. Maybe the 
embedded album art chokes on some glitched file in the massive music directory 
I have. If so, Im not sure how I would find out which file it is. Nothing 
seemed to show up in the log.

Anyway, thanks.

Original comment by dbarr...@gmail.com on 9 Oct 2010 at 2:51

GoogleCodeExporter commented 9 years ago
I must add I tried to reproduce this once again, using XP as server and W7 as 
client connected via ethernet inet, and still had no luck. 
HTTP compression is just a basic implementation of gzipping outgoing content. 
not sure how it can lead to such disaster tbh.
perhaps wi-fi has something to do with this unexplainable weirdness. I'll test 
wireless connection when I have required hardware.

Original comment by oblikoamorale@gmail.com on 9 Oct 2010 at 4:07

GoogleCodeExporter commented 9 years ago
What about files within the music directory? If there was something wacky with 
one or more of the FLAC, mp3 or artwork files, would that cause the client to 
have trouble? Also, is there a way to show the console output on the client 
screen for ajquery?

Original comment by dbarr...@gmail.com on 11 Oct 2010 at 6:54

GoogleCodeExporter commented 9 years ago
well, there is a probability that JSON parser chokes on invalid data, but we 
should see a properly formatted error window containing wrong data dump in this 
case. not sure how artwork could cause this, as it loads only on demand.
let's do this: enable logging in component preferences and paste log of 
unsuccesful ajquery load.

Original comment by oblikoamorale@gmail.com on 12 Oct 2010 at 3:12

GoogleCodeExporter commented 9 years ago
I got this error a bunch of times in the console log:

[00:01:01] foo_httpcontrol: error loading C:\Program 
Files\foobar2000\components\foo_httpcontrol_data\favicon.ico\config

That obviously isn't a real directory. It looks like it gets confused and 
appends those two segments together.

Original comment by dbarr...@gmail.com on 13 Oct 2010 at 9:31

GoogleCodeExporter commented 9 years ago
it's no big deal, don't pay attention. browser tries to load favicon, and 
component checks whether this request is a try to load a different template.

I asked you to check access log to see which request is last when page fails to 
load. maybe there is some system in there. you need enable logging in 
preferences to get full log.

Original comment by oblikoamorale@gmail.com on 14 Oct 2010 at 3:11

GoogleCodeExporter commented 9 years ago
Thanks. I'll try that.

Original comment by dbarr...@gmail.com on 14 Oct 2010 at 3:37

GoogleCodeExporter commented 9 years ago
I have attached a segment from the log. During the time period covered in the 
log, the remote (192.168.0.63) did have problems refreshing correctly.

Original comment by dbarr...@gmail.com on 14 Oct 2010 at 4:17

Attachments:

GoogleCodeExporter commented 9 years ago
Another thing that happens on the remote, is that the time remaining progress 
bar will stop at -0:01, even though the actual playback keeps going on to other 
songs. Refreshing a few times corrects this. Also, if the file browsing screen 
is open, the file list may not display. It will display for a fraction of a 
second just before refreshing, but then is blank again.

Original comment by dbarr...@gmail.com on 14 Oct 2010 at 5:57

GoogleCodeExporter commented 9 years ago
this is due to failed requests sent by browser to component.

by the way, is your wi-fi network stable enough? do you see any timeouts 
running following command?

ping -t -l 65500 192.168.0.1

Original comment by oblikoamorale@gmail.com on 14 Oct 2010 at 7:41

GoogleCodeExporter commented 9 years ago
There are no timeouts with the ping. I can even have it pinging without 
timeouts while the browser is not refreshing correctly. Is there something to 
look for that would cause the failed browser requests? 

Original comment by dbarr...@gmail.com on 14 Oct 2010 at 10:34

GoogleCodeExporter commented 9 years ago
I admit I ran out of ideas. perhaps you can try to install a separate clean 
firefox and see whether the problem persists?
by the way, firebug has neat network statistics, maybe looking at combined Net 
loading graph can be useful: http://getfirebug.com/network

Original comment by oblikoamorale@gmail.com on 16 Oct 2010 at 5:14

GoogleCodeExporter commented 9 years ago
It seems to only occur over WiFi. Do you have any suggestions for tightening up 
how that works over WiFi? I'm not using encryption, but I do have my router 
setup to filter MAC addresses. I don't seem to have any problems with anything 
else over WiFi.

Original comment by dbarr...@gmail.com on 18 Oct 2010 at 3:33

GoogleCodeExporter commented 9 years ago
not sure how to debug the problem without having actual wi-fi equipment on my 
hand. I'll have the opportunity to test it in november, I think. sorry until 
then.

Original comment by oblikoamorale@gmail.com on 18 Oct 2010 at 3:50

GoogleCodeExporter commented 9 years ago
I'm not sure what I did, but everything seems to work correctly every time now. 
I had upgraded Firefox to 3.6.11. Also, I sometimes have ZoneAlarm running, 
sometimes not. Ajquery runs fine with ZoneAlarm running, but it may be that 
Windows firewall started on its own, when ZoneAlarm wasn't running and my have 
been partially blocking the traffic from ajquery. 

I think it must be due to having ZoneAlarm running correctly. I just tried it 
with IE* and it works corectly there, too. It was previously exhibiting the 
same behavior as in Firefox, so the Firefox update wouldn't have fixed anything 
in IE8.

Original comment by dbarr...@gmail.com on 25 Oct 2010 at 2:01

GoogleCodeExporter commented 9 years ago
weird - what else can I say. still have no slightest clue what was going on.

Original comment by oblikoamorale@gmail.com on 25 Oct 2010 at 8:22

GoogleCodeExporter commented 9 years ago
It works perfectly when Zone Alarm is running. When I shut off Zone Alarm it 
starts responding erratically again. It makes no sense to me.

Original comment by dbarr...@gmail.com on 27 Oct 2010 at 12:20

GoogleCodeExporter commented 9 years ago
what zonealarm version are you running? I may install it to check when I have 
time

Original comment by oblikoamorale@gmail.com on 27 Oct 2010 at 2:50

GoogleCodeExporter commented 9 years ago
Sorry for the long delay in responding. I have the latest version of ZoneAlarm. 
Several versions back of ZoneAlarm, I could create hardware profiles that 
didn't load the ZoneAlarm service, TrueVector (this was on Windows XP. Windows 
7 doesn't have hardware profiles (I wish they would add them back in), so the 
TrueVector service is running no matter what. The current versions of ZoneAlarm 
install the TrueVector service, so that it runs no matter what, even if you 
have hardware profiles (on XP) that don't run it. Anyway, it looks as if 
shutting off ZoneAlarm helps some programs that communicate and hurts others. 
Foo_http control with aquery seems to run better with ZoneAlarm running, 
although I sometimes get glitching with my audio playback with ZoneAlarm 
running. It seems to interfere with foobar, itself. Shutting off ZoneAlarm 
still leaves the TrueVector service running, which can't be shut off. The 
TrueVector service seems to still be "protecting" the computer from certain 
network traffic, even when ZoneAlarm is shut down.

In my current opinion, ZoneAlarm, itself has eveloved into a malevolent 
trojan/malware entity that interferes with multiple processes I would like to 
have running as part of my audio setup. Any query or explanation I try to  post 
to the moderated ZoneAlarm forum is censored. My previous questions to that 
forum were interpreted by the moderator as attempts to hack or disable the 
omnipotent ZoneAlarm protection, that, in ther opinion, needs to be running all 
the time, no matter what. I tried to explain that in some instances my computer 
would not be connected to the internet, only to a private network that runs my 
audio mixing application and foobar as music playback. This was interpreted as 
a ruse to circumvent the all-important ZoneAlarm "protection" and censored from 
the forum.

Perhaps I can find a firewall that functions similar to ZoneAlarm (that also 
protects against unwanted outbound traffic), but that can be completely shut 
down, with no hidden services running, so my audio setup can run cleanly. I 
hope this makes some sense. Also, ZoneAlarm was apparently responsible for my 
iPhone losing all it's stored data, because ZoneAlarm "protects" against some 
iTunes traffic, thus not allowing the phone to update properly and forcing a 
restore.

Original comment by dbarr...@gmail.com on 18 Mar 2011 at 4:23