Bug #83746

Occasional Image Editor lock ups (this.currentCropVariant is undefined)

Added by Linus Stubert over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Image Cropping
Target version:
-
Start date:
2018-02-01
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
7.0
Tags:
Image editor
Complexity:
Is Regression:
Sprint Focus:

Description

I am experiencing occasional image editor lock ups in TYPO3 8.7.9 On the console

this.currentCropVariant is undefined
this.cropper is undefined

is logged. The error occurs from time to time and cannot always be reproduced. I figure the error might have to do with the order and speed in which the resources are loaded.

Aside from the spinner SVG the page complete locks up and needs to be reloaded to return to TYPO3.

screenshot.png View - Screenshot image editor (25.7 KB) Linus Stubert, 2018-02-01 08:51

typo3-bug-crop-chrome.png View (29.7 KB) Wittkiel Gruppe, 2018-02-15 09:08

typo3-bug-crop-ff.png View (26.9 KB) Wittkiel Gruppe, 2018-02-15 09:08


Related issues

Related to TYPO3 Core - Bug #84499: Uncaught TypeError: Cannot read property 'cropArea' of undefined Closed 2018-03-20

History

#1 Updated by Emanuel Wyss over 1 year ago

I can reproduce this error with typo3 8.7.9 and firefox 58.0.1. With Chrome 63, Microsoft Edge 41 and Internet Explorer 11 it works as usual.

#2 Updated by Christoph Bessei over 1 year ago

Same here.

I added

null !== this.currentCropVariant ||

as a workaround to typo3/sysext/backend/Resources/Public/JavaScript/ImageManipulation.js:

// If we start without an cropArea, maximize the cropper
if (null == this.currentCropVariant || ImageManipulation.isEmptyArea(this.currentCropVariant.cropArea)) {
    this.defaultOpts = $.extend({
        autoCropArea: 1,
    }, this.defaultOpts);
}

#3 Updated by Wittkiel Gruppe over 1 year ago

Emanuel Wyss wrote:

I can reproduce this error with typo3 8.7.9 and firefox 58.0.1. With Chrome 63, Microsoft Edge 41 and Internet Explorer 11 it works as usual.

We have this problem also with TYPO3 8.7.10 and Firefox 58 and Chrome 64.

#4 Updated by Dirk Sch. over 1 year ago

  • Priority changed from Should have to Must have

Same here. Browser doesn't matter. Even on Microsoft Edge same behaviour occasionally.
I can't really reproduce it. I saw it 2-3 times in the last weeks myself (Typo3 8.7.9 and 8.7.10) but editors are complaining.

#5 Updated by Robert Wolle over 1 year ago

We can reproduce this issue too: Chrome 64.0.3282.186 & Firefox 58.0.2 + Typo3 8.7.10.

#6 Updated by Thomas Ernst over 1 year ago

I can confirm that the workaround mentioned in note 2 works for Firefox 58 and Typo3 8.7.11.

However, there is a typo in note 2. The first box should be

"null == this.currentCropVariant ||"

(same as the second box)

#7 Updated by Alexander Schnitzler over 1 year ago

  • Related to Bug #84499: Uncaught TypeError: Cannot read property 'cropArea' of undefined added

Also available in: Atom PDF