You are not logged in.

#1 2023-01-13 14:51:09

evren320
Member
Registered: 2022-11-22
Posts: 12

wine and nodejs problem after arch system update recently

i have a problem just after a system upgrade i made recently, problem was not exist before the update, so here is it:

i use wine to run nodejs "node.exe" v8.17 from another executable, which is working perfectly on both windows and linux-wine, i searched and found the problem is in readline closes unexpectedly and sometimes just randomly works.
so to test it i made a simple nodejs program test.js

const readline = require('readline');
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
rl.on('line', (input) => { console.log("Received: " + input); });

to launch it:

wine node.exe test.js

sometimes process continue and readline works as expected, but sometimes node process just quits and trigger readline.on('close') event before quitting.
i am not sure what closes the readline, but randomly it works, randomly it doesn't work, i could not figure out why this happened after a system update.
i tried different wine versions and nodejs versions, but result is just same.
i tried this on another computer that is not updated archlinux, it still worked, but i had updated that computer then same problem now happens on that computer too, so i suspect something that is updated has induce a bug that closes readline unexpectedly randomly.

i appreciate any help.

Last edited by evren320 (2023-01-13 14:55:52)

Offline

Board footer

Powered by FluxBB