Can not open the batch file

Known Issues and Problems with BCI2000
suekuu
Posts: 10
Joined: 12 Jul 2020, 23:18

Can not open the batch file

Post by suekuu » 14 Jul 2020, 12:27

Dear all

I download the bci2000-trunk6134 source code and set it up followed by the instructions https://www.bci2000.org/mediawiki/index ... ng_BCI2000. But when I open the batch file (CursorTask_SignalGenerator.bat), the cmd just pop up and disapear, with nothing happened. I also tried BCI2000Laucher.exe, but it says "Could not connect to operator module".

FYI, I also download the BCI2000 Contributed Code(v3.0.5), and it runs perferctly well.

I find some relevant posts in BBS, viewtopic.php?t=1110, viewtopic.php?t=3405 ,viewtopic.php?t=3217, but sadly none of them works for me.

I do appreciate the help.
Last edited by suekuu on 18 Jul 2020, 03:40, edited 1 time in total.

mellinger
Posts: 1210
Joined: 12 Feb 2003, 11:06

Re: Can not open the batch file

Post by mellinger » 14 Jul 2020, 17:08

Hi,

I think you did not build all required binaries. For the batch file to work, you need to build BCI2000Shell and the Operator module in addition to the modules listed in the batch file.

HTH,
Jürgen

suekuu
Posts: 10
Joined: 12 Jul 2020, 23:18

Re: Can not open the batch file

Post by suekuu » 14 Jul 2020, 22:11

Hi,

I did that, indeed. I build all modules in BCI2000.sln, but it still doesn't work.

mellinger
Posts: 1210
Joined: 12 Feb 2003, 11:06

Re: Can not open the batch file

Post by mellinger » 15 Jul 2020, 05:25

To see the error message that causes the batch file to fail, open a CMD shell window, navigate to the directory that contains the batch file, and execute the batch file by typing its name and pressing "enter".

suekuu
Posts: 10
Joined: 12 Jul 2020, 23:18

Re: Can not open the batch file

Post by suekuu » 15 Jul 2020, 07:02

It says: Operator module does not listen on localhost:3999

And I also checked that this port is not occupied by other processes.

mellinger
Posts: 1210
Joined: 12 Feb 2003, 11:06

Re: Can not open the batch file

Post by mellinger » 15 Jul 2020, 08:28

Do you have any 3rd-party firewall software installed?

suekuu
Posts: 10
Joined: 12 Jul 2020, 23:18

Re: Can not open the batch file

Post by suekuu » 15 Jul 2020, 09:09

No, only Windows Defender Firewall (I am using Win10)

When I shut down the Windows Defender Firewall, it still says: Operator module does not listen on localhost:3999.

I lauched the Operator.exe directly, the localhost:3999 remains available, and the Operator.exe didn't show up.

mellinger
Posts: 1210
Joined: 12 Feb 2003, 11:06

Re: Can not open the batch file

Post by mellinger » 15 Jul 2020, 09:52

Could it be that there is a defunct Operator process still running? Use task manager to detect and kill such a process.
Alternatively, try a reboot of your machine.

suekuu
Posts: 10
Joined: 12 Jul 2020, 23:18

Re: Can not open the batch file

Post by suekuu » 15 Jul 2020, 10:06

I checked and there is no process named Operator.exe, or could it be other names?
I tried reboot, it still doesn't work

mellinger
Posts: 1210
Joined: 12 Feb 2003, 11:06

Re: Can not open the batch file

Post by mellinger » 15 Jul 2020, 11:43

As I have no more suggestions to make, I'll try to reproduce your issue on my machine. Which version of Visual Studio are you using? Which version of Qt are you linking against?

suekuu
Posts: 10
Joined: 12 Jul 2020, 23:18

Re: Can not open the batch file

Post by suekuu » 15 Jul 2020, 13:01

I am using VS2017 and Qt5.14.2 (MSVC2017 32bit).

At first I followed the instructions https://www.bci2000.org/mediawiki/index ... ng_BCI2000 and downloaded /svn/tags/releases/current through SVN and Qt5.14.2 64bit. However, I found that some source code don't support Qt 64bit, so I changed the Qt into 32bit.

Then I still found it hard to build the modules, there were many errors saying that some files are lost or some CMakeList.txt are wrong. Now I think it may be caused by the fact that I updated some subfolders through SVN, in order to get the newest version of source code, which leads to the mixture of different versions.

Then I just downloaded the newest version trunk-6134, separatly but without deleting the older version, and at this time, all modules were built and released successfully in Win32, except the followings:
GameBreakout,
demoneurod,
AmpServerPro,
CortecADC,
due to some fatal errors.

And then, when I tried to launch the batch file, I came across this issue.

Could it because I am using 32bit? or the failure of some modules? or I downloaded the older version source code and tried and failed to build it?

Sorry I didn't bring it up at first. Thank you very much!

the following attachments are the configuration of CMake, I hope these will help.
download/file.php?mode=view&id=388
download/file.php?mode=view&id=389

as for the error message in cmd, I find it different this time : application initialization failed.
Attachments
1.png
1.png (36.42 KiB) Viewed 782139 times
2.png
2.png (36.05 KiB) Viewed 782139 times
Last edited by suekuu on 18 Jul 2020, 04:18, edited 1 time in total.

mellinger
Posts: 1210
Joined: 12 Feb 2003, 11:06

Re: Can not open the batch file

Post by mellinger » 15 Jul 2020, 13:51

How did you get access to the contents of src/private? Your user account is not listed in the svn access file.

suekuu
Posts: 10
Joined: 12 Jul 2020, 23:18

Re: Can not open the batch file

Post by suekuu » 15 Jul 2020, 14:04

I download the trunk throughhttps://www.bci2000.org/tracproj/browser, because it is quite slow through SVN

mellinger
Posts: 1210
Joined: 12 Feb 2003, 11:06

Re: Can not open the batch file

Post by mellinger » 15 Jul 2020, 14:36

Ah, trac was misconfigured. Thank you.

mellinger
Posts: 1210
Joined: 12 Feb 2003, 11:06

Re: Can not open the batch file

Post by mellinger » 15 Jul 2020, 14:57

as for the error message in cmd, I find it different this time : application initialization failed.
That probably means the program is missing a DLL it requires. Did you get any warning messages while building?

Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests