From a343e2367948b8d7f9a845059acc9b1cf1122486 Mon Sep 17 00:00:00 2001 From: benfry Date: Wed, 4 Jun 2008 15:31:43 +0000 Subject: [PATCH] trying to work on debugger mess, check in interim changes for 0139 --- app/src/processing/app/Base.java | 3 +- app/src/processing/app/debug/Runner.java | 44 ++++++++++++++++++++---- build/shared/revisions.txt | 43 +++++++++++++++++++++++ todo.txt | 6 ++-- 4 files changed, 87 insertions(+), 9 deletions(-) diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index c9d79e87f..fb140748a 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -120,7 +120,8 @@ public class Base { } catch (Exception e) { System.err.println("Non-fatal error while setting the Look & Feel."); System.err.println("The error message follows, however Processing should run fine."); - e.printStackTrace(); + System.err.println(e.getMessage()); + //e.printStackTrace(); } // Use native popups so they don't look so crappy on osx diff --git a/app/src/processing/app/debug/Runner.java b/app/src/processing/app/debug/Runner.java index 875222ca4..521ca2a8e 100644 --- a/app/src/processing/app/debug/Runner.java +++ b/app/src/processing/app/debug/Runner.java @@ -254,12 +254,22 @@ public class Runner implements MessageConsumer { protected VirtualMachine launch(String[] vmParams, String[] classParams) { + //vm = launchTarget(sb.toString()); LaunchingConnector connector = findLaunchingConnector(); //Map arguments = connectorArguments(connector, mainArgs); Map arguments = connector.defaultArguments(); //System.out.println(arguments); + +// for (Iterator itr = arguments.keySet().iterator(); itr.hasNext(); ) { +// Connector.Argument argument = +// (Connector.Argument) arguments.get(itr.next()); +// System.out.println(argument); +// } + + //connector.transport(). + Connector.Argument mainArg = (Connector.Argument)arguments.get("main"); if (mainArg == null) { @@ -292,11 +302,20 @@ public class Runner implements MessageConsumer { for (int i = 0; i < vmParams.length; i++) { optionArgs = addArgument(optionArgs, vmParams[i], ' '); } - + // prevent any incorrect transport address b.s. from being added + // -Xrunjdwp:transport=dt_socket,address=cincinnati118.ipcorporate.com:55422,suspend=y + //optionArgs = addArgument(optionArgs, "-agentlib:jdwp=transport=dt_socket,address=localhost:12345,suspend=y", ' '); + //optionArgs += " -Xrunjdwp:transport=dt_socket,address=localhost:55422,suspend=y"; + //optionArgs = optionArgs + " -agentlib:jdwp=transport=dt_socket"; + //optionArgs = addArgument(optionArgs, "-Xrunjdwp:transport=dt_socket,address=localhost:55422,suspend=y", ' '); + + //optionArgs = addArgument(optionArgs, "address=127.0.0.1:54321", ' '); + //optionArgs = addArgument(optionArgs, "localAddress", ' '); + Connector.Argument optionArg = (Connector.Argument)arguments.get("options"); optionArg.setValue(optionArgs); - + //arguments.put("address", "localhost"); // Connector.Argument addressArg = @@ -306,7 +325,11 @@ public class Runner implements MessageConsumer { // System.out.println("option args are: "); // System.out.println(arguments.get("options")); - //System.out.println("args are " + arguments); +// System.out.println("args are " + arguments); + + // com.sun.tools.jdi.SunCommandLineLauncher + + // http://java.sun.com/j2se/1.5.0/docs/guide/jpda/conninv.html#sunlaunch try { return connector.launch(arguments); } catch (IOException exc) { @@ -314,8 +337,11 @@ public class Runner implements MessageConsumer { } catch (IllegalConnectorArgumentsException exc) { throw new Error("Internal error: " + exc); } catch (VMStartException exc) { - throw new Error("Target VM failed to initialize: " + - exc.getMessage()); + System.err.println("Target VM failed to initialize:"); + exc.printStackTrace(); + //throw new Error("Target VM failed to initialize: " + + //exc.getMessage()); + throw new Error(exc.getMessage()); } } @@ -416,6 +442,13 @@ public class Runner implements MessageConsumer { * Find a com.sun.jdi.CommandLineLaunch connector */ LaunchingConnector findLaunchingConnector() { + //VirtualMachineManager mgr = Bootstrap.virtualMachineManager(); + +// if (true) { +// System.out.println(Bootstrap.virtualMachineManager().defaultConnector()); +// return Bootstrap.virtualMachineManager().defaultConnector(); +// } + List connectors = Bootstrap.virtualMachineManager().allConnectors(); // code to list available connectors @@ -429,7 +462,6 @@ public class Runner implements MessageConsumer { while (iter.hasNext()) { Connector connector = (Connector)iter.next(); if (connector.name().equals("com.sun.jdi.CommandLineLaunch")) { - //if (connector.name().equals("com.sun.jdi.RawCommandLineLaunch")) { return (LaunchingConnector)connector; } } diff --git a/build/shared/revisions.txt b/build/shared/revisions.txt index 0f7780329..50d71b8a8 100644 --- a/build/shared/revisions.txt +++ b/build/shared/revisions.txt @@ -7,6 +7,49 @@ releases will be super crusty. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . +ABOUT REV 0139 - 4 June 2008 + +Stuck on a couple larger problems, this is an interim release to +patch up some problems in the 0136+ series. If this is the first +release you've downloaded since 0135, please read the "ABOUT 013X" +sections for each of the releases since. + +[ mixed bag of fixes ] + ++ Highlighting of syntax errors was broken. + http://dev.processing.org/bugs/show_bug.cgi?id=795 + ++ The getIntAttribute() method from the XML library was + returning a float instead of an int. + http://dev.processing.org/bugs/show_bug.cgi?id=790 + ++ Include memory settings from preferences when exporting + a Mac OS X application. + http://dev.processing.org/bugs/show_bug.cgi?id=803 + ++ Updated to a newer version of Quaqua (OS X lib for GUI) + http://www.randelshofer.ch/quaqua/ + +[ top priorities (not fixed) ] + ++ "Target VM failed to initialize: VM initialization failed" on run + This happens because Java is not properly getting the machine's + internet address. Workaround is to shut off networking: + http://dev.processing.org/bugs/show_bug.cgi?id=796 + ++ Slow response on file/sketchbook/examples menus on OS X 10.5. + There appears to be an Apple bug in Java 1.5 and 1.6 on + Mac OS X 10.5 (but not 10.4) causing these menus to be extremely + slow. Workarounds described in the bug report: + http://dev.processing.org/bugs/show_bug.cgi?id=786 + ++ Sometimes, nothing happens when you hit Run (no error displayed) + http://dev.processing.org/bugs/show_bug.cgi?id=775 + + +. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + + ABOUT REV 0138 - 31 May 2008 Continuing on the > 0135 crazy train. diff --git a/todo.txt b/todo.txt index e4b1e69a0..c77c460ba 100644 --- a/todo.txt +++ b/todo.txt @@ -43,7 +43,6 @@ _ http://dev.processing.org/bugs/show_bug.cgi?id=585 _ vista disables aero theme when p5 is run _ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1196016889 - _ update to jogl 1.1.1 _ do this with enhanced library/platform support @@ -1141,7 +1140,8 @@ _ may help solve: http://dev.processing.org/bugs/show_bug.cgi?id=98 _ when resizing window, only resize the text display area _ just a matter of moving around the panels and BorderLayout _ remember previous font selection when returning to the window - +_ occasional division by zero on windows +_ http://dev.processing.org/bugs/show_bug.cgi?id=777 //////////////////////////////////////////////////////////////////// @@ -1290,6 +1290,8 @@ _ event first goes to the applet listener, needs to consume the event _ http://processing.org/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1061802316 _ http://processing.org/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1077058974 _ http://processing.org/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1081751451 +_ icon is skewed on vista 64 +_ http://dev.processing.org/bugs/show_bug.cgi?id=801 DIST / Mac OS X