Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Investigate "ui is not defined" #2983

Open
ianb opened this issue Jun 7, 2017 · 4 comments
Open

Investigate "ui is not defined" #2983

ianb opened this issue Jun 7, 2017 · 4 comments
Labels
code Code quality issue, that does not have any outward effect on the product firefox Something that has to ship in the add-on in Firefox ✿sentry✿ Something related to an error report in our Sentry error collector
Milestone

Comments

@ianb
Copy link
Contributor

ianb commented Jun 7, 2017

In this Sentry report, probably related to #2902:

mousedown@moz-extension://92b99b93-cd16-4545-acd7-cbb2387ae303/selector/uicontrol.js:514:1
addHandlers/</fn<@moz-extension://92b99b93-cd16-4545-acd7-cbb2387ae303/selector/uicontrol.js:867:18
watchFunction/this.catcher@moz-extension://92b99b93-cd16-4545-acd7-cbb2387ae303/catcher.js:52:16
EventListener.handleEvent*installHandlersOnDocument@moz-extension://92b99b93-cd16-4545-acd7-cbb2387ae303/selector/uicontrol.js:888:7
display/this.ui</this.element.onload<@moz-extension://92b99b93-cd16-4545-acd7-cbb2387ae303/selector/ui.js:103:13
watchFunction/this.catcher@moz-extension://92b99b93-cd16-4545-acd7-cbb2387ae303/catcher.js:52:16
EventHandlerNonNull*display/this.ui<@moz-extension://92b99b93-cd16-4545-acd7-cbb2387ae303/selector/ui.js:95:33
display@moz-extension://92b99b93-cd16-4545-acd7-cbb2387ae303/selector/ui.js:81:14
display@moz-extension://92b99b93-cd16-4545-acd7-cbb2387ae303/selector/ui.js:323:14
start@moz-extension://92b99b93-cd16-4545-acd7-cbb2387ae303/selector/uicontrol.js:374:20
setState@moz-extension://92b99b93-cd16-4545-acd7-cbb2387ae303/selector/uicontrol.js:192:7
exports.activate@moz-extension://92b99b93-cd16-4545-acd7-cbb2387ae303/selector/uicontrol.js:821:7
this.uicontrol<@moz-extension://92b99b93-cd16-4545-acd7-cbb2387ae303/selector/uicontrol.js:924:3
@moz-extension://92b99b93-cd16-4545-acd7-cbb2387ae303/selector/uicontrol.js:6:19

It's in the mousedown event handler in the crosshairs state. This feels like it should have been fixed by #2942, but apparently was not.

@ianb ianb added the ✿sentry✿ Something related to an error report in our Sentry error collector label Jun 8, 2017
@ianb ianb added this to the Screenshots in 55 milestone Jun 8, 2017
@ianb ianb added the firefox-55 label Jun 8, 2017
@SoftVision-CosminMuntean

I have observed that a "ReferenceError: ui is not defined" error is displayed in browser console if you save multiple shots consecutive on, but I am not sure if this is related or similar with the above error.

Here is a browser console error:
ui 2

@ianb ianb self-assigned this Jun 8, 2017
ianb added a commit that referenced this issue Jun 8, 2017
This isn't a real fix, but it keeps the popup from happening, while still reporting to Sentry (or reporting sometimes)
@ianb
Copy link
Contributor Author

ianb commented Jul 10, 2017

There's still an open issue, per this report:

Error: Error: Undefined ui in mousedown
mousedown@resource://screenshots-addon/selector/uicontrol.js:517:19
addHandlers/</fn<@resource://screenshots-addon/selector/uicontrol.js:884:18
watchFunction/this.catcher@resource://screenshots-addon/catcher.js:54:16

Probably the same underlying cleanup issue.

This report has a bigger traceback, but looks like the same thing.

@ianb ianb reopened this Jul 10, 2017
@ianb
Copy link
Contributor Author

ianb commented Jul 10, 2017

@ianb ianb removed their assignment Jul 11, 2017
@jaredhirsch
Copy link
Member

I think this should be fixed by #3222

@jaredhirsch jaredhirsch self-assigned this Jul 26, 2017
@ghost ghost modified the milestones: General Release 55, General Release 57 Aug 1, 2017
@johngruen johngruen added P1 and removed firefox-56 labels Aug 17, 2017
@ghost ghost added the firefox Something that has to ship in the add-on in Firefox label Sep 21, 2017
@ghost ghost modified the milestones: General Release 57, Launch 58 Sep 21, 2017
@johngruen johngruen modified the milestones: Bucket ☕️, Sprint 1 (59-0) Oct 31, 2017
@ghost ghost modified the milestones: Sprint 1 (59-0) 🍷, Backlog Nov 27, 2017
@ianb ianb added the code Code quality issue, that does not have any outward effect on the product label Jan 10, 2018
@jaredhirsch jaredhirsch removed their assignment Apr 20, 2018
@johngruen johngruen removed the P1 label Jun 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
code Code quality issue, that does not have any outward effect on the product firefox Something that has to ship in the add-on in Firefox ✿sentry✿ Something related to an error report in our Sentry error collector
Projects
None yet
Development

No branches or pull requests

4 participants