-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Uknown error when closing standalone selenium-webdriver on CI #2728
Comments
Thanks for creating a detailed example and explanation! I'm not familiar with AppVeyor, but the fact that this works fine locally and some quick searching seems to point to an environmental issue, particularly with Java? I'd probably reach out to the AppVeyor folks and see if they can offer any assistance in debugging/configuring the build environment. If it turns out to be an issue with the protractor internals we should definitely resume the conversation here. Thanks! |
Hi Nick, AppVeyor developer is here. Thanks for looking into that. Can you give a hint what might be wrong with AppVeyor environment? Looks like that thread is related to Linux. I'm sure many customers would benefit from being able to run Protractor on AppVeyor environment! |
@FeodorFitsner I won't be able to help much until later this evening, but i'd be happy to offer any assistance I can. I totally blanked on the fact that AppVeyor is windows only. The problem should be (hopefully) similar enough though.
You can use the example files to test this (i'll try to get an AppVeyor project set up later for testing). |
Thanks willing to help with that. No rush here. I don't think we ever installed JNA explicitly on build workers. I thought it's something going along with Oracle's Java distributive, but looks like it's kind of a library: https://github.com/java-native-access/jna that should go with an app. |
I've been able to reproduce this with a smaller project without browserstack here. It looks like even though JNA is a dependency of selenium it will delegate to the system's version of JNA unless explicitly told not to (i'm not a Windows nor Java expert, so take that with a grain of salt). I haven't been able to find how to figure out which version of JNA is installed on these boxes but an older version that has tagged along with another package seems a likely culprit here. I think this is more of a windows/selenium issue than a protractor one. I'm reaching a point of diminishing returns in terms of my expertise here but i'd be happy to continue to coordinate things if you want a second pair of eyes. |
Thanks for looking into that and the sample! |
@sjelin I think we can close this? I'd like to work on getting AppVeyor tests running (so we can check windows in an automated way instead of having to boot up a VM) and I can follow up things on the AppVeyor side or open another more targeted issue. |
Yeah, thank you! |
I've managed to fix the issue with JNA on AppVeyor. To make it work configure
Full protractor/docs/referenceConf.js Lines 38 to 46 in fa0c692
|
Great news! Thank you. |
Problem
When running Protractor on AppVeyor I get an error when closing the selenium webdriver.
The setup works on my local setup and protractor exits as expected.
Setup
Protractor handles the selenium server with the
seleniumServerJar
option inprotractor.config
.On AppVeyor the projects is build and deployed on a local IIS server.
The tests run fine and the results is as expected.
Repository and build logs
See this repository with a minimalistic setup for complete setup and AppVeyor build for details on the run.
Here is a snippet of my local protractor log on the same build.
The text was updated successfully, but these errors were encountered: