Gente, gostaria de reportar um bug o qual percebi e acredito que seja do Ginga-NCL (Virtual STB 0.11.2 rev.23) e não do algoritmo.
Por favor, me corrijam se eu estiver errado.
Num programa NCL quando a midia lua é fechada e ela contém a função event.timer() utilizada da maneira semelhante ao algoritmo abaixo, o programa NCL todo fecha, mesmo se o vídeo ainda não tiver finalizado.
Alguém sabe me informar o porque isso acontece?
---Exibe uma notícia na tela function showItem() ... ... ... if cancelTimerFunc then cancelTimerFunc() --cancela o timer anteriormente criado end cancelTimerFunc = event.timer(8000, autoForward)--essa linha causa o bug end function autoForward() itemIndex = moveItemIndex(itemIndex, true) showItem() end
Autor: Ygor Amaral
33 comentários
(!) [ 1603: 0.000] --> Caught signal 11 (at 0xb2f367a5, invalid address) <--
(!!!) *** WARNING [still objects in 'Window Pool'] *** [object.c:241 in fusion_object_pool_destroy()]
(!!!) *** WARNING [still objects in 'Layer Region Pool'] *** [object.c:241 in fusion_object_pool_destroy()]
(!!!) *** WARNING [still objects in 'Layer Context Pool'] *** [object.c:241 in fusion_object_pool_destroy()]
(!!!) *** WARNING [still objects in 'Surface Pool'] *** [object.c:241 in fusion_object_pool_destroy()]
launcher.sh: line 15: 1549 Abortado /usr/local/sbin/ginga --ncl $1 Grato pela atenção.