Project

General

Profile

Actions

Bug #83746

closed

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

Added by Linus Stubert over 6 years ago. Updated about 4 years ago.

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

0%

Estimated time:
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.


Files

screenshot.png (25.7 KB) screenshot.png Screenshot image editor Linus Stubert, 2018-02-01 08:51
typo3-bug-crop-chrome.png (29.7 KB) typo3-bug-crop-chrome.png Wittkiel Gruppe, 2018-02-15 09:08
typo3-bug-crop-ff.png (26.9 KB) typo3-bug-crop-ff.png Wittkiel Gruppe, 2018-02-15 09:08

Related issues 2 (1 open1 closed)

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

Actions
Related to TYPO3 Core - Bug #95259: Image editor hung up with JS Error / Cannot read properties of undefined (reading 'cropArea')New2021-09-17

Actions
Actions #1

Updated by Emanuel Wyss over 6 years 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.

Actions #2

Updated by Anonymous about 6 years 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);
}

Updated by Wittkiel Gruppe about 6 years 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.

Actions #4

Updated by Dirk Sch. about 6 years 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.

Actions #5

Updated by Robert Wolle about 6 years ago

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

Actions #6

Updated by Thomas Ernst about 6 years 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)

Actions #7

Updated by Alexander Schnitzler about 6 years ago

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

Updated by Riccardo De Contardi about 4 years ago

  • Status changed from New to Needs Feedback

Is this one still reproducible with TYPO3 9.5.15 or higher ? (By the way, the related issue has been resolved, if I am not wrong).

Actions #9

Updated by Thomas Ernst about 4 years ago

I just tried with Typo3 versions 9.5.15 and 8.7.32 under Firefox 75. I was not able to reproduce the issue under these versions.

Actions #10

Updated by Riccardo De Contardi about 4 years ago

  • Status changed from Needs Feedback to Closed

I think it is safe to close this issue as resolved (race condition fixed via https://review.typo3.org/c/Packages/TYPO3.CMS/+/56469/ - thanks Christian Eßl for pointing it)

If you think that this is the wrong decision or experience the issue again or I have misunderstood, please reopen it or ping me and I'll do it.

Thanks.

Actions #11

Updated by Jens Neumann over 2 years ago

  • Related to Bug #95259: Image editor hung up with JS Error / Cannot read properties of undefined (reading 'cropArea') added
Actions

Also available in: Atom PDF