1.5.1 Installer Crash and Mouse Bug (Mac OS X 10.5)
by Christopher Andrade · in Torque Game Builder · 10/30/2007 (1:10 am) · 14 replies
I'm having a lot of trouble with the "TorqueGameBuilder_Pro_1_5_1" installer application. It crashes on launch on my Intel Mac Pro. Luckily I do have a G5 iMac in the household running 10.5 that installed without any problems.
In my case I was able to install it to this other computer, then copy the Torque folder manually to my system. It's still something that should be looked into. Anyone else have this issue?
Anyway, here's the crashlog.
In my case I was able to install it to this other computer, then copy the Torque folder manually to my system. It's still something that should be looked into. Anyone else have this issue?
Anyway, here's the crashlog.
Process: installbuilder [756] Path: /Users/chris/Public/TorqueGameBuilder_Pro_1_5_1.app/Contents/MacOS/installbuilder Identifier: com.bitrock.installbuilder Version: ??? (???) Code Type: PPC (Translated) Parent Process: launchd [128] Date/Time: 2007-10-30 01:09:51.149 -0700 OS Version: Mac OS X 10.5 (9A581) Report Version: 6 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00000000fd122d24 Crashed Thread: 0 Thread 0 Crashed: 0 ??? 0x800c4624 0 + 2148288036 1 translate 0xb8098bae 0xb8000000 + 625582 2 translate 0xb80bea7a 0xb8000000 + 780922 3 translate 0xb80b6b77 0xb8000000 + 748407 4 translate 0xb80d4530 0xb8000000 + 869680 5 translate 0xb813d2cf spin_lock_wrapper + 4259 Thread 1: 0 ??? 0x800bb8e6 0 + 2148251878 1 ??? 0x800c30dc 0 + 2148282588 2 translate 0xb818b69a CallPPCFunctionAtAddressInt + 202826 3 ??? 0x800ec075 0 + 2148450421 4 ??? 0x800ebf32 0 + 2148450098 Thread 2: 0 translate 0xb8152b85 spin_lock_wrapper + 92505 1 translate 0xb8162e01 CallPPCFunctionAtAddressInt + 36785 2 translate 0xb80bd6fb 0xb8000000 + 775931 3 translate 0xb80b6b77 0xb8000000 + 748407 4 translate 0xb80d4530 0xb8000000 + 869680 5 translate 0xb813c9e9 spin_lock_wrapper + 1981 Thread 0 crashed with X86 Thread State (32-bit): eax: 0x000002e4 ebx: 0xb809d112 ecx: 0x80000000 edx: 0x0000002e edi: 0xfd122d1c esi: 0xffff399c ebp: 0xb7fff938 esp: 0xb7fff8c4 ss: 0x0000001f efl: 0x00010216 eip: 0x800c4624 cs: 0x00000017 ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037 cr2: 0xfd122d24 Binary Images: 0xb8000000 - 0xb81d7fe7 translate ??? (???) /usr/libexec/oah/translate Translated Code Information: Rosetta Version: 20.44 Args: /Users/chris/Public/TorqueGameBuilder_Pro_1_5_1.app/Contents/MacOS/installbuilder -psn_0_676005 Exception: EXC_BAD_ACCESS (0x0001) Snip...
#2
10/31/2007 (1:18 am)
Hi Christopher. I wanted to let you know that we are aware of the Bitrock issue with OSX 10.5 and will be addressing it ASAP. I will keep you posted!
#3
Wish I had the source, I'd post a quick patch :)
Take care guys.
11/02/2007 (9:06 pm)
I just wanted to give a little more detail on the OSX 10.5 mouse problem. The cursor position is correct however the onclick appears to have an x/y offset of exactly the top-left corner of the TGB window, or and easier description, it seems to onclick is relative to the screen co-ordinates, not the client area of the window.Wish I had the source, I'd post a quick patch :)
Take care guys.
#4
11/16/2007 (12:26 pm)
I also have the mouse jumps on click problem. Did anyone fix this yet and can share the solution to it?
#5
11/16/2007 (2:20 pm)
I poked around the source code to see if I could find where the problem originates... but I don't think I have enough programming experience. I wasn't sure what I was looking at to be honest. :(
#6
I would really like to use the improvements 1.5.1 may offer, and I too am having the failures on the installation.
Why is it we even have an installation? Is it for a license check? I doubt that. Is it to lay the files in a certain location? I'm not too sure there.
Given that the Mac platform is always on the low end of priorities for GG (I know you guys try, but Windows is always given more priority and resources), why can't we just have a tarball or a .zip file to get us going? We are developers, so we should be able to lay the files in the /Applications folder or anywhere else we would like.
Please consider just giving us access to an archive of the code and demos. I'm sure it would help get the Mac developers the TGB they want.
11/19/2007 (1:28 pm)
I bought the TGB Commercial license a while back, worked on a game, then put it to rest for a while. Now, I'm back to work on it some more and saw there was an update to the original 1.3 code I had been using (moving to the 1.5).I would really like to use the improvements 1.5.1 may offer, and I too am having the failures on the installation.
Why is it we even have an installation? Is it for a license check? I doubt that. Is it to lay the files in a certain location? I'm not too sure there.
Given that the Mac platform is always on the low end of priorities for GG (I know you guys try, but Windows is always given more priority and resources), why can't we just have a tarball or a .zip file to get us going? We are developers, so we should be able to lay the files in the /Applications folder or anywhere else we would like.
Please consider just giving us access to an archive of the code and demos. I'm sure it would help get the Mac developers the TGB they want.
#7
If you want, you can just download the Windows version, and (if you have access to a Windows machine or Boot Camp), just install there, move the source code and files over to the Mac side, and just compile there. However, you're still going to run into the Leopard-specific problems described in that thread.
11/19/2007 (2:05 pm)
This thread (www.garagegames.com/mg/forums/result.thread.php?qt=68668) has the latest updates on what's happening with the Leopard-compatible version of 1.5.1. It is apparently more than just the installer (as they have that fixed already it seems), and has more to do with actual issues with Leopard.If you want, you can just download the Windows version, and (if you have access to a Windows machine or Boot Camp), just install there, move the source code and files over to the Mac side, and just compile there. However, you're still going to run into the Leopard-specific problems described in that thread.
#8
into...
and the mouse should work like normal without the 'jump'.
11/22/2007 (11:12 pm)
After looking through the source code a bit (and noticing the TGE 1.5 doesn't have the same problem in Leopard), I've fixed the mouse bug. In macCarbEvents.cc at approx. line 318 (in the switch case for 'kEventWindowGetClickActivation'), change:Point where;
GetEventParameter (theEvent, kEventParamMouseLocation, typeQDPoint,
NULL, sizeof(Point), NULL, &where);into...
Point where = _MacCarbGetMouseEventLocalCoords(theEvent);
and the mouse should work like normal without the 'jump'.
#9
Edit: Looks like I was a too quick jumping to conclusions, David's fix up above still seems like the better fix.
A fellow in this thread seems to have fixed it by adding a check to see if the user is running 10.5 and up.
www.garagegames.com/mg/forums/result.thread.php?qt=68904
11/23/2007 (2:37 pm)
After checking around, the above fix will work in 10.5 However I'm almost positive it won't work in operating systems 10.4.x and under. Seems pre 10.5 there was a mouse bug in the mouse events that TGB is listening to. The mouse jumping is a the result of 10.5 fixing the mouse bug, but Torque still correcting as if there still was a problem.Edit: Looks like I was a too quick jumping to conclusions, David's fix up above still seems like the better fix.
A fellow in this thread seems to have fixed it by adding a check to see if the user is running 10.5 and up.
www.garagegames.com/mg/forums/result.thread.php?qt=68904
Quote:Kostya Teterin
Member Posted: Nov 05, 2007 09:21
I have fixed the bug. And it seems that all TGB games that are not running in fullscreen mode should have it :(
Here is how to fix it.
In XCode, open the file macCarbEvents.cc
And find the following lines:
// get and update the mouse position
// this event comes in in global coords, so it seems, but only after we
// create an NSWindow from our WindowRef. Apple bug ?
Point where;
GetEventParameter (theEvent, kEventParamMouseLocation, typeQDPoint,
NULL, sizeof(Point), NULL, &where);
Canvas->setCursorPos(Point2I(where.h,where.v));
break;
Make these lines looks like this:
// get and update the mouse position
// this event comes in in global coords, so it seems, but only after we
// create an NSWindow from our WindowRef. Apple bug ?
SInt32 sys;
Gestalt(gestaltSystemVersion, &sys);
if(sys < 0x1050) {
Point where;
GetEventParameter (theEvent, kEventParamMouseLocation, typeQDPoint,
NULL, sizeof(Point), NULL, &where);
Canvas->setCursorPos(Point2I(where.h,where.v));
}
break;
And recompile the TGB.
Looks like the Apple have finally fixed the old bug, and it causes a problem with TGB. :(
#10
11/23/2007 (2:52 pm)
Strange, then. That's the exact code that was working for Torque 1.5.2 in 10.4 AND 10.5. I wonder what that's about? Sorry if I missed this posting -- I did a search for anything related to this, but for some reason I never seem to get any search hits from "Torque Game Builder (TGB) Private Forums" -- I had to traverse this forum manually...
#11
Thanks for posting that fix David!
Edit: My first impressions after using David's fix. Holy cow! It even fixed that weird black window that always opened up behind the TGB window. Works like a charm. A++ would buy again.
11/23/2007 (3:38 pm)
Hmm, your fix works in 10.4 too? I'm sorry, I just glanced over your code and didn't realize you weren't calling the same function. Looks like your solution is the correct way to get mouse data in OS X in general correct? I'll recompile using your method. It seems like the cleaner safer way to fix this bug.Thanks for posting that fix David!
Edit: My first impressions after using David's fix. Holy cow! It even fixed that weird black window that always opened up behind the TGB window. Works like a charm. A++ would buy again.
#13
I've successfully run TGB on my mac before. But now even when I uninstall, delete torque files, and reinstall I get the same problem where the program won't even open it just sits there bouncing in the dock and crashes when I try to expand it.
I've read a few other posts on mac issues with torque in the forum, and I know the garage games people are working hard to take care them.
I've tried completely removing and reinstalling, and am considering just running TGB through bootcamp if nothing else works. Just wondering if there was a fix for this yet?
06/15/2009 (10:52 am)
I took a project I started on a pc and tried to open it with my iMac this weekend and the program crashed. Then when I tried to relaunch the program, it timed out and crashed again.I've successfully run TGB on my mac before. But now even when I uninstall, delete torque files, and reinstall I get the same problem where the program won't even open it just sits there bouncing in the dock and crashes when I try to expand it.
I've read a few other posts on mac issues with torque in the forum, and I know the garage games people are working hard to take care them.
I've tried completely removing and reinstalling, and am considering just running TGB through bootcamp if nothing else works. Just wondering if there was a fix for this yet?
#14
Are you still using TGB 1.5.1? Because I think all problems stated above have been fixed in later releases. We have been working with TGB on Mac all the time...
And did TGB work before you launched that project or does it crash with any project you try to open?
06/16/2009 (12:46 am)
@Jeremy SykesAre you still using TGB 1.5.1? Because I think all problems stated above have been fixed in later releases. We have been working with TGB on Mac all the time...
And did TGB work before you launched that project or does it crash with any project you try to open?
Torque Owner Christopher Andrade
Even using Torque on the iMac is problematic, it seems like there is a pretty bad mouse bug on that one. If I click the mouse, the mouse cursor jumps almost 2 inches down-left. Click events seem to be registering AFTER the mouse jump, so it makes clicking difficult on some parts of the screen, and flat out impossible on the top of the screen near the menu bar.
Edit: I didn't see the thread in the Public General Torque Game Builder forum. Feel free to delete this thread if it is redundant.