You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a ui::ScrollView to a scene, push the scene into the stack, then pop it back.
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++
The text was updated successfully, but these errors were encountered:
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
Steps to Reproduce:
Add a ui::ScrollView to a scene, push the scene into the stack, then pop it back.
This warning comes up in the logs every time the scene is popped back:
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:
The text was updated successfully, but these errors were encountered: