Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning message appearing in logs caused by ui::ScrollViewBar::onEnter #18727

Open
rh101 opened this issue Mar 13, 2018 · 0 comments
Open

Warning message appearing in logs caused by ui::ScrollViewBar::onEnter #18727

rh101 opened this issue Mar 13, 2018 · 0 comments
Milestone

Comments

@rh101
Copy link
Contributor

rh101 commented Mar 13, 2018

  • cocos2d-x version: 3.16
  • devices test on: Win32
  • developing environments
    • NDK version:
    • Xcode version:
    • VS version: 2017
    • browser type and version:

Steps to Reproduce:

  1. Add a ui::ScrollView to a scene, push the scene into the stack, then pop it back.

  2. This warning comes up in the logs every time the scene is popped back:

         "warning: don't update it again"
    

It is caused by scheduleUpdate being called from within ui::ScrollViewBar::onEnter(). It's not a big issue, just annoying to see it in the logs, and given that it is in the core cocos2dx code, there is little I can do about it. Is the warning really necessary? schedulePerFrame is already doing the relevant checks, and the warning seems redundant.

Here is a stack trace:


 	libcocos2d.dll!cocos2d::Scheduler::schedulePerFrame(const std::function<void __cdecl(float)> & callback, void * target, int priority, bool paused) Line 476	C++
 	libcocos2d.dll!cocos2d::Scheduler::scheduleUpdate<cocos2d::Node>(cocos2d::Node * target, int priority, bool paused) Line 286	C++
 	libcocos2d.dll!cocos2d::Node::scheduleUpdateWithPriority(int priority) Line 1518	C++
 	libcocos2d.dll!cocos2d::Node::scheduleUpdate() Line 1513	C++
	libcocos2d.dll!cocos2d::ui::ScrollViewBar::onEnter() Line 182	C++
 	libcocos2d.dll!cocos2d::ProtectedNode::onEnter() Line 350	C++
 	libcocos2d.dll!cocos2d::ui::Widget::onEnter() Line 239	C++
 	libcocos2d.dll!cocos2d::ui::Layout::onEnter() Line 104	C++
 	libcocos2d.dll!cocos2d::ui::ScrollView::onEnter() Line 115	C++
 	libcocos2d.dll!cocos2d::Node::onEnter() Line 1313	C++
 	libcocos2d.dll!cocos2d::ProtectedNode::onEnter() Line 349	C++
 	libcocos2d.dll!cocos2d::ui::Widget::onEnter() Line 239	C++
 	libcocos2d.dll!cocos2d::ui::Layout::onEnter() Line 104	C++
 	libcocos2d.dll!cocos2d::Node::onEnter() Line 1313	C++
 	libcocos2d.dll!cocos2d::Node::onEnter() Line 1313	C++
 	libcocos2d.dll!cocos2d::Director::setNextScene() Line 1176	C++
 	libcocos2d.dll!cocos2d::Director::drawScene() Line 291	C++
 	libcocos2d.dll!cocos2d::Director::mainLoop() Line 1446	C++
 	libcocos2d.dll!cocos2d::Application::run() Line 112	C++
@rh101 rh101 changed the title Earning message appearing in logs caused by ui::ScrollViewBar::onEnter Warning message appearing in logs caused by ui::ScrollViewBar::onEnter Mar 13, 2018
@drelaptop drelaptop added this to the 3.18 milestone May 23, 2018
@drelaptop drelaptop modified the milestones: 3.17.1, next Nov 12, 2018
@minggo minggo modified the milestones: 3.17.2, next Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants