dativebase / dative

Dative: software for linguistic fieldwork
http://www.dative.ca
Apache License 2.0
14 stars 5 forks source link

Sometimes the appview div empties #327

Open tlonic opened 3 years ago

tlonic commented 3 years ago

From time to time, when I switch interfaces, the interface is blank. Looking at the source, the appview div has been emptied. I'm on Chrome 87 and Firefox.

This is one way I'm able to replicate this, although I'm not sure if it will work for you.

  1. Open app.dative.ca, already logged into a server
  2. Go to Corpora > Browse
  3. Select a corpus
  4. Go to More Controls
  5. Select Browse Corpus.
  6. Go to Corpora > Browse

For me, this results in an empty appview div.

tlonic commented 3 years ago

The issue comes from an infinite loop which is triggered at line 676 of app.coffee: https://github.com/dativebase/dative/blob/9e59ebd7aca6020559cf0291b35c57be67adc389/app/scripts/views/app.coffee#L674-L677

@visibleView.setElement $appView never ends, so render never runs, leaving the appView empty.