FLUID-6411: Corruption when cleaning up listeners registered to resource-based models

Metadata

Source
FLUID-6411
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Antranig Basman
Reporter
Antranig Basman
Created
2019-10-09T08:52:35.469-0400
Updated
2024-07-22T10:35:03.192-0400
Versions
N/A
Fixed Versions
  1. 4.0
Component
  1. IoC System

Description

This only affects the work in progress FLUID-6148 branch. This was reported by @@Tony Atkins [RtF] as part of https://github.com/GPII/gpii-handlebars/pull/30 . A fairly self-contained test is available at https://github.com/GPII/gpii-handlebars/blob/eb3fdedbf59c6e7765f187bf40b9e9c79a63ac2a/tests/js/server/listener-problem-tests.js
The error is fired during destruction of the createOnEvent resourceLoader component on its 2nd creation as the framework attempts to clean up its model listener.

Comments

  • Tony Atkins [RtF] commented 2019-10-09T10:27:41.882-0400

    @@Antranig Basman, I believe it also happens at the end of a `fluid.test.runTests` run, even single test runs with this kind of component would run all tests, but never exit, both in the browser, and in Node.js.