Opened 14 years ago

Closed 14 years ago

#499 closed defect (fixed)

Event flushing sometimes is breaking

Reported by: reg@… Owned by: gogo
Priority: normal Milestone:
Component: Xinha Core Version:
Severity: major Keywords: IE fushing events
Cc:

Description

After using CharacterMap? (popup) to insert a character adn then submitting the page, I get an error:

Line 4365
Error: the callee (server [not server application]) is not avbailable and disappeared; all connections are invalid. The call did not execute.

I couldn't find a reference this in existing Tickets, but if this is a duplicate and I have overlooked something I should have done, I apologize

Attachments (1)

crash_debug.jpg (218.1 KB) - added by anonymous 14 years ago.
screenshot of crash in debugger

Download all attachments as: .zip

Change History (7)

comment:1 Changed 14 years ago by mokhet

  • Component changed from Plugin_CharacterMap to Xinha Core
  • Keywords IE fushing events added
  • Summary changed from Submiting after inserting from CharacterMap to Event flushing sometimes is breaking

I also got this error sometimes reported, not specifically with CharacterMap? and not related to the form submit.

It is located somewhere in the flushEvents() for Internet Explorer. Sometimes, the flushing seems extremely long and this error occurs in line 4365.

else if (e.length == 2)
{
  e[0]['on' + e[1]] = null; // BUG OCCURS HERE line #4365
  e[0]._xinha_dom0Events[e[1]] = null;
  x++;
}
  • test case

1) go to full_example.html
2) select only the plugin InsertAnchor? (to let everyone see it's not CharacterMap? related :p
3) "click to show exemple"
4) select some text
5) add an anchor on the selection
6) right click on the example body and refresh the page
7) the bug occurs line 4365

I dont know much how to debug so far in the code with Internet Explorer. Using the very basic IE javascript debugger, here are the few infos i manage to obtain

alert(typeof e + ' - ' + typeof e[0] + ' - ' + typeof e[1]);
alertbox is showing : objet - objet - string

alert(e[0] + ' - ' + e[1]);
alertbox is showing : undefinedkeypress

Seems like e[0] is not existing anymore

comment:2 Changed 14 years ago by xinha.20.artus83@…

I think it is the same problem, as the one, I mentioned in the comments to Ticket #495. The patch I posted there seems to avoid the error message, though it's not quite the most elegant solution...

comment:3 Changed 14 years ago by mharrisonline

I always got this error when I closed XINHA's browser window, so I commented out the onunload event that calls the memory flush function. It is at the bottom of htmlarea.js. Now, I never see the error, whereas before I saw it all the time, if I didn't submit what was in the editor.

Changed 14 years ago by anonymous

screenshot of crash in debugger

comment:4 Changed 14 years ago by anonymous

  • Severity changed from normal to major

I frequently get the same crash in IE. Please see attachement (screenshot of debugger).

comment:5 Changed 14 years ago by benDOTsimkinsATintsoftDOTch

Further information for anyone wishing to correct/workaround:
I got this error even when using the 'Cancel' button (not just the windows X button) for the new table and table properties plugins (didn't try any others).

To work around this, I put the offending lines in a try{}catch(e){} block (and also in the HTMLArea.free definition) - which I think is horrible, but as I'm supposed to be deploying soon...

comment:6 Changed 14 years ago by gogo

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.