-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
bug(web): An error message related to the keyboard is displayed on the Android 5.0 OS #9561
Comments
@bharanidharanj - I cannot repro on the current 17.0.183 alpha branch. Can you retest? |
@darcywong00 Retested this issue with the latest 17.0.186-alpha build and I am able to reproduce it. |
Repro with 17.0.198 alpha and corresponding Sentry report
|
@jahorton this looks like a missing polyfill in lmworker. |
Ugh. That's a really uninformative error; the reported location of the error is in the minifying code, not our own. It's not a polyfill; if anything... it's more as if it's an error from trying to polyfill something. From the compiled, polyfilled webworker - the very start of it:
After which follows the body of our first polyfill. But the error happens within the function assigned to The oldest release with a related event, as tagged by that Sentry link, is 17.0.154-alpha. Interestingly, it seems to come and go - it's skipped several versions and come back again based on the event logs. Also, 17.0.154 is when #9409 landed... which matches the previous time we had to update for compatibility with the older Android devices. Yaaaaaay. |
Tried making a local build and installing it in an emulated Android 5.0 / API 21 device... no errors. Huh. |
Important: the standard It's falling over when processing the first polyfill - And I can manually reproduce it with a rather simple setup, even in the main, es6-shim polyfilled thread: var temp = function() { console.log("hello") };
console.log(temp.name); // outputs ""
Object.defineProperty(temp, 'name', {value: 'temp', configurable: true}); // will throw the same error. Try the same in modern Chrome, repeating the second line after the third, and you'll get This appears to be something esbuild minification is doing; I'll see if it can be turned off separately from everything else. If not, we may have to disable worker "name" minification, as that would obviously be the minification category it falls under. |
Who are you asking to do this? Can you please elucidate and open a separate issue on Android if this is something that needs to be done.
I'm not seeing the obviousness here. I think I can work out the dots you've connected but it's far from obvious! Can you be a bit more explicit on the root cause? |
Ah, on that - that's to pull off a consistent repro. Obviously, don't do this for actual production. Bug report submitted @ evanw/esbuild#3477. The role of the responsible function, generated during minification, is to assign each minified function its original, non-minified name as its And a little more tracing past that: we cannot utilize |
I have a fix up as a commit within #9943. If desired, I can also 🍒-pick it easily to |
As this has been merged to the feature-gestures branch, I'm going ahead and closing this. |
Describe the bug
After the installation or modification of a keyboard, an error message was displayed on the screen.
Reproduce the bug
Noticed that an error message was displayed on the screen.
Here, I observed that once more, an error message appeared on the screen.
We may notice that the keyboard picker menu appears on the screen.
Once more, the error message was shown on the screen.
I have attached the screenshot for reference.
Expected behavior
It should not show any error messages following the installation or replacement of a keyboard.
Related issues
9401, 9546
Keyman apps
Keyman version
17.0.173-alpha
Operating system
Android 5.0
Device
No response
Target application
No response
Browser
No response
Keyboard name
No response
Keyboard version
No response
Language name
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: