Non-interactive usage

Questions about Wine on Linux
Locked
andrew_thomas
Level 1
Level 1
Posts: 9
Joined: Fri Mar 29, 2013 5:29 am

Non-interactive usage

Post by andrew_thomas »

Hi,

I am trying to run Light Wave lwsn.exe under wine on RedHat RHEL 5.4.

I have gotten it working interactively and it works without problem, however I need to be able to submit it through our LSF cluster (i.e. non-interactively). When I execute it I get the following error:

wine error buffer overflow in getpathp.c's joinpath()

I have searched the internet and this forum but can only find one other person asking about it but there aren't any answers. If someone could point me in the right direction or has any recommendations they would be greatly appreciated :)
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Non-interactive usage

Post by dimesio »

You didn't mention what Wine version you're using. If it's not the latest development release, upgrade. If it still doesn't work, post terminal output.
andrew_thomas
Level 1
Level 1
Posts: 9
Joined: Fri Mar 29, 2013 5:29 am

Re: Non-interactive usage

Post by andrew_thomas »

Thanks for the reply :)

It is wine-1.5.25. The output I get when I run the command interactively I get the x errors but when I run it through the cluster I get additional errors.

The full output is:

fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 2
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
err:systray:initialize_systray Could not create tray window
fixme:heap:HeapSetInformation 0x7218000 0 0x23fc20 4
fixme:heap:HeapSetInformation 0x7328000 0 0x23fc20 4
fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x23e4f0 1 C) semi-stub
fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x23dfd0 1 C) semi-stub
Fatal Python error: buffer overflow in getpathp.c's joinpath()
fixme:msvcrt:__clean_type_info_names_internal (0x19625e8) stub
fixme:msvcrt:__clean_type_info_names_internal (0x1d35678) stub
fixme:msvcrt:__clean_type_info_names_internal (0x198b6e8) stub
fixme:msvcrt:__clean_type_info_names_internal (0x1803158) stub
fixme:msvcrt:__clean_type_info_names_internal (0x185a148) stub
fixme:msvcrt:__clean_type_info_names_internal (0x17cfc38) stub
fixme:msvcrt:__clean_type_info_names_internal (0x15c0b38) stub
fixme:msvcrt:__clean_type_info_names_internal (0x146c168) stub
fixme:msvcrt:__clean_type_info_names_internal (0x14d5ab8) stub
fixme:msvcrt:__clean_type_info_names_internal (0x1526af8) stub
fixme:msvcrt:__clean_type_info_names_internal (0x13e06c8) stub
fixme:msvcrt:__clean_type_info_names_internal (0x1404998) stub
fixme:msvcrt:__clean_type_info_names_internal (0x139c748) stub
fixme:msvcrt:__clean_type_info_names_internal (0x13be6e8) stub
fixme:msvcrt:__clean_type_info_names_internal (0x125e448) stub
fixme:msvcrt:__clean_type_info_names_internal (0xd22a98) stub
fixme:msvcrt:__clean_type_info_names_internal (0xf10578) stub
fixme:msvcrt:__clean_type_info_names_internal (0x108bed8) stub
fixme:msvcrt:__clean_type_info_names_internal (0x8bc5c8) stub
fixme:msvcrt:__clean_type_info_names_internal (0x537868) stub
fixme:seh:__CxxFrameHandler 0x23dbb0 23dd20 0x23c5b0 0x23c410: not implemented
fixme:seh:__CxxFrameHandler 0x23dbb0 23de10 0x23c5b0 0x23c410: not implemented
fixme:seh:__CxxFrameHandler 0x23dbb0 23dfb0 0x23c5b0 0x23c410: not implemented
fixme:seh:__CxxFrameHandler 0x23dbb0 23e020 0x23c5b0 0x23c410: not implemented
fixme:seh:__CxxFrameHandler 0x23dbb0 23e090 0x23c5b0 0x23c410: not implemented
fixme:msvcrt:__clean_type_info_names_internal (0x1e2c7ef0) stub
fixme:msvcrt:__clean_type_info_names_internal (0x61069bf8) stub
fixme:msvcrt:__clean_type_info_names_internal (0x18008f8f8) stub
fixme:msvcrt:__clean_type_info_names_internal (0x6599d3c8) stub
fixme:msvcrt:__clean_type_info_names_internal (0x672a72b8) stub

I somehow missed this error:

fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 2

But am guessing this is what is causing the further problems? (Will go and google it now)
andrew_thomas
Level 1
Level 1
Posts: 9
Joined: Fri Mar 29, 2013 5:29 am

Re: Non-interactive usage

Post by andrew_thomas »

