liuzhe02 / bigbluebutton

Automatically exported from code.google.com/p/bigbluebutton
0 stars 0 forks source link

Flash Exception on new user joining while presentation is loading #1653

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Join on one browser and load a multiple page presentation.
2. Draw some shapes on the whiteboard.
3. Have another user join on another browser with Flash Debug Player.
4. While the client is loading, have the presenter switch pages on the 
presentation.

What is the expected output? What do you see instead?
There shouldn't be any Flash Exception. Exceptions occur because of a race 
condition where data from the server hasn't arrived yet for the new user and 
events are being triggered by the presenter.

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
    at org.bigbluebutton.modules.whiteboard.models::Presentation/getAnnotation()[/home/firstuser/dev/bigbluebutton/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/models/Presentation.as:44]
    at org.bigbluebutton.modules.whiteboard.models::WhiteboardModel/getAnnotation()[/home/firstuser/dev/bigbluebutton/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/models/WhiteboardModel.as:74]
    at org.bigbluebutton.modules.whiteboard::WhiteboardCanvasDisplayModel/redrawGraphic()[/home/firstuser/dev/bigbluebutton/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/WhiteboardCanvasDisplayModel.as:420]
    at org.bigbluebutton.modules.whiteboard::WhiteboardCanvasDisplayModel/zoomCanvas()[/home/firstuser/dev/bigbluebutton/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/WhiteboardCanvasDisplayModel.as:391]
    at org.bigbluebutton.modules.whiteboard.views::WhiteboardCanvas/zoomCanvas()[/home/firstuser/dev/bigbluebutton/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/views/WhiteboardCanvas.mxml:285]
    at org.bigbluebutton.modules.present.ui.views::SlideView/zoomCanvas()[/home/firstuser/dev/bigbluebutton/bigbluebutton-client/src/org/bigbluebutton/modules/present/ui/views/SlideView.mxml:474]
    at org.bigbluebutton.modules.present.ui.views::SlideView/fitSlideToLoader()[/home/firstuser/dev/bigbluebutton/bigbluebutton-client/src/org/bigbluebutton/modules/present/ui/views/SlideView.mxml:218]
    at org.bigbluebutton.modules.present.ui.views::SlideView/handleMoveEvent()[/home/firstuser/dev/bigbluebutton/bigbluebutton-client/src/org/bigbluebutton/modules/present/ui/views/SlideView.mxml:304]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:13128]
    at com.asfusion.mate.core::GlobalDispatcher/dispatchEvent()[/Users/nahuel/Documents/Flex Builder 3/MateDevelopment/src/com/asfusion/mate/core/GlobalDispatcher.as:110]
    at com.asfusion.mate.events::Dispatcher/dispatchEvent()[/Users/nahuel/Documents/Flex Builder 3/MateDevelopment/src/com/asfusion/mate/events/Dispatcher.as:240]
    at org.bigbluebutton.modules.present.business::PresentSOService/moveCallback()[/home/firstuser/dev/bigbluebutton/bigbluebutton-client/src/org/bigbluebutton/modules/present/business/PresentSOService.as:259]

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
    at org.bigbluebutton.modules.present.ui.views::PresentationWindow/validPageNumber()[/home/firstuser/dev/bigbluebutton/bigbluebutton-client/src/org/bigbluebutton/modules/present/ui/views/PresentationWindow.mxml:468]
    at org.bigbluebutton.modules.present.ui.views::PresentationWindow/loadPage()[/home/firstuser/dev/bigbluebutton/bigbluebutton-client/src/org/bigbluebutton/modules/present/ui/views/PresentationWindow.mxml:453]
    at org.bigbluebutton.modules.present.ui.views::PresentationWindow/gotoPage()[/home/firstuser/dev/bigbluebutton/bigbluebutton-client/src/org/bigbluebutton/modules/present/ui/views/PresentationWindow.mxml:447]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:13128]
    at com.asfusion.mate.core::GlobalDispatcher/dispatchEvent()[/Users/nahuel/Documents/Flex Builder 3/MateDevelopment/src/com/asfusion/mate/core/GlobalDispatcher.as:110]
    at com.asfusion.mate.events::Dispatcher/dispatchEvent()[/Users/nahuel/Documents/Flex Builder 3/MateDevelopment/src/com/asfusion/mate/events/Dispatcher.as:240]
    at org.bigbluebutton.modules.present.business::PresentSOService/gotoSlideCallback()[/home/firstuser/dev/bigbluebutton/bigbluebutton-client/src/org/bigbluebutton/modules/present/business/PresentSOService.as:493]

Please use labels and text to provide additional information.

Original issue reported on code.google.com by ritza...@gmail.com on 15 Oct 2013 at 2:31

GoogleCodeExporter commented 9 years ago
Fixed in 
https://github.com/bigbluebutton/bigbluebutton/commit/a6759a8171504c26d83b497f93
7eadcab546d3de

Original comment by ritza...@gmail.com on 15 Oct 2013 at 2:52

GoogleCodeExporter commented 9 years ago

Original comment by ffdixon@gmail.com on 22 Oct 2013 at 2:36