Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-3277

Division by zero error when calculating progress

    XMLWordPrintable

Details

    • High
    • Solves problem with workers crash when calculating progress.

    Description

      Problem

      In some cases when worker progress is calculated, error is triggered which crashes the workers chain.

      Stack trace:

       

      File (Line):    /webs/xxxx/application/modules/editor/src/Segment/Db/Processing.php (83)
      Request:    PUT https://xxxx.de/editor/worker/13584
      Trace:    #0 /webs/xxxx/application/modules/editor/src/Segment/Processing/State.php(270): MittagQI\Translate5\Segment\Db\Processing->calculateProgress()
          #1 /webs/xxxx/application/modules/editor/src/Segment/Processing/Looper.php(132): MittagQI\Translate5\Segment\Processing\State->calculateProgress()
          #2 /webs/xxxx/application/modules/editor/src/Segment/Processing/Worker.php(192): MittagQI\Translate5\Segment\Processing\Looper->getProgress()
          #3 /webs/xxxx/library/ZfExtended/Worker/Abstract.php(388): MittagQI\Translate5\Segment\Processing\Worker->calculateProgressDone()
          #4 /webs/xxxx/library/ZfExtended/Worker/Abstract.php(330): ZfExtended_Worker_Abstract->_run()
          #5 /webs/xxxx/library/ZfExtended/Controllers/WorkerController.php(129): ZfExtended_Worker_Abstract->runQueued()
          #6 /webs/xxxx/application/modules/editor/Controllers/WorkerController.php(37): ZfExtended_WorkerController->putAction()
          #7 /webs/xxxx/vendor/shardj/zf1-future/library/Zend/Controller/Action.php(516): editor_WorkerController->putAction()
          #8 /webs/xxxx/library/ZfExtended/Controllers/AAARestController.php(348): Zend_Controller_Action->dispatch()
          #9 /webs/xxxx/vendor/shardj/zf1-future/library/Zend/Controller/Dispatcher/Standard.php(308): ZfExtended_RestController->dispatch()
          #10 /webs/xxxx/vendor/shardj/zf1-future/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch()
          #11 /webs/xxxx/vendor/shardj/zf1-future/library/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
          #12 /webs/xxxx/vendor/shardj/zf1-future/library/Zend/Application.php(399): Zend_Application_Bootstrap_Bootstrap->run()
          #13 /webs/xxxx/library/ZfExtended/Application.php(74): Zend_Application->run()
          #14 /webs/xxxx/library/ZfExtended/BaseIndex.php(174): ZfExtended_Application->run()
          #15 /webs/xxxx/public/index.php(35): ZfExtended_BaseIndex->startApplication()
          #16 {main} 

       

       

      Attachments

        Activity

          People

            aleksandar Aleksandar Mitrev
            aleksandar Aleksandar Mitrev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: