Any luck getting moai.exe to run on Win7x64?

Discussion about using Moai SDK - post questions, bugs and issues here.

Moderators: seebs, franciscotufro

Any luck getting moai.exe to run on Win7x64?

Postby siliconrockstar » Sun Apr 22, 2012 12:18 am

Moai.exe crashes every time I try to run a sample on Win7x64. Fails to run on 32bit XP for me as well. Moai looks super sweet but I can't really play around with it if I can't run a Lua script lol
siliconrockstar
 
Posts: 1
Joined: Sun Apr 22, 2012 12:13 am

Re: Any luck getting moai.exe to run on Win7x64?

Postby derickdong » Sun Apr 22, 2012 10:37 am

How are you trying to run the samples? Are you running the run.bat file? Or are you running it through a console window?

If you are running it through the bat file, when you say it "crashes", what exactly happens? Does the console come up and then quickly disappear, before you're able to read what it says? If so, try opening up the run.bat file in a text editor (Notepad will) do. You should see something like:
Code: Select all
  1. ..\..\..\bin\win32\moai.exe "..\..\config\config.lua" "main.lua"



Add the following on the next line:
Code: Select all
  1. SET /P M = "Hit Enter"



This will cause the console window to wait for the Enter key to be pressed, so you can at least see what its trying to say. I'm going to guess the system simply can't find the path to the MOAI executable.

You may also try running them through the console window. That's usually how I run the programs I'm working on. You'll have to set up an environment variable, so Windows can find the MOAI executable. Once you do, you can just navigate to the appropriate folder, and type 'moai main.lua'.
derickdong
 
Posts: 63
Joined: Wed Nov 09, 2011 2:54 pm

Re: Any luck getting moai.exe to run on Win7x64?

Postby todd » Mon Apr 23, 2012 12:49 am

Most of our development is done on Win7 x64. What release of Moai are you using? What error are you seeing?
User avatar
todd
 
Posts: 262
Joined: Fri Mar 25, 2011 1:11 pm

Re: Any luck getting moai.exe to run on Win7x64?

Postby xmod2 » Sun Jun 17, 2012 9:38 am

I'm having a similar issue on Windows 7 64 bit with SDK 1.2 build 35/36.

Whenever I run the moai.exe executable, I get a generic windows crash on the application. I've put it in the path, run it from explorer, from a command prompt and from the batch scripts in the sample folder. All give me the same error.

I noticed when I remove glut32.dll from the path, the executable will at least complain that it is missing. Note, this crash happens even if I do not supply a lua file to the executable and just run it naked.

Event viewer has the following dump, which may not be very useful:

Faulting application name: moai.exe, version: 0.0.0.0, time stamp: 0x4fb6b835
Faulting module name: moai.exe, version: 0.0.0.0, time stamp: 0x4fb6b835
Exception code: 0xc0000409
Fault offset: 0x001098ae
Faulting process id: 0xec478
Faulting application start time: 0x01cd4ca50739f2bc
Faulting application path: D:\dev\moai-sdk\bin\win32\moai.exe
Faulting module path: D:\dev\moai-sdk\bin\win32\moai.exe
Report Id: 4545ecbb-b898-11e1-8100-005056c00008


Strangely enough, I have a Win7 64 bit system at work that runs the executable fine. I tried bringing over the SDK I have installed there and I get the same issue. There is nothing obviously different between the two workstations that stands out to me.
xmod2
 
Posts: 1
Joined: Sun Jun 17, 2012 9:32 am

Re: Any luck getting moai.exe to run on Win7x64?

Postby Mud » Thu Jul 12, 2012 10:47 am

Same problem. Windows 7 Ultimate (N) w/Service Pack 1, 64-bit.

Just tried it with the latest release (stable, not dev). Win32 host crashes on any script.

Problem Event Name: APPCRASH
Fault Module Name: moai.exe
Exception Code: c0000005
Exception Offset: 00021877
OS Version: 6.1.7601.2.1.0.256.28

Interestingly:

1. The Akuma host on this same machine doesn't work either. It appears to trap whatever exception is causing the crash and reports "bad allocation" to the console.

2. If you have a forever loop at the bottom of your script, the app won't crash (it won't do anything, but it doesn't crash), so whatever it is, it's downstream of executing your script for the first time.

Unfortunately I don't have time right now to build the host from source and run it under the debugger, and the stack from without symbols probably doesn't tell you much, but here it is anyway:

> moai.exe!00421877()
[Frames below may be incorrect and/or missing, no symbols loaded for moai.exe]
moai.exe!004b48c8()
moai.exe!00421823()
moai.exe!004b4bfd()
moai.exe!0042716f()
moai.exe!00427218()
moai.exe!00401ca8()
glut32.dll!100050c2()
glut32.dll!100048d6()
moai.exe!00401e18()
moai.exe!00401fd0()
moai.exe!0064f605()
kernel32.dll!7530339a()
ntdll.dll!77169ef2()
ntdll.dll!77169ec5()
moai.exe!00630036()
moai.exe!00630036()
moai.exe!005f0065()
moai.exe!005f0065()
moai.exe!005f0065()
msvcp90.dll!0031002e()
Mud
 
Posts: 57
Joined: Sun Jan 29, 2012 9:54 pm

Re: Any luck getting moai.exe to run on Win7x64?

Postby todd » Thu Jul 12, 2012 6:32 pm

Thanks. I'll ask Dana to look at it.

It must be an obscure condition because there are a lot of people developing with Moai on Windows every day...
User avatar
todd
 
Posts: 262
Joined: Fri Mar 25, 2011 1:11 pm

Re: Any luck getting moai.exe to run on Win7x64?

Postby dana » Fri Jul 13, 2012 11:47 am

I've talked to Adam about this and neither of us are sure what could be causing it. I've created an issue for it so we'll look into it more in-depth as well. Do you know if previous versions of Moai worked on that machine? Or is this something new as of a recent update?
User avatar
dana
Site Admin
 
Posts: 200
Joined: Fri Mar 02, 2012 6:10 pm
Location: Zipline Games

Re: Any luck getting moai.exe to run on Win7x64?

Postby Mud » Fri Jul 13, 2012 12:44 pm

dana wrote:Do you know if previous versions of Moai worked on that machine? Or is this something new as of a recent update?


MOAI worked fine on this machine before I upgraded my OS. I was running Windows 7 32-bit.

I backed up my files (including an older circa 1.0-ish build of MOAI), reformatted the hard disk, and installed Windows 7 Ultimate 64-bit from MSDN. When I copied my files back onto it, including the same MOAI build that used to fine, MOAI no longer worked.

Yesterday I grabbed the latest version of MOAI to double check, and it crashed. Then I tried Akuma and it crashed, too.

Short version: it has something to with my machine; in particular the OS/software environment.
Mud
 
Posts: 57
Joined: Sun Jan 29, 2012 9:54 pm


Return to Moai SDK

Who is online

Users browsing this forum: No registered users and 0 guests

cron

x