Sorry I do get that message when running it interactively as well. The only difference is the python error.

I have uploaded the output from running the two commands:

Interactive Output : http://dumpr.info/td/1ov3zl7

This is when I run the program directly from a terminal prompt.

Batch output : http://dumpr.info/td/1sc78p4

This is the output when I run the program through a submission script to the cluster. In both examples the same command was used:

wine n:\\NewTek\\LightWave11.5\\bin\\lwsn.exe -3 -q -cn:\\conf\\LWEXT11-64.CFG -dz:\\home\\andy.thomas\\Atticus z:\\home\\andy.thomas\\Atticus\\Scenes\\black.lws 1 1

But the Batch output gives the Python error:

Fatal Python error: buffer overflow in getpathp.c's joinpath()

Which is the same error this person was getting:

http://stackoverflow.com/questions/1245 ... hon-scipts

Which appears to be a similar scenario.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Non-interactive usage

Post by dimesio »

andrew_thomas wrote: wine n:\\NewTek\\LightWave11.5\\bin\\lwsn.exe -3 -q -cn:\\conf\\LWEXT11-64.CFG -dz:\\home\\andy.thomas\\Atticus z:\\home\\andy.thomas\\Atticus\\Scenes\\black.lws 1 1
Just using the full path will often work, but isn't really the correct way to run apps in Wine. Either cd to the program directory first and then just run wine lwsn.exe, or use wine start /unix if you are using the full path from outside the directory.
andrew_thomas
Level 1
Level 1
Posts: 9
Joined: Fri Mar 29, 2013 5:29 am

Re: Non-interactive usage

Post by andrew_thomas »

Thanks for the reply.

Can you tell me what the purpose of this flag is:

start /unix

I can't find it in the getting started guide or the man pages.
andrew_thomas
Level 1
Level 1
Posts: 9
Joined: Fri Mar 29, 2013 5:29 am

Re: Non-interactive usage

Post by andrew_thomas »

Hi,

I have updated the command so that it now looks like this:

wine ~/.wine/drive_c/Program\ Files/NewTek/LightWave11.5/bin/lwsn.exe -3 -cc:\\conf\\LWEXT11-64.CFG -d"Atticus" Scenes\\black.lws 1 1

I have checked this works OK when submitting it interactively on the server. I then submit the same command to the cluster control software and it executes it on the same box but nothing happens - it just gives the Python error.

If I update the line to:

WINEDEBUG=warn+all wine ~/.wine/drive_c/Program\ Files/NewTek/LightWave11.5/bin/lwsn.exe -3 -cc:\\conf\\LWEXT11-64.CFG -d"Atticus" Scenes\\black.lws 1 1 2> output.txt


The output.txt file contains:

warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\syswow64" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\syswow64" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\wineboot.exe.manifest" not found (c0000034)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\wininit.ini" not found (c0000034)
warn:file:CreateFileW Unable to create file L"C:\\windows\\wininit.ini" (status c0000034)
....
warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\PROGRAM FILES\\NEWTEK\\LIGHTWAVE11.5\\BIN\\plugins\\lscripts\\w3c" not found (c000003a)
warn:msvcrt:MSVCRT__fstat64 :failed-last error (6)
warn:msvcrt:MSVCRT__fstat64 :failed-last error (6)
warn:ntdll:NtQueryFullAttributesFile L"\\??\\C:\\Program Files\\NewTek\\LightWave11.5\\bin\\lib\\os.py" not found (c000003a)
warn:ntdll:NtQueryFullAttributesFile L"\\??\\C:\\Program Files\\NewTek\\LightWave11.5\\bin\\lib\\os.pyc" not found (c000003a)
warn:ntdll:NtQueryFullAttributesFile L"\\??\\C:\\Program Files\\NewTek\\LightWave11.5\\lib\\os.py" not found (c000003a)

Any ideas?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Non-interactive usage

Post by dimesio »

andrew_thomas wrote: I have updated the command so that it now looks like this:

wine ~/.wine/drive_c/Program\ Files/NewTek/LightWave11.5/bin/lwsn.exe -3 -cc:\\conf\\LWEXT11-64.CFG -d"Atticus" Scenes\\black.lws 1 1
Try doing it the way I told you to do it.
Can you tell me what the purpose of this flag is:

start /unix
http://wiki.winehq.org/start
andrew_thomas
Level 1
Level 1
Posts: 9
Joined: Fri Mar 29, 2013 5:29 am

Re: Non-interactive usage

Post by andrew_thomas »

I need to do this in a shell script (i.e. non-interactive). The program renders a 3D Model, doesn't require input.

