Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ng-messages eats all memory and crashes after removeMessageNode call #13627

Closed
olegccc opened this issue Dec 24, 2015 · 12 comments
Closed

ng-messages eats all memory and crashes after removeMessageNode call #13627

olegccc opened this issue Dec 24, 2015 · 12 comments

Comments

@olegccc
Copy link

olegccc commented Dec 24, 2015

Hi,

Please see the attached picture. Immediately after current line is invoked two elements in the message list start to link to each other which results in that the page eats all available memory and crashes in 5 seconds.

Probably the reason is that the node tree is as is:

<ng-messages><ng-transclude><ng-message/><ng-message/></ng-transclude></ng-messages>

Version: 1.4.8

ngmessages-error

@olegccc
Copy link
Author

olegccc commented Dec 24, 2015

UPD: not 'propably' but 'definitely'. After removing ng-transclude sublevel, the error is gone. Anyway it is something which should never happen.

@Narretz
Copy link
Contributor

Narretz commented Dec 31, 2015

Can you please create a minimal demo that reproduces the problem?

@Narretz
Copy link
Contributor

Narretz commented Jan 11, 2016

Closing due to lack of feedback and minimal demo.

@Narretz Narretz closed this as completed Jan 11, 2016
@colinfindlay-nz
Copy link

I can confirm I'm also seeing something very similar - but I can't pin down why it's happening. I've attempted a minimal demo, but without knowing the specific combination of factors, it's like looking for a needle in a haystack. I do however have a production website exhibiting this behaviour I can point a someone to for easy replication!

@gkalpak
Copy link
Member

gkalpak commented Apr 13, 2016

This sounds pretty much like the bug that was fixed in #14242.
@silver2k or @olegccc, could you confirm that the problem is gone using the latest code from master (e.g. from https://code.angularjs.org/snapshot/angular-messages.js) ?

@gkalpak gkalpak reopened this Apr 13, 2016
@gkalpak gkalpak self-assigned this Apr 13, 2016
@Narretz
Copy link
Contributor

Narretz commented Apr 13, 2016

The fix is not yet in a 1.4 release, though.

@colinfindlay-nz
Copy link

Exactly - upgrading to 1.5 and confirming the bug is gone probably isn't a great test. Is there a chance of backporting the fix to 1.4? Crashing the browser seems pretty significant.

@gkalpak
Copy link
Member

gkalpak commented Apr 14, 2016

@silver2k, it has been backported to the v1.4.x branch, so it will be included in the upcoming 1.4.11 release. Stay tuned 😃

@gkalpak gkalpak closed this as completed Apr 14, 2016
@gkalpak gkalpak reopened this Apr 14, 2016
@Narretz
Copy link
Contributor

Narretz commented Jun 2, 2016

1.4.11 is available!

@Narretz Narretz closed this as completed Jun 2, 2016
@gkalpak
Copy link
Member

gkalpak commented Jun 3, 2016

v1.4.11 is out 😃

@sswayney
Copy link

sswayney commented May 10, 2017

Just in case it helps anyone else. I had some sort of issue with ng-messages and out of memory errors in firefox and chrome. I watched using the firefox profiler and came to the realization it had something to do with ng-messages. I was using angular and angular-messages 1.4.9 and moved to 1.4.11 and the issue was gone.

@gkalpak
Copy link
Member

gkalpak commented May 11, 2017

Thx for confirming, @sswayney.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants