You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2018/12/14 14:24:16 UTC

[GitHub] heiby opened a new issue #1915: toast队列无法清空的问题

heiby opened a new issue #1915: toast队列无法清空的问题
URL: https://github.com/apache/incubator-weex/issues/1915
 
 
   <!--
   Thanks for using Weex. Please follow the [Bug Report Guidelines](http://weex-project.io/bug-report-guidelines.html) to file issues. A good bug report should include the following information:
   -->
   
   <!--
   感谢使用 Weex。请遵照 [Bug 报告指南](http://weex-project.io/cn/bug-report-guidelines.html) 创建 issue,希望你可以提供如下信息:
   -->
   
   ## Description
   
   <!-- The brief description of the potential bug. -->
   
   当weex页面销毁时,如果toast队列不为空,则队列里面的toast无法展示,并且不会被清理,有可能造成下次调用toast时,把旧的toast展示出来。
   
   ## Environment
   
   <!-- The environment to reproduce this bug, such as **Weex Version** and **Device Mode**. -->
   <!-- You can get the environment of your device by [this example](http://dotwe.org/vue/1dea64f527db3fd109c0fb682d41c14f). -->
   
   版本:weex sdk 0.19.0
   
   ## Steps to Reproduce
   
   <!-- Please offer an example on the [online editor of Weex](http://dotwe.org/) to reproduce this bug. -->
   
   在页面中创建多个toast并在toast没展示完时,退出页面。
   
   ## reason
   
   产生此bug的关键代码如下:
   
   当weex页面销毁时,weakself是nil,所以这个递归调用不下去了,无法清除队列数据
   
   ![img](https://user-images.githubusercontent.com/4581299/50008362-e25f5d00-ffee-11e8-8473-f10dd2a233c9.png)
   
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services