Closed Bug 1238258 Opened 8 years ago Closed 2 years ago

linux version has ajax problems when the cycles required many seconds or minutes

Categories

(Core :: Networking: File, defect, P3)

43 Branch
x86_64
Linux
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: msecco, Unassigned)

Details

(Keywords: 64bit, Whiteboard: [necko-backlog])

Attachments

(1 file)

Attached image 44.png
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0
Build ID: 20160107040617

Steps to reproduce:

Hi
this problem happen only on the linux version, I've tested the same results on windows 10 with the same version of Firefox and all is ok.
This error appears on the last Firefox's versions but I don't know the right one.
for the ajax requests normally is used jquery 1.11
I'm using archlinux and the current version of firefox is 43.0.4
the problem happen when there are some loops to do using ajax requests and when each cycle need more than 10/20 seconds sometimes at the second or third cycle but it is randomly
you can reproduce this issue installing Prestashop CMS when the step is on the installation of the database I get this error, it happens on other cases but in this test every time I get this error.


Actual results:

Looking with firebugs I can see from the NET tab that there is an "aborted" error in the http status, instead in the console log I can see any type of errors.
This is not a problema of timeout, to be sure I've removed the .mozilla folder from the home folder of my account to use a clean version of firefox but I get the same result


Expected results:

all ajax cycles should be complete correctly
Severity: normal → major
Component: Untriaged → General
Keywords: 64bit
OS: Unspecified → Linux
Priority: -- → P1
Hardware: Unspecified → x86_64
Component: General → Untriaged
Priority: P1 → --
Product: Firefox → Core
Hi reporter,

Can you please provide a simpler test case so I can test this on my end? I'm unable to install and test using Prestashop CMS, because I don't have a host server or a domain. A link to where this is reproducible, or your AJAX scripts along with the rest of the necessarily files to test this would be very helpful.

Also, please try to reproduce this on the latest Nightly(46.0a1) and provide the results. When doing this, please try to reproduce with a new clean Firefox profile, maybe even in safe mode, as some of this issues may be caused by third party installed add-ons or custom settings(https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems).

Thanks,
Paul.
Flags: needinfo?(msecco)
Hi Paul
the test with default settings and without any extra plugin is already done like I've said
I've removed the .mozilla folder from the home folder of my account
I've tried two new tests from the same firefox's version but fresh and from a clean archlinux but on my mackbook and I get the same ajax error
I've done a test using firefox-nightly using this version but I get the same error
https://aur.archlinux.org/packages/firefox-nightly/



	$("#imageOptimization").on('click', function(event) {
		event.preventDefault();
		
			if (confirm(confirm_1)) {
				$('#mao_ajax_running').css('display', 'block');
				$('#mao_ajax_progress').css('display', 'block');
				
				var ajax_call = 0;
				var optimizeImage = function() {
					var requestImageOptimization = $.ajax({
						type: 'POST',
						headers: { "cache-control": "no-cache" },
						url: mao_ajax_url,
						async: true,
						cache: false,
						dataType: 'json',
						data: {action: 'MaoImageOptimization', ajax: true, ajaxCall: ++ajax_call}
					});
					
					requestImageOptimization.done(function(data){
						$('#mao_ajax_progress div').text(data.percentage + '% "' + data.imagetype + '"');
						$('#mao_ajax_progress div').css('width', data.percentage + '%');
						$('#mao_ajax_progress div').attr('aria-valuenow', data.percentage);
						console.log(data.prova3);
						console.log(data.prova4);
						if (parseInt(data.cycles_done) == 1 || data.error) {
							$('#last_cycle_done').val(1);
							
							setTimeout(function() {$("#submit_final_step").click();}, 1000);
						}
						else {
							optimizeImage();
						}
					});
					
					requestImageOptimization.fail(function(jqXHR, textStatus, errorThrown) {
						console.log(jqXHR.status);
						console.log(jqXHR.statusText);
						console.log(jqXHR.responseText);
						console.log("Request Failed: " + textStatus + ", " + errorThrown);
						
						$('#last_cycle_done').val(1);
						$('#last_cycle_error').val(1);
						
						setTimeout(function() {$("#submit_final_step").click();}, 500);
					});
				};
				
				optimizeImage();
			}
		
		return false;
	});


