pop-os / gnome-shell-extension-system76-power

System76 Power Management Extension
MIT License
90 stars 26 forks source link

Fix reading file content #19

Closed joke2k closed 5 years ago

joke2k commented 5 years ago

Hi, I found this stacktrace in my journalctl:

Some code called array.toString() on a Uint8Array instance. Previously this would have interpreted the bytes of the array as a string, but that is 
(Note that array.toString() may have been called implicitly.)
0 init() ["/usr/share/gnome-shell/extensions/system76-power@system76.com/extension.js":51]
1 initExtension() ["resource:///org/gnome/shell/ui/extensionSystem.js":249]
   ....
16 start() ["resource:///org/gnome/shell/ui/main.js":136]
17 <TOP LEVEL> ["<main>":1]

Ubuntu 18.10 Digging about it I found that: https://gitlab.gnome.org/GNOME/gnome-shell/commit/112aac2214bc4728cd87cfe3819049a15994d4e1?view=inline

And I think that we could fix easy

jackpot51 commented 5 years ago

@mmstick fixed this with a cleaner diff in #21