Can't run V-rep in headless mode from cmd

Report crashes, strange behaviour, or apparent bugs
Post Reply
JoakimMagnusson
Posts: 10
Joined: 09 May 2018, 10:31

Can't run V-rep in headless mode from cmd

Post by JoakimMagnusson » 24 May 2018, 10:42

On windows 10 on the command line. If i type:
vrep.exe -h
then i get the following printed out and V-rep crashes.

Code: Select all

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\blabla>vrep.exe -h
C:\Users\blabla\Using the default Lua library.
Add-on script 'vrepAddOnScript-addOnScriptDemo.lua' was loaded.
[statusbar]: Default scene was set-up.
[statusbar]: Simulator launched.
Simulator launched.
Plugin 'MeshCalc': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'MeshCal
c' plugin.
Error with plugin 'MeshCalc': load failed (failed initialization).
Plugin 'BlueZero': loading...
Plugin 'BlueZero': warning: replaced variable 'simB0'
Plugin 'BlueZero': load succeeded.
Plugin 'BubbleRob': loading...
Error, could not find or correctly load v_rep.dll. Cannot start 'BubbleRob' plug
in.
Error with plugin 'BubbleRob': load failed (failed initialization).
Plugin 'Bwf': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'Bwf' pl
ugin.
Error with plugin 'Bwf': load failed (failed initialization).
Plugin 'CHAI3D': loading...
Plugin 'CHAI3D': load succeeded.
Plugin 'Cam': loading...
Plugin 'Cam': load succeeded.
Plugin 'Collada': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'Collada
' plugin.
Error with plugin 'Collada': load failed (failed initialization).
Plugin 'ConvexDecompose': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'ConvexD
ecompose' plugin.
Error with plugin 'ConvexDecompose': load failed (failed initialization).
Plugin 'CustomUI': loading...
Initialization failed, running in headless mode. Cannot start 'CustomUI' plugin.

Error with plugin 'CustomUI': load failed (failed initialization).
Plugin 'DynamicsBullet-2-78': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'Dynamic
sBullet_2_78' plugin.
Error with plugin 'DynamicsBullet-2-78': load failed (failed initialization).
Plugin 'DynamicsBullet-2-83': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'Dynamic
sBullet_2_83' plugin.
Error with plugin 'DynamicsBullet-2-83': load failed (failed initialization).
Plugin 'DynamicsNewton': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'Dynamic
sNewton' plugin.
Error with plugin 'DynamicsNewton': load failed (failed initialization).
Plugin 'DynamicsOde': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'Dynamic
sOde' plugin.
Error with plugin 'DynamicsOde': load failed (failed initialization).
Plugin 'DynamicsVortex': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'Dynamic
sVortex' plugin.
Error with plugin 'DynamicsVortex': load failed (failed initialization).
Plugin 'ExternalRenderer': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'Externa
lRenderer' plugin.
Error with plugin 'ExternalRenderer': load failed (failed initialization).
Plugin 'ICP': loading...
Plugin 'ICP': warning: replaced variable 'simICP'
Plugin 'ICP': load succeeded.
Plugin 'Image': loading...
Plugin 'Image': warning: replaced variable 'simIM'
Plugin 'Image': load succeeded.
Plugin 'Joystick': loading...
Plugin 'Joystick': load succeeded.
Plugin 'K3': loading...
Error, could not find or correctly load v_rep.dll. Cannot start 'K3' plugin.
Error with plugin 'K3': load failed (failed initialization).
Plugin 'LuaCommander': loading...
LuaCommander: cannot find the statusbar widget
Error with plugin 'LuaCommander': load failed (failed initialization).
Plugin 'LuaRemoteApiClient': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'LuaRemo
teApiClient' plugin.
Error with plugin 'LuaRemoteApiClient': load failed (failed initialization).
Plugin 'Mtb': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'MTB' pl
ugin.
Error with plugin 'Mtb': load failed (failed initialization).
Plugin 'OMPL': loading...
Plugin 'OMPL': warning: replaced variable 'simOMPL'
Plugin 'OMPL': load succeeded.
Plugin 'OpenMesh': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'OpenMes
h' plugin.
Error with plugin 'OpenMesh': load failed (failed initialization).
Plugin 'PovRay': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'RayTrac
er' plugin.
Error with plugin 'PovRay': load failed (failed initialization).
Plugin 'Qhull': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'Qhull'
plugin.
Error with plugin 'Qhull': load failed (failed initialization).
Plugin 'RRS1': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'RRS1' p
lugin.
Error with plugin 'RRS1': load failed (failed initialization).
Plugin 'ReflexxesTypeII': loading...
Plugin 'ReflexxesTypeII': load succeeded.
Plugin 'RemoteApi': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'RemoteA
pi' plugin.
Error with plugin 'RemoteApi': load failed (failed initialization).
Plugin 'SDF': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'SDF' pl
ugin.
Error with plugin 'SDF': load failed (failed initialization).
Plugin 'SurfaceReconstruction': loading...
Plugin 'SurfaceReconstruction': warning: replaced variable 'simSurfRec'
Plugin 'SurfaceReconstruction': load succeeded.
Plugin 'Urdf': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'Urdf' p
lugin.
Error with plugin 'Urdf': load failed (failed initialization).
Plugin 'Vision': loading...
Error, could not find or correctly load the V-REP library. Cannot start 'Vision'
 plugin.
Error with plugin 'Vision': load failed (failed initialization).
Plugin 'Wii': loading...
Plugin 'Wii': load succeeded.
The 'MeshCalc' plugin could not be initialized.
Edit: I updated V-rep and now it doesn't crash. But i still got the same error messages.

coppelia
Site Admin
Posts: 6747
Joined: 14 Dec 2012, 00:25

Re: Can't run V-rep in headless mode from cmd

Post by coppelia » 24 May 2018, 12:57

Hello,

it seems that many plugins do not get loaded. Are they present in that folder? Can they be loaded when you start not in headless mode?

Cheers

JoakimMagnusson
Posts: 10
Joined: 09 May 2018, 10:31

Re: Can't run V-rep in headless mode from cmd

Post by JoakimMagnusson » 24 May 2018, 13:26

Yes it works when not in headless mode. But I tried to run the command from the installation folder and now it worked, thanks. Can I do something to be able to run the command from outside of the folder?

coppelia
Site Admin
Posts: 6747
Joined: 14 Dec 2012, 00:25

Re: Can't run V-rep in headless mode from cmd

Post by coppelia » 29 May 2018, 06:53

I think you will have to modify the client application for that.

Cheers

Post Reply