How to: Fixing Various Mac Developer Hangs

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

How to: Fixing Various Mac Developer Hangs

Postby david » Sun Jun 20, 2010 8:32 pm

A bunch of you are on our wave where we've been keeping this updated. Summarizes information scattered around the forum along with some of our own additions. Please feel free to add additional information and links below and I'll keep this post updated now.


1 Smart client opens to a blank screen

See viewtopic.php?t=13140 for a more detailed discussion of this issue.

Fix #1
Close all open editors and restart Servoy.

Fix #2
Delete the globals.js.launch files in your workspace:

Code: Select all
rm [workspace_directory]/.metadata/.plugins/org.eclipse.debug.core/.launches/*


2 Servoy doesn't finish starting up

This one is not fun. Either your workspace and/or your Servoy directory have some messed up files in them.

Fix #1: Reset your workspace
1 Rename your workspace. IE, add "_archive" to the end of the name
2 Create a new folder with the same name as your original workspace folder
3 Open Servoy. You should have nothing in your file system at this point. But hey, now it's opening again! If not, see "Fix #2"
4 Choose "File > Import... > General > Existing projects into workspace"
5 Click "Next" and for "Select root directory" navigate to your archived workspace.
6 Choose the projects you want to import, make sure "Copy projects into workspace" is selected and click "Finish."

You now have all of your projects back. The unfortunate part is that many custom Eclipse settings have to be set back up from scratch again at this point. Like your SVN connections. (An SVN bug is probably the single biggest culprit for this issue though and somewhere on the forum I think Servoy recommends a different versioning system. TODO: insert link).

Fix #2: Reinstall Servoy
If Servoy doesn't startup with a blank workspace as described in steps 1 & 2 above, then reinstall Servoy and start at step 4 above to get your files back.


3 "Servoy takes too long to connect to the IDE"
Fairly benign error as you just can't use the debugger when this happens. Restart.


4 Headless client quits working
This happens everytime you terminate the debugger before a method the headless client triggered is finished. Restart.


5 Crash when hitting a dialogue plugin call with the debugger on
This is a guaranteed crash everytime on a Mac (not sure with windows). 50% of the time it whacks out your SVN information as well (again, likely SVN bug fault). You can either reset your SVN up from scratch or:

Fix
- delete directory: "<workspace_directory>/.metadata/.plugins/org.eclipse.core.resources"
- in Eclipse, go to "File->Import->Existing projects into Workspace"
- choose your workspace as root directory and do NOT check "Copy projects into workspace" (they're already there)


6 Servoy doesn't finish quitting

This one is messing with us. I moved a big solution up to 5.1.4 to test and soon discovered that with smart client open, Servoy hangs on quit every time. Troy's been having this same problem with just about every v5 version to date and 5.1.4 solved it on his machine. *head scratch*

I'm on Mac 10.5.8 and I think Troy is on 10.6.x. I have the latest Java update (thanks Apple for the bonus delete character) and Troy doesn't.

Fix
- Force quit. (At the point Servoy hangs, Eclipse has already done its workspace cleanup -- I haven't had any adverse consequences yet.)
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: How to: Fixing Various Mac Developer Hangs

Postby ptalbot » Mon Jun 21, 2010 3:02 am

A very nice compilation David, thanks for sharing!

When I see the kind of crap you guys are confronted with in developer on Mac OS X, I'm always wondering whether you are brave or simply mad?
I mean, it would probably be a lot easier (and less buggy) to develop with Servoy using a Virtual Windows install...
For client, I can see the point of having a platform capable of delivering to Mac OS X of course, but for development? :roll: :!: :?: :!: :shock:

Maybe the best workaround for various Mac developer hangs would be VMWare or Parallels? :twisted:
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: How to: Fixing Various Mac Developer Hangs

Postby ShaneK » Mon Jun 21, 2010 4:41 pm

Oh man Patrick,

Don't even say that! We started using FoxPro about 15 years ago because at the time they had Mac and Windows versions and we have about a 50-50 mac/pc ratio here. Within a couple years, Microsoft killed the Mac version, and we were stuck with lame solutions for over 10 years.

Now, we are just starting to move that old foxpro db to Servoy. If they pulled the plug on the Mac client, I'd ask for a refund!
ShaneK
 
Posts: 7
Joined: Wed Jun 16, 2010 11:05 pm
Location: Lindale, Texas

Re: How to: Fixing Various Mac Developer Hangs

Postby ptalbot » Mon Jun 21, 2010 4:47 pm

ShaneK wrote:Oh man Patrick,

Don't even say that! We started using FoxPro about 15 years ago because at the time they had Mac and Windows versions and we have about a 50-50 mac/pc ratio here. Within a couple years, Microsoft killed the Mac version, and we were stuck with lame solutions for over 10 years.

Now, we are just starting to move that old foxpro db to Servoy. If they pulled the plug on the Mac client, I'd ask for a refund!

I'm not saying anything like that!
Like you I care a lot about Servoy Mac CLIENT.
I'm just saying that for developer this is clearly not the best platform...
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: How to: Fixing Various Mac Developer Hangs

Postby david » Mon Jun 21, 2010 8:28 pm

Believe it or not, with this cheat sheet close at hand developing on a Mac is quite smooth...now. With standard Servoy development tasks, I rarely have to pull this out anymore (without SVN, you'd probably never be reading this once you figure out to avoid debugging a dialogue plugin call).

Pushing the envelope is when things can get a bit dicey. Usually happens when we're combining various additional technologies (web client integrations, inline Java libraries, your Browser Suite, etc). Just have to be ready on those days.
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: How to: Fixing Various Mac Developer Hangs

Postby ptalbot » Mon Jun 21, 2010 8:54 pm

Hey David,
As you know, pushing the envelope is what I like to do as much as I can...
so I guess OS X is not for me then :(
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: How to: Fixing Various Mac Developer Hangs

Postby Robert Huber » Tue Jun 22, 2010 10:54 am

@Patrick

I just would strongly like to say that Mac Developers should have the same treatment as Windows Developers, and of course for that matter, Linux Developers. So I expect from Servoy the same attention in doing their work right for the Mac platform as for other platforms. I really do not have much humour for that topic, as I do not see it as very funny.

Regards,Robert
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland

Re: How to: Fixing Various Mac Developer Hangs

Postby ptalbot » Tue Jun 22, 2010 2:50 pm

Robert Huber wrote:I really do not have much humour for that topic, as I do not see it as very funny.

I don't find it particularly funny either, but it's more to do with Apple's treatment of Java than Servoy's treatment of the Mac.

As far as I know, there is more specific code related to Mac to workaround various quirks than there is for any other platforms.
I can tell you that it's also the case for the BrowserSuite, and I didn't find it funny.

So what else to do than take it with humor, except perhaps pressing Steve Jobs to finally accept Java as a first class citizen on his platform?
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: How to: Fixing Various Mac Developer Hangs

Postby david » Tue Jun 22, 2010 3:15 pm

Considering the long history of Mac Java bugs, I think Steve-o is trying to kill Java on a Mac like he his Flash :)
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: How to: Fixing Various Mac Developer Hangs

Postby Robert Huber » Tue Jun 22, 2010 3:25 pm

I am always wondering what about these long standing Java bugs only existing on Macs? Is this a myth or does a platform specific, long standing bug list exist therefor? I would really prefer facts which help a developer for this specific case. Most problems we have/found with Servoy don't seem to be related to (Mac) Java bugs, but I may be wrong.

Regards, Robert

david wrote:Considering the long history of Mac Java bugs, I think Steve-o is trying to kill Java on a Mac like he his Flash :)
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland

Re: How to: Fixing Various Mac Developer Hangs

Postby jcompagner » Thu Jul 08, 2010 12:56 pm

Robert Huber wrote: Most problems we have/found with Servoy don't seem to be related to (Mac) Java bugs, but I may be wrong.


many developer bugs/hangs that David numbered out in the top post are mac specific

1> blank screens: mac only
2> doesnt finish starting up: this mostly because of a kill or crash and the subversion plugin you use (subversive instead of subclipse) at least that is what i did see in many many stack dumps
3> This one i am interested in. I never see that anymore, but maybe it could be a build problem that took to long or something, if anybody can give me more info that would be very appreciated!
4> There shouldnt be a need to restart serclipse when doing that, But why are you terminating the debugger? dont do that, that is (or should) never (be) needed.
5> Does this really crash or just completely hangs serclipse? But this is mac only, Its the same thing that we dont allow modal form dialogs to show in the developer of the mac, This will result in <2> yes...
6> does the admin page still works through the browser? If so please make a stackdump for me.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: How to: Fixing Various Mac Developer Hangs

Postby Jan Aleman » Thu Jul 08, 2010 2:34 pm

Robert Huber wrote:@Patrick

I just would strongly like to say that Mac Developers should have the same treatment as Windows Developers, and of course for that matter, Linux Developers. So I expect from Servoy the same attention in doing their work right for the Mac platform as for other platforms. I really do not have much humour for that topic, as I do not see it as very funny.

Regards,Robert


Robert our R&D team spends more time on Mac quirks than any other platform.
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Re: How to: Fixing Various Mac Developer Hangs

Postby Robert Huber » Thu Jul 08, 2010 4:50 pm

Jan, thanks for giving an indication that you also spent (a lot of) time to make Servoy be a good development environment on the Mac as well. Good to hear that Servoy cares, thank you.

Best regards, Robert

Jan Aleman wrote:Robert our R&D team spends more time on Mac quirks than any other platform.
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland

Re: How to: Fixing Various Mac Developer Hangs

Postby Jan Aleman » Thu Jul 08, 2010 4:56 pm

Robert Huber wrote:Jan, thanks for giving an indication that you also spent (a lot of) time to make Servoy be a good development environment on the Mac as well. Good to hear that Servoy cares, thank you.

I do all my demos on Mac so hey we have to!
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Re: How to: Fixing Various Mac Developer Hangs

Postby Robert Huber » Thu Jul 08, 2010 5:45 pm

Good to hear Jan, you save the Servoy Mac developer universe :-)
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland

Next

Return to How To

Who is online

Users browsing this forum: No registered users and 2 guests