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.
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
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.
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);
}
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.
- 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.
We can reproduce this issue too: Chrome 64.0.3282.186 & Firefox 58.0.2 + Typo3 8.7.10.
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)
- Related to Bug #84499: Uncaught TypeError: Cannot read property 'cropArea' of undefined added
- 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).
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.
- 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.
- Related to Bug #95259: Image editor hung up with JS Error / Cannot read properties of undefined (reading 'cropArea') added
Also available in: Atom
PDF