I sent you an email with some info to try a test on a site using my module

thanks
bye
Flags: needinfo?(msecco)
I haven't managed to reproduce this issue on the latest release(43.0.4) nor on the latest Nightly(46.0a1). The issue is about an AJAX optimization tool for images that throws an error. The reporter sent me private email with credentials in order to log on into his server. I was not able to reproduce this on any OS. The reporter says its reproducible only on Linux, but only from his local network. If he tried to connect to his server from an external network, this bug does not occur. This explains why I was not able to reproduce the bug on my end. He mentioned that he has static IP inside his network and this may be the cause of the problem. Other browsers work as expected both from inside and outside of the local network, the error only occurs on both latest Firefox release version(43.0.4) and on latest Nightly(46.0a1).

Considering this, I will mark this issue as New and assign the appropriate component.
If anyone considers that the component is not the right one, please change it to a more appropriate one.
Status: UNCONFIRMED → NEW
Component: Untriaged → Networking: File
Ever confirmed: true
This is most probably dup of bug 1235509 or bug 1234548.

You can change pref network.notify.changed to false and see if it is working. This should fix the problem.


Can you try the latest nightly (both patches should be in)?
I would appreciate if you could try the latest nightly so that we are sure that we have fix this in ff46 (on ff44 and 45 this feature will be turned off).
Flags: needinfo?(msecco)
Hi Dragana
I confirm
the problem is due from that option on true
if I set it to false all is ok. I've done some tests
I've tested it on 43.0.4, some days ago with firefox-nightly I got the same error so changing that option it should be ok too.
the strange thing is that on the windows version that setting is set on true but I don't get this problem.

thanks a lot
Flags: needinfo?(msecco)
(In reply to maofree from comment #5)
> Hi Dragana
> I confirm
> the problem is due from that option on true
> if I set it to false all is ok. I've done some tests
> I've tested it on 43.0.4, some days ago with firefox-nightly I got the same
> error so changing that option it should be ok too.
> the strange thing is that on the windows version that setting is set on true
> but I don't get this problem.
> 
> thanks a lot

The problem is that we detect some route and ip address change events like network change event, we are detecting it falsely like network change event. On Windows it is done in different way, because this function is specific for each os.

We are turning the pref to false on ff44 and 45 and we have a fix for the problem on Nightly.

Can you try with newest Nightly?
Hi
yes I'll do it after and then I'll report here the result

thanks

bye
Hi
I've installed the new firefox-nightly on xubuntu, but I can't do a test because I can't see the login form of the admin prestashop CMS and I can go inside of my module to do a test

on the previous nightly version I saw it
I've tried on another admin page and I can't see it too

sorry I've found a new bug
(In reply to maofree from comment #8)
> Hi
> I've installed the new firefox-nightly on xubuntu, but I can't do a test
> because I can't see the login form of the admin prestashop CMS and I can go
> inside of my module to do a test
> 
> on the previous nightly version I saw it
> I've tried on another admin page and I can't see it too
> 
> sorry I've found a new bug

Which url is it. I found this:
http://doc.prestashop.com/login.action?os_destination=%2Fdisplay%2FPS16%2FCMS%2B-%2BManaging%2BStatic%2BContent

but this one is working for me on ubuntu.
Hi
no that one is not the login used for the websites made with prestashop
look at here
http://www.posatevalsodo.it/vendita-online/mao22

I've checked it again with the same missing of the login form
under the image should be present
using the developer toolkit I can see the form with its input fields but the div is hidden
it happens on xubuntu 15.10 using the last firefox-nightly version

bye
Whiteboard: [necko-backlog]
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P1
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: P1 → P3
QA Whiteboard: qa-not-actionable

In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.

Severity: major → --

Given the age of this bug and comment 4 I think we can probably close it.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: