-
Notifications
You must be signed in to change notification settings - Fork 150
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 Report_Getting " PrintDeps.exe Bad image" pop-ups while running tests from terminal using ibm_db package with Playwright with JavaScript #974
Comments
hello from the Playwright team! In the past a few users ran into this issue with using the library, which broke Playwright. We are unsure if its an issue on our or on your side. When I was debugging it, I saw that after we load the native ibm binding, it stops working, maybe you have a clue on whats going on there. See microsoft/playwright#28846 (comment). Thanks! |
@mxschmitt @54995610 what was the previous version of ibm_db which was working? |
I think it was never working. It only reproduces on Windows and it also reproduced without util.promisify. |
That's correct we are also seeing this issue even without using util,promisify. |
@54995610 Could you please share simplified steps to reproduce this issue on my Windows system? I have not used Playwright yet. Thanks. |
OS: Windows
Actual: throws with a weird error (via a Windows MessageBox) when we launch PrintDeps.exe via child_process.spawn Note: We mitigated it on the Playwright side for now, @54995610 has not confirmed yet, that it works for him, but for me did not reproduce anymore. |
@mxschmitt Thanks for sharing the repro steps. I am able to reproduce the issue and getting test result as below:
The reason for these pop-ups only for |
Closing the issue now as issue seems with playwright. Once, you have input from playwrite team with detail, you can post here and we can reopen the issue. Thanks. |
System info
Playwright Version: v.1.40.1, JavaScript
Operating System: Windows 11 Enterprise 64, Version 10.0.19045 Build 19045
Browser: All (for example: Chromium version
Node version: v.18.19.0
ibm_db v.3.2.1 (https://www.npmjs.com/package/ibm_db)
We are using Playwright with Javascript for our UI automation where we are also establishing a connection to IBM Database by using following two :-
var ibmdb = require('ibm_db')
const open = util.promisify(ibmdb.open)
When I am executing the script I am getting 8 different PrintDeps.exe bad image pop-ops where I have to close all those 8 pop-ups manually and that's when the execution is starting.
We are using version :- "@playwright/test": "^1.40.1".
Note:- I did placed the " var ibmdb = require('ibm_db')" inside the function and I was able to execute the script without any issues. Actual issue comes when I execute my test scripts in Parallel or sequentially, first test script will get executed successfully and as soon second test script starts, we are seeing following 8 pop-ups.
Also, when I comment above two lines of code and assume I am not using ibm_db in my code, all my code is working parallelly and sequentially.
Observation :- When we do npx playwright install on my machine it is downloading "chromium-1091" folder in "C:\Users\Userid\AppData\Local\ms-playwright" folder where I think it is causing the issue.
We did set the PATH and also created a variable 'IBM_DB_HOME' with path having till 'license'.
The text was updated successfully, but these errors were encountered: