Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Switcher breaks inspector #1039

Closed
nummi opened this issue Sep 25, 2019 · 13 comments
Closed

App Switcher breaks inspector #1039

nummi opened this issue Sep 25, 2019 · 13 comments
Labels

Comments

@nummi
Copy link
Collaborator

nummi commented Sep 25, 2019

image

Error in event handler: Error: Assertion Failed: You attempted to remove a function listener which did not exist on the instance, which means you may have attempted to remove it before it was added.

The entire Inspector turns into a white screen.

Seems to be coming from this line: https://github.com/emberjs/ember-inspector/blob/master/app/routes/app-detected.js#L52

I believe updating to 3.11 is the culprit. This PR causes the error:
#1000

@nummi nummi added the bug label Sep 25, 2019
@chancancode
Copy link
Member

chancancode commented Dec 18, 2019

I think this may be fixed in https://github.com/emberjs/ember-inspector/pull/1103/files (specifically this), @nummi any chance you can re-test? (no rush)

@nummi
Copy link
Collaborator Author

nummi commented Dec 19, 2019

@chancancode, it's getting better: no empty white screen. Unfortunately Inspector doesn't switch apps and now I'm getting this error:

VM129:9027 Uncaught TypeError: Cannot read property '__deprecatedInstance__' of undefined
    at <anonymous>:9027:46
    at <anonymous>:138:9
    at Array.forEach (<anonymous>)
    at Class._messageReceived (<anonymous>:137:30)
    at <anonymous>:378:16
    at Backburner._run (backburner.js:1010)
    at Backburner.run (backburner.js:751)
    at run (index.js:122)
    at MessagePort.<anonymous> (<anonymous>:377:9)

Here's the test app I've been using: https://github.com/nummi/inspector-test

It embeds the deprecation app in an iframe.

@chancancode
Copy link
Member

Thanks! I’ll take a look!

@RobbieTheWagner
Copy link
Member

@chancancode is this still an issue?

@chancancode
Copy link
Member

Yes

@chancancode
Copy link
Member

I haven’t had a chance to look into how it’s supposed to work with iframes yet, but it doesn’t work properly. It may be the case that switching between two apps on the same page and on the same frame works but switching between iframes doesn’t.

@RobbieTheWagner
Copy link
Member

@chancancode was changing the app picker a requirement of the new render node stuff? If not, maybe we can change it back?

@chancancode
Copy link
Member

It was already broken before my change. This issue predated my changes. My change made it crash less badly, but it still doesn’t work.

@RobbieTheWagner
Copy link
Member

@chancancode are you sure? It worked the last time @nummi and I tried it, but we don't try it often.

@chancancode
Copy link
Member

The issue is from September and the description mentioned:

I believe updating to 3.11 is the culprit. This PR causes the error:
#1000

But yes I also confirmed it locally. I can try to figure this out but probably have a few other things to look into before getting to this. I also find that the inspector's detection of apps on the current page could be pretty spotty and timing dependent, so probably going to try and fix that as well.

@RobbieTheWagner
Copy link
Member

@chancancode sorry, you are correct, it's been a long couple of weeks 😅

@chancancode
Copy link
Member

No problem! Same 😄

@patricklx
Copy link
Collaborator

should be fixed by #2157

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants