Repeatedly logged out of app?

I keep on getting logged out wile debiugging some code that hangs the E1 Mini and the editor never completes the moving white dots loader.

Clearly I have an issue to debug, but I should not be logged out from the app (which is not apparent until I leave the editor and go to “my presets” (for example).

In order for me to rescue the E1 Mini, I need to hold down the third from the left button and boot. This should probably be documented.

Would be nice to get more info on the error as to the offending lua…

There is basically no way for the controller to log you out of the application.

It may happen that the Lua script goes completely wrong - causing the controller freeze or interrupted transfer/execution of Lua and not sending the ACK back to the editor. The upcoming firmware release brings a major update of Lua debugging. But even if you do not receive ACK, there is no functionality that would terminate your session. Is there a way for me to try to replicate the issue?

I will add notion about the start-up button combo to the docs. It prevents loading the preset, giving you a chance to modify or remove the broken preset.

It is very surprising. That’s what I thought too.

Is there another way to lose/timeout the session/login? Maybe it’s just a coincidence.

Let me see about a test case to reproduce.

Also the disk mode button is documented incorrectly. Iirc it’s 2nd from the right.

Something odd here. I think auth is not working properly for me now. I disabled plugins like ublock origin, etc.

After I login I see:

defaultTargetDevice: mini
0c61af0.js:1 Error FirebaseError: Missing or insufficient permissions.
at new e (21c2330.js:2:271511)
at 21c2330.js:2:453729
at nr. (21c2330.js:2:452924)
at Rt (21c2330.js:2:825902)
at g.dispatchEvent (21c2330.js:2:826418)
at or.sa (21c2330.js:2:855010)
at Re (21c2330.js:2:834524)
at Se (21c2330.js:2:832349)
at g.Ca (21c2330.js:2:836577)
at g.Wa (21c2330.js:2:835873)

If I refresh the page, I am logged out.

Complete sequence after login:

defaultTargetDevice: mini

Then I see my apps.

If I reload that page I just see “Authorizing…” with the following log:

21c2330.js:2
It looks like you’re using the development build of the Firebase JS SDK.
When deploying Firebase apps to production, it is advisable to only import
the individual SDK components you intend to use.

For the module builds, these are available in the following manner
(replace  with the name of a component - i.e. auth, database, etc):

CommonJS Modules:
const firebase = require(‘firebase/app’);
require(‘firebase/’);

ES Modules:
import firebase from ‘firebase/app’;
import ‘firebase/’;

Typescript:
import * as firebase from ‘firebase/app’;
import ‘firebase/’;

75 @ 21c2330.js:2
n @ e52b224.js:1
77 @ 0c61af0.js:1
n @ e52b224.js:1
296 @ 0c61af0.js:1
n @ e52b224.js:1
60 @ 21c2330.js:2
n @ e52b224.js:1
(anonymous) @ 21c2330.js:2
251 @ 21c2330.js:2
n @ e52b224.js:1
249 @ 0c61af0.js:1
n @ e52b224.js:1
f @ e52b224.js:1
c @ e52b224.js:1
(anonymous) @ 0c61af0.js:1Understand this warning
0c61af0.js:1 PROD!
0c61af0.js:1 setStatus granted
0c61af0.js:1 app/setClipboard
0c61af0.js:1 clipboard: {controls: {…}}
0c61af0.js:1 commit stack
setClipboard @ 0c61af0.js:1
(anonymous) @ 91d8ee9.js:2
(anonymous) @ 91d8ee9.js:2
(anonymous) @ 91d8ee9.js:2
(anonymous) @ 91d8ee9.js:2
(anonymous) @ 91d8ee9.js:2
(anonymous) @ 91d8ee9.js:2
(anonymous) @ 91d8ee9.js:2
updateFromLocalstorage @ 0c61af0.js:1
(anonymous) @ 91d8ee9.js:2
(anonymous) @ 91d8ee9.js:2
(anonymous) @ 91d8ee9.js:2
mounted @ 0c61af0.js:1
Ln @ 91d8ee9.js:2
Tr @ 91d8ee9.js:2
(anonymous) @ 91d8ee9.js:2
(anonymous) @ 91d8ee9.js:2
l @ 21c2330.js:2
(anonymous) @ 21c2330.js:2
y @ 91d8ee9.js:2
(anonymous) @ 91d8ee9.js:2
(anonymous) @ 91d8ee9.js:2
r @ 91d8ee9.js:2
f @ 91d8ee9.js:2
Promise.then
r @ 91d8ee9.js:2
f @ 91d8ee9.js:2
Promise.then
r @ 91d8ee9.js:2
f @ 91d8ee9.js:2
Promise.then
r @ 91d8ee9.js:2
f @ 91d8ee9.js:2
(anonymous) @ 91d8ee9.js:2
(anonymous) @ 91d8ee9.js:2
G @ 21c2330.js:2
(anonymous) @ 21c2330.js:2
Promise.then
(anonymous) @ 21c2330.js:2
251 @ 21c2330.js:2
n @ e52b224.js:1
249 @ 0c61af0.js:1
n @ e52b224.js:1
f @ e52b224.js:1
c @ e52b224.js:1
(anonymous) @ 0c61af0.js:1
0c61af0.js:1 WebMidi enabled!
0c61af0.js:1 setStatus granted
0c61af0.js:1 port c {_userHandlers: {…}, _midiInput: MIDIInput, …}
0c61af0.js:1 port c {_userHandlers: {…}, _midiInput: MIDIInput, …}
0c61af0.js:1 port c {_userHandlers: {…}, _midiInput: MIDIInput, …}
0c61af0.js:1 port l {_midiOutput: MIDIOutput, …}
0c61af0.js:1 port l {_midiOutput: MIDIOutput, …}
0c61af0.js:1 port l {_midiOutput: MIDIOutput, …}
0c61af0.js:1 Starting a messageSender… 32
0c61af0.js:1 setting a sender id 32
0c61af0.js:1 NACK
0c61af0.js:1 sending fetch electraInfo
21c2330.js:2 Uncaught (in promise) FirebaseError: Missing or insufficient permissions.
at new e (21c2330.js:2:271511)
at 21c2330.js:2:412786
at 21c2330.js:2:412809
at e.onMessage (21c2330.js:2:413633)
at 21c2330.js:2:411429
at 21c2330.js:2:411852
at 21c2330.js:2:346552

Reloading the page does the same repeatedly, but if I click :“apps and presets”, then I get the login page.

This is slightly different than the initial sequence.

1 Like

Rebooted and still have the same issue.

If I disconnect the MIni, the problem goes away!

If I disable the bad preset (hold 3rd from left button on mini at boot), the issue goes away.

Surprising, yes!

Here is a bad preset with almost no Lua: Electra One App

If I change control #9 to not visible, the preset correctly loads! Odd.

Don’t worry about fixing this project, I’ve done that already in a clone.

1 Like