Skip to content

Conversation

@mikeller
Copy link
Member

No description provided.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
1.0% 1.0% Duplication

Copy link
Member

@McGiverGim McGiverGim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not tested, but seems good.

@TheIsotopes
Copy link
Contributor

TheIsotopes commented Feb 22, 2020

@McGiverGim not really

tested this with latest master on windows 10

  • on setup tab the model can only be seen as a rectangle
  • after connect no tabs can be changed and disconnect not working

@mikeller pls can you check this

here a screenshot with console output after click on any tab
configurator

@mikeller
Copy link
Member Author

@TheIsotopes: Not sure what version of the source you are using, I cannot find 7116f2e7. But this branch is working fine in Windows:

image

@TheIsotopes
Copy link
Contributor

TheIsotopes commented Feb 22, 2020

@mikeller latest master + this pr -> 7116f2e7

using this in windows cmd:

git clone https://github.com/betaflight/betaflight-configurator.git
cd betaflight-configurator
git pull origin pull/1893/head
yarn install
yarn start

the result is as described above

@mikeller
Copy link
Member Author

@TheIsotopes: Would you mind testing with just this branch: git checkout 4672666226b48dc8996a66f67e18c94f0a6738fe

@TheIsotopes
Copy link
Contributor

@mikeller that does not work

git checkout 4672666226b48dc8996a66f67e18c94f0a6738fe
fatal: reference is not a tree: 4672666226b48dc8996a66f67e18c94f0a6738fe

@etracer65
Copy link
Member

I tested this but unfortunately it doesn't fix the firmware flashing problem on MacOS. Still get the same behavior as #1892.

Tested on MacOS 10.13.6 (High Sierra).

@etracer65
Copy link
Member

It looks like this may be a case of a non-error result code being interpreted as an error. When I comment out the check that leads to the failure then flashing works normally. For example in src/js/protocols/stm32usbdfu.js:

    chrome.usb.claimInterface(this.handle, interfaceNumber, function claimed() {
//        if(self.checkChromeError()) {
//            console.log('Failed to claim USB device!');
//            self.cleanup();
//        }

        console.log('Claimed interface: ' + interfaceNumber);

@etracer65
Copy link
Member

Also not sure if this is related, but I see this warning in the console when the app opens.

DevTools failed to parse SourceMap: chrome-extension://ajdoecjhplhoahggfmgflfnlechcljoc/node_modules/jquery-textcomplete/dist/dist/jquery.textcomplete.min.map

@TheIsotopes
Copy link
Contributor

TheIsotopes commented Feb 22, 2020

i'm also have the same warning in the console like @etracer65

working bfc from latest master
latest_master

not working bfc from latest master incl. this pr
latest_master+pr

@mikeller
Copy link
Member Author

@TheIsotopes: Try this then:

git checkout -b mikeller-update_libraries master
git pull https://github.com/mikeller/betaflight-configurator.git update_libraries

(Fact is, the branch is working for me on Windows 10, and it's directly off master, so I cannot see how something could break it unless it's the merge going wrong.)

@etracer65:

It looks like this may be a case of a non-error result code being interpreted as an error. When I comment out the check that leads to the failure then flashing works normally. For example in src/js/protocols/stm32usbdfu.js:

Looks like this is a MacOS - only problem, as I can go in and out of DFU mode on linux and Windows. Can I get you to try and get to the bottom of this? I do not have access to a Mac for debugging.

Also not sure if this is related, but I see this warning in the console when the app opens.

No, most likely not - looks like a pathing issue in one of the dependencies:

.../dist/dist/...

Source map files are only used in the debug console, so this will not be affecting production builds of the software.

@TheIsotopes
Copy link
Contributor

Try this then:

git checkout -b mikeller-update_libraries master
git pull https://github.com/mikeller/betaflight-configurator.git update_libraries

(Fact is, the branch is working for me on Windows 10, and it's directly off master, so I cannot see how something could break it unless it's the merge going wrong.)

@mikeller nope, this does not solve the problem either

@mikeller
Copy link
Member Author

@TheIsotopes: I start to suspect that the GPU drivers in your installation are the problem. Can you test with this installer please:

https://drive.google.com/open?id=1c1Tl0X1uDf3iCCjL6E2XL-HekUhNO9Cj

I confirmed that this is working fine on my local Windows 10 installation.

@TheIsotopes
Copy link
Contributor

@mikeller tested now with the installer version ... but the same problem :((

@mikeller
Copy link
Member Author

@TheIsotopes: Not sure if command line options for NW.js are actually working in Windows, but can you try starting it from the command line with --disable-gpu ?

@TheIsotopes
Copy link
Contributor

yyyeeessssss, with --disable-gpu working all perfect now 👍

@mikeller
Copy link
Member Author

@TheIsotopes:

yyyeeessssss, with --disable-gpu working all perfect now 

That's good to hear - the bad news is that your GPU / graphics adapter drivers are potentially screwed, and might need a reinstall.

@TheIsotopes
Copy link
Contributor

@mikeller I won't find any new drivers, the latest drivers are already installed.

the computer is definitely over twelve years old.

@mikeller
Copy link
Member Author

mikeller commented Feb 22, 2020

@TheIsotopes:

the computer is definitely over twelve years old.

🤔 I can see how this could be a problem when trying to run the latest version of WebGL. 🤣

@mikeller mikeller merged commit d93ad9a into betaflight:master Feb 25, 2020
@mikeller mikeller deleted the update_libraries branch February 25, 2020 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants