Commit Graph

35 Commits

Author SHA1 Message Date
David Fokkema
e3090697e4 Wait for VMStartEvent before resuming VM
Fixes processing#2402

(Oh, yes!)
2014-04-19 10:36:00 +02:00
David Fokkema
c46c34c033 Another 'fix': added a timeout before vm.resume()
I think we have a race condition: vm.resume() is called *before* the VM is
actually ready to resume.  That is strange, since the debugger is
attached, eventQueues are set up and ready...  Still, waiting for a bit
ensures that the VM actually resumes.  This behavior was not present when
Java 1.6 was still used.  Is this a bug in Java 1.7? Or is it simply that
the VM in 1.6 started up quickly enough to hide the race condition?

I'll continue looking...
2014-04-19 10:09:10 +02:00
David Fokkema
fd40dbfb31 Revert "Do not wait for debugger to start running sketch"
This reverts commit 5d5a5841c8.
2014-04-18 21:11:05 +02:00
David Fokkema
5d5a5841c8 Do not wait for debugger to start running sketch
By default, the java VM is started with options for attaching a remote
debugger.  The sketch is suspended until the remote debugger connects.
This always succeeds the first time a sketch is run.  At least on OS X
10.9, this seems to be very fragile, and successive runs of the sketch
often fail to start.  This commit tells the VM to *not* wait for the
debugger before starting the sketch.

Fixes processing#2402
2014-04-15 20:50:30 +02:00
kiwistrongis
e94b2e8c7d Fixed processing.mode.java.runner.Runner's exception trace for when the file name of a StackTraceElement is not known. Fixes issue #2346 2014-03-04 12:54:17 -05:00
Ben Fry
d821d04c5b remove 32/64 pref, add dummy window, other OS X fixes for 7u40 2013-10-12 21:54:49 -04:00
Ben Fry
cf559b4a90 resolution for println() issues 2013-10-12 18:01:16 -04:00
Ben Fry
78c127ab1d add java executable on OS X, force local when running 2013-09-22 16:57:14 -04:00
Ben Fry
8201e2b839 report exception even if a clearer version is available 2013-07-20 21:55:58 -04:00
Ben Fry
3a6a38fcfd more appbundler/jdk7u40 work, todo notes 2013-07-19 12:14:46 -07:00
Ben Fry
22a4ec2838 print stack traces of uncaught internal errors 2013-05-04 11:28:44 -04:00
Ben Fry
795a6eba8d use JVMTI, remove extra thread suspend calls, remove unused 2013-04-29 10:05:03 -04:00
Ben Fry
f91d6c9fde add workaround for apparent Eclipse JDI bug, get errors working again 2013-04-27 17:30:02 -04:00
Ben Fry
c030b75223 switch to socket attach connector, fix error msg for bitness of libs, fighting with Eclipse JDI 2013-04-27 15:38:17 -04:00
Manindra Moharana
f2704d9eb1 Classloader error bug fix 2013-02-19 04:07:10 +05:30
Manindra Moharana
6bf34b1518 moved to jdi, abandoning tools.jar dependency 2013-02-17 05:21:33 +05:30
benfry
b46cd4ac3f fix 32/64-bit setting on OS X (issue #1426) 2012-12-01 21:05:17 +00:00
benfry
e5d7bddd9b remove additional imports, use a stricter list 2012-11-24 18:15:12 +00:00
benfry
a829256220 integrating debug mode to start java2 2012-11-11 22:23:33 +00:00
benfry
fd052dd4ed don't use --request on OS X 10.6, it's not available 2012-10-23 17:08:28 +00:00
benfry
4f346ea950 switch to just use 1.6 to avoid total disaster on OS X 2012-10-21 23:37:15 +00:00
benfry
9aacc3d27f modify OS X version for Apple workarounds; implement fix 32-bit install issues (issue #1312) 2012-10-19 14:48:19 +00:00
benfry
9c1aadc5b8 deal with some cast warnings, looking into class loading issues with modes 2012-09-10 02:07:13 +00:00
benfry
10c8adaac6 do not request a display device that does not exist 2012-07-21 17:58:36 +00:00
benfry
6d8ebec0c0 get core loading properly on Windows, change displays to be numbered at 0 2012-07-21 16:37:46 +00:00
benfry
ab958db8bf get movie maker working properly on OS X 2012-07-21 14:05:10 +00:00
benfry
edfaf1bac0 work on editor state info, heading toward recent sketches, other cleanups 2012-03-25 19:58:31 +00:00
benfry
ca51d19778 major work to get multi-screen support and full-screen improved 2012-03-25 17:31:53 +00:00
benfry
51eee1ad6b major updates to full screen handling, remove FSEM, add native OS X menubar hiding 2012-03-25 12:52:46 +00:00
benfry
cf6c895311 do check for whether all native libs are supported when running 2011-11-12 23:13:49 +00:00
benfry
422692f125 add 32/64 bit preference on OS X, tweak library errors for bit depths 2011-11-01 16:26:08 +00:00
francisli
f6dee2525a Allow RuntimeException to bubble up from registered library methods, additional exception handling in Java runner to find exceptions in callbacks 2011-10-29 20:46:28 +00:00
benfry
9da9c94b18 more bug fixing 2011-01-26 19:01:31 +00:00
benfry
bb59356978 bringing android mode up to date, tweaking java mode 2011-01-22 18:40:19 +00:00
benfry
5ecf3fdf36 moving things back off the branch, and into full disaster mode 2011-01-20 19:29:39 +00:00