Trouble with Browser Suite (hangs/freezes)

Hi Community,

I’m relatively new to Servoy and trying to get the awesome looking Browser Suite to work in my new solution (my first solution that doesn’t use the Browser Suite is working absolutely fine…).

The solution setup so far is very easy:

  • It just consists of the Browser bean and a data-provider form variable that gets an URL as a value onLoad() → so at this moment there isn’t even a DB used by the solution

Here are my symptoms:

  1. Sometimes when I start the debugging smart client everything seems to work fine: The bean correctly loads the url and everything seems to be OK (so that’s the good case :D )
  2. Then however, sometimes when I start the smart client the whole application (so that’s the smart client and Serclipse) will just randomly freeze and has to be killed and restarted
  3. Sometimes I’m able to launch the smart client a couple of times, but then the next time the browser bean is just empty (didn’t load the defined URL), when I then type a URL everything freezes again
  4. Once in a while the bean doesn’t appear at all - instead there’s an error where the bean should be:
error acessing beannet.stuff.browser.beans.ServoyBrowser

(in this case the application doesn’t freeze at least - the next time I launch the smart client again however, usually one of the other to cases appear)
5. In one case Serclipse froze even before I launched the smart client: This happened when I loaded the form in form editor and klicked the bean

->During this freeze the Application Server itself is still accessible through the webinterface so I suppose it’s just Serclipse that freezes…

What I tried at this point:

  • a couple of clean installs of Servoy Developer 6.1 and 6.0 with deletion of the working directory (what feels like a dozen times :cry: )
  • reinstalls of The Browser Suite
  • enable browser suite debug output by setting system.property.browsersuite.debug=true (however there wasn’t a single line more output in servoy_log.txt after I enabled it)
  • tried to explicitly enable/disable XULRunner, enable/disable forceNative property, set the dataprovider from start or onLoad() …
    → still I couldn’t find a definite way to trigger the freeze…

What I can see from servoy_log.txt:

  • on startup of Serclipse I always get these 2 lines:
2012-10-11 16:44:29,344 WARN [Worker-9] com.servoy.j2db.util.Debug - Undocumented/non-scriptable type exposed to JS: javax.swing.JComponent. Changed into Object. [ ]
2012-10-11 16:44:29,372 WARN [Worker-9] com.servoy.j2db.util.Debug - Undocumented/non-scriptable type exposed to JS: javax.swing.JToolBar. Changed into Object. [ ]
  • in case of symptom 4) an exception is thrown (see attached file [attachment=2]servoy_exception.txt[/attachment])
  • in all other cases no output at all

In system.log:

  • I get these 2 lines every now and then (but it doesn’t seem to be connected directly to the freeze as this also occurs before I launch the smart client for the first time)
11.10.12 16:44:25,097 servoy[5841]: *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x11932cfa0> '(null)') unlocked when not locked
11.10.12 16:44:25,097 servoy[5841]: *** Break on _NSLockError() to debug.

Also attached please find:

  • a spin dump that is created while the application is frozen ([attachment=1]servoy_2012-10-11-105932_Andreass-MacBook-Pro.spin.txt[/attachment])
  • a hang dump that is created when I kill Serclipse ([attachment=0]servoy_2012-10-11-111823_Andreass-MacBook-Pro.hang.txt[/attachment])

My system configuration is as followed:

  • Mac OS Mountain Lion 10.8.2
  • Servoy Developer 6.1.2
  • The latest version of The Browser Suite (so 0.9.71)
  • java version “1.6.0_35”
  • Java™ SE Runtime Environment (build 1.6.0_35-b10-428-11M3811)
  • Java HotSpot™ 64-Bit Server VM (build 20.10-b01-428, mixed mode)

I’d be so glad for any help - I also tried to register at the ServoyForge - however I can’t login even after I got an approval Mail…

This is how my servoy.ini looks like:

-clean
-startup
../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.101.v20120109-1504
--launcher.XXMaxPermSize
256m
-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=256M
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dnativeswing.interface.inprocess.useExternalSWTDisplay=true
-Dnativeswing.dependencies.checkVersions=false
-Dsun.awt.disableMixing=true

Cheers,

Andreas

servoy_2012-10-11-111823_Andreass-MacBook-Pro.hang.txt (464 KB)

servoy_2012-10-11-105932_Andreass-MacBook-Pro.spin.txt (556 KB)

servoy_exception.txt (9.94 KB)

I haven’t tested the BrowserSuite on Mountain Lion so I really cannot say whether it’s compatible or not at the moment.

You should open a bug report on ServoyForge for this.
What’s your login on ServoyForge? I can have a look at the activation of your account.

jay.cee:
I also tried to register at the ServoyForge - however I can’t login even after I got an approval Mail…

Should be working now.
Registration with free email services (like you are using) get a lot more scrutinized because this is the very way spammers register to these services (yes they even try to spam on these kinds of sites…)

Hi!
So should I file all this on the ServoyForge again, or is it sufficient to have it filed here?

Cheers,

Jay

It’s always a good idea to file a bug report in the issue tracker, then we can track it down.
Simply point to this forum thread in your report.

Hi!
I increased the allocated memory to 1024m - it seemed to work well for a while, however then Serclipse crashed (seems that this is even a new one - as I had to kill it in all cases before).
[attachment=0]Crash report[/attachment] is attached.

Cheers,

Jay

servoy_2012-10-11-181406_Andreass-MacBook-Pro.crash.txt (152 KB)