Code Monkey home page Code Monkey logo

Comments (11)

pixeltris avatar pixeltris commented on May 26, 2024

08aa929 this might fix it. It was hanging on Mac due to the browser keeping connections alive (and the simple web server not handling that). I don't currently have a Linux machine to test.

from gk6x.

Faalagorn avatar Faalagorn commented on May 26, 2024

Thanks! I thought it was something with it unable to open browser as root, but it turned out it was not the case :). The GUI works now. It doesn't load anything, but I bet it's because the Tronsmarts are not supported there? Anyway, closing this!

from gk6x.

pixeltris avatar pixeltris commented on May 26, 2024

There are updated data files on releases page which includes the Tronsmart files so it should function correctly https://github.com/pixeltris/GK6X/releases/download/GK6X-v1.8/GK6X-v1.8-GUI.zip

from gk6x.

Faalagorn avatar Faalagorn commented on May 26, 2024

Well, it detects the keyboard just fine:
Connected to device 'TK09R-105 RGB-DE' model:655491211 fw:v1.24

However, GUI on http://localhost:6464/#/ doesn't load anything
screenshot_2020-05-17-161329
screenshot_2020-05-17-161345

I tried copying the driver files from tronsmart radiant drivers, but it gave me a similar issue – a different wallpaper with NO DEVICE on it.

Does the browser need to be run as root for GUI to work?

from gk6x.

pixeltris avatar pixeltris commented on May 26, 2024

I don't think the browser has to run as root. The GUI from the older versions aren't supported.

Could you see if there are any errors in the browser console output? It should load up to the point of either showing "NO DEVICE" or loading a keyboard.

from gk6x.

Faalagorn avatar Faalagorn commented on May 26, 2024

Nothing that caught my eye, really. I may try on stock Tronsmart driver later, but here's what I got on GK6X 1.8 GUI from release (I didn't try compiling one myself, but it should be the same):

DevTools failed to load SourceMap: Could not load content for chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/sourcemaps/onloadwff.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
(index):77 onFunc: onGameListChanged function(t){var o=JSON.parse(t);e(null===o?[]:o)}
(index):43 {request: "{"funcname":"ReadFile","Type":0,"Path":"Env.json"}", requestType: "callFunc", token: "08e39cc1-8088-4d38-af8f-d0f947442e40", onSuccess: ƒ, onFailure: ƒ}
index.js?9e44948a8859cab1a24c:6 Call CMS failure! code: 0, message: fail - ReadFile
(index):43 {request: "{"funcname":"GetGameList"}", requestType: "callFunc", token: "08e39cc1-8088-4d38-af8f-d0f947442e40", onFailure: ƒ}
(index):77 onFunc: onDeviceListChanged function(t){var o=JSON.parse(t);console.log(o),e(null===o?[]:o)}
index.js?9e44948a8859cab1a24c:6 init macrolist ok!
index.js?9e44948a8859cab1a24c:6 [{…}]
index.js?9e44948a8859cab1a24c:6 Uncaught TypeError: Cannot read property 'debug' of undefined
    at i (index.js?9e44948a8859cab1a24c:6)
    at index.js?9e44948a8859cab1a24c:6
    at Object.data.onSuccess ((index):408)
    at XMLHttpRequest.xhr.onreadystatechange ((index):63)

EDIT: Now I see some file read errors, is it the thing I should try to troubleshoot further?

from gk6x.

pixeltris avatar pixeltris commented on May 26, 2024

So it looks like it's failing to load Env.json which then causes other things to fail when it subsequently tries to access variables set up after reading Env.json.

ReadFile calls out to here which is where it should be fetching the Env.json file

case "ReadFile":

from gk6x.

pixeltris avatar pixeltris commented on May 26, 2024

Oh right file names are case sensitive on Linux and it tries to load 'Env.json' when it's actually called 'env.json'. I'm not sure if there's a way to make C# ignore the casing on files on mono. I guess you could start with changing 'env.json' to 'Env.json' and see how far it gets? If it's the only file with bad casing then it might be an easy fix.

Maybe something like this would do in "ReadFile":

case 0:// Data
    switch (path)
    {
        case "Env.json":
            path = path.ToLower();
            break;
    }
    basePath = dataPath;
    break;

from gk6x.

Faalagorn avatar Faalagorn commented on May 26, 2024

Thanks @pixeltris There's some progress now that I renamed the file, but I get this:

vendor.js?a8dab0126e78531e2ea8:1 TypeError: Cannot read property 'img_device' of undefined
    at index.js?9e44948a8859cab1a24c:28
    at s.Te [as _l] (vendor.js?a8dab0126e78531e2ea8:1)
    at s.i (index.js?9e44948a8859cab1a24c:28)
    at s.e._render (vendor.js?a8dab0126e78531e2ea8:6)
    at s.n (vendor.js?a8dab0126e78531e2ea8:1)
    at Xr.get (vendor.js?a8dab0126e78531e2ea8:6)
    at Xr.run (vendor.js?a8dab0126e78531e2ea8:6)
    at kt (vendor.js?a8dab0126e78531e2ea8:1)
    at Array.<anonymous> (vendor.js?a8dab0126e78531e2ea8:1)
    at ce (vendor.js?a8dab0126e78531e2ea8:1)

I'll try to see more at it a bit later or tomorrow hopefully

from gk6x.

pixeltris avatar pixeltris commented on May 26, 2024

Possibly more issues with file path casing.

from gk6x.

Faalagorn avatar Faalagorn commented on May 26, 2024

Possibly more issues with file path casing.

Possibly, yeah. ext4 and f2fs have options to ignore file casing added as of recently, I'll try to check if I can get it running that way, but ideal solution would be to fix it elsewhere :)

EDIT: There's also IOMAP in Mono, but it's been deprecated starting 6.0.0 https://www.mono-project.com/docs/advanced/iomap/

from gk6x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.