I am not sure how i am suppose to change the directory. Can I stack wine commands?
andrew_thomas
Level 1
Level 1
Posts: 9
Joined: Fri Mar 29, 2013 5:29 am

Re: Non-interactive usage

Post by andrew_thomas »

Ahh I understand. You mean change to the directory and then execute wine.

In my script i now have:

cd .wine/drive_c/Program\ Files/NewTek/LightWave11.5/bin/
wine start /unix lwsn.exe 2> output.txt

This gives an error:

fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 2
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
err:systray:initialize_systray Could not create tray window
fixme:exec:SHELL_execute flags ignored: 0x00000100
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.


If I execute just "wine lwsn.exe" I get:

fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 2
wine: cannot find L"C:\\windows\\system32\\lwsn.exe"
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
err:systray:initialize_systray Could not create tray window


If I do it interactively I get:

cd /app/creative/lightwave/11.5/NewTek/LightWave11.5/bin/
wine lwsn.exe
LightWave AMD64 ScreamerNet Module (Build 2519)

Usage: lwsn.exe -2 [-c<config file>] [-d<content dir>] [-l<log file>]
[-q] [-t<check interval>] <job file> <reply file>

or: lwsn.exe -3 [-c<config file>] [-d<content dir>] [-l<log file>]
[-q] [-t<check interval>] <scene file> <first frame> <last frame> [<frame step>]

or: lwsn.exe -5 [-c<config file>] [-d<content dir>] [-l<log file>]
[-q] <commands>

Any idea why it behaves so differently?
andrew_thomas
Level 1
Level 1
Posts: 9
Joined: Fri Mar 29, 2013 5:29 am

Re: Non-interactive usage

Post by andrew_thomas »

I think I have worked out what you meant - sorry was being a bit slow. I have changed my script to:

cd /home/andy.thomas/.wine/drive_c/Program\ Files/NewTek/LightWave11.5/bin/
pwd > current_directory.txt
wine start /b /unix ./lwsn.exe -3 -q -c c:\conf\LWEXT11-64.CFG -dc:\Atticus\Scenes\black.lws 1 1

It now launches the lwsn.exe program and starts the process but then crashes (with the same python error) when it tries to load the conf directory - c:\conf\LWEXT11.64.CFG
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Non-interactive usage

Post by dimesio »

Try this:

Code: Select all

cd /home/andy.thomas/.wine/drive_c/Program\ Files/NewTek/LightWave11.5/bin/
pwd > current_directory.txt
wine lwsn.exe -3 -q -c c:\conf\LWEXT11-64.CFG -dc:\Atticus\Scenes\black.lws 1 1
andrew_thomas
Level 1
Level 1
Posts: 9
Joined: Fri Mar 29, 2013 5:29 am

Re: Non-interactive usage

Post by andrew_thomas »

Changed it as you suggested :

wine lwsn.exe -3 -q -c c:\conf\LWEXT11-64.CFG -dc:\Atticus\Scenes\black.lws 1 1

However I still get:

fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 2
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
err:systray:initialize_systray Could not create tray window
fixme:heap:HeapSetInformation 0x7218000 0 0x23fc20 4
fixme:heap:HeapSetInformation 0x7328000 0 0x23fc20 4
LightWave AMD64 ScreamerNet Module (Build 2519)fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x23e4f0 1 C) semi-stub
fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x23dfd0 1 C) semi-stub

CPU number: 847

Fatal Python error: buffer overflow in getpathp.c's joinpath()
fixme:msvcrt:__clean_type_info_names_internal (0x19625e8) stub


It doesn't seem to like any paths. I have tried specifying the WINEPREFIX but it makes no difference. It is as if WINE doesn't know about C: drive.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Non-interactive usage

Post by dimesio »

File a bug.

You might also try asking about this on a python forum.
john_mosher
Newbie
Newbie
Posts: 1
Joined: Wed Sep 04, 2013 2:35 pm

Re: Non-interactive usage

Post by john_mosher »

Any luck with resolving this issue? I see the bug ticket is still open.

We are going to be trying to run Lightwave in batch mode on a Linux based cluster running RHEL 6.2 and wine appears to be the only viable option. We haven't tried anything at this point so I can't add any input to the existing discussion.
craigp2001
Newbie
Newbie
Posts: 1
Joined: Fri Mar 14, 2014 7:39 am

Re: Non-interactive usage

Post by craigp2001 »

i have lightwave 11.5 installed and running perfect in mint 16 64bit using wine 1.4.1 32 bit. i was amazed how smooth it was, and opengl with my low end nividia card is perfect.
Locked