FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Bugs
   Software Bugs
(Moderator: fry)
   beginNet crash
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: beginNet crash  (Read 323 times)
depth

WWW Email
beginNet crash
« on: Feb 26th, 2004, 6:48pm »

surprised i couldn't find this on the forums with a search, but i've found that beginNet() with an invalid port crashes the applet and subsequently processing.  could be the latter is fixed in v68 (i haven't installed it yet).
 
fry


WWW
Re: beginNet crash
« Reply #1 on: Feb 26th, 2004, 9:29pm »

crashes meaning freezes the thing? or quits the app altogether? if it quits the app, that's a java bug, though something we'll have to catch to avoid people making that mistake; but if the app just locks up then that's something we need to fix.  
 
do you have a little piece of code that causes the problem?
 
depth

WWW Email
Re: beginNet crash
« Reply #2 on: Feb 27th, 2004, 8:06pm »

crashes meaning freezes the sketch right away upon running it, and then crashing p5 altogether.
 
oh, i have this problem on osx and win98, in rev0067.  haven't tested it elsewhere.
 
this happens to me anytime i call beginNet() with a port that's not open.  for example,
 
Code:

void setup(){
  beginNet("localhost", 7777);  //note, i get the same errors whether on local or remote host.  the port is all that matters.  i also get the same problem when i omit the host.
  size(320, 240);
}
 
void loop(){
  //do stuff
}
 
void netEvent(){
  //do other stuff
}

 
sometimes p5 completely locks up, and other times the drop down menus will drop down, but will not function otherwise, and the message window will spit out the following errors every time i try to close p5 (via 'file>quit', the close button, or ctrl+alt+del, tho the latter works eventually):
 
java.lang.NullPointerException
 
      at BClient.killClient(BClient.java:124)
 
      at BClient.destroy(BClient.java:136)
 
      at BApplet.endNet(BApplet.java:806)
 
      at BApplet.stop(BApplet.java:264)
 
      at PdeRuntime.stop(PdeRuntime.java:357)
 
      at PdeEditor.doStop(PdeEditor.java:882)
 
      at PdeEditorButtons.mouseReleased(PdeEditorButtons.java:431)
 
      at java.awt.Component.processMouseEvent(Component.java:5134)
 
      at java.awt.Component.processEvent(Component.java:4931)
 
      at java.awt.Container.processEvent(Container.java:1566)
 
      at java.awt.Component.dispatchEventImpl(Component.java:3639)
 
      at java.awt.Container.dispatchEventImpl(Container.java:1623)
 
      at java.awt.Component.dispatchEvent(Component.java:3480)
 
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
 
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
 
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
 
      at java.awt.Container.dispatchEventImpl(Container.java:1609)
 
      at java.awt.Component.dispatchEvent(Component.java:3480)
 
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
 
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThrea d.java:197)
 
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread. java:150)
 
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
 
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
 
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
 
« Last Edit: Feb 27th, 2004, 8:31pm by depth »  
Pages: 1 

« Previous topic | Next topic »