electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » Supercollider
Booting server Restarts my PC
Post new topic   Reply to topic Moderators: v-un-v
Page 1 of 1 [11 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
crazeydazey



Joined: Feb 15, 2007
Posts: 303
Location: England
Audio files: 4

PostPosted: Thu Mar 05, 2009 5:25 am    Post subject: Booting server Restarts my PC Reply with quote  Mark this post and the followings unread

Hi,

I'm complete noob to Super collider..

when I try and start it up I get...

Code:

init_OSC
compiling class library..
   NumPrimitives = 500
   compiling dir: 'C:\Program Files\PsyCollider\SCClassLibrary'
   pass 1 done
   Extension overwriting Char:isPathSeparator
      in file '\Platform\windows\extMain.sc'.
      Original method in file '\Common\Core\Char.sc'.
   Extension overwriting Meta_Score:initClass
      in file '\Platform\windows\extScore.sc'.
      Original method in file '\Common\Control\Score.sc'.
   Extension overwriting Meta_Server:initClass
      in file '\Platform\windows\extServer.sc'.
      Original method in file '\Common\Control\Server.sc'.
   Extension overwriting Server:quitInProcess
      in file '\Platform\windows\extServer.sc'.
      Original method in file '\Common\Control\Server.sc'.
   Extension overwriting String:newTextWindow
      in file '\Platform\windows\extString.sc'.
      Original method in file '\Common\GUI\PlusGUI\Collections\StringPlusGUI.sc'.
   Extension overwriting String:openTextFile
      in file '\Platform\windows\extString.sc'.
      Original method in file '\Common\GUI\PlusGUI\Collections\StringPlusGUI.sc'.
   Extension overwriting String:pathMatch
      in file '\Platform\windows\extString.sc'.
      Original method in file '\Common\Collections\String.sc'.
   Extension overwriting Meta_SynthDef:initClass
      in file '\Platform\windows\extSynthDef.sc'.
      Original method in file '\Common\Audio\SynthDef.sc'.
numentries = 826880 / 11087280 = 0.075
   Method Table Size 6543960 bytes
   Number of Method Selectors 4698
   Number of Classes 2360
   big table size 44349120
   Number of Symbols 10950
   Byte Code Size 348798
   compiled 396 files in 5.61 seconds
compile done

Could not connect socket
// History.logFolder: C:\Documents and Settings\darrenp\SuperCollider
Class tree inited in 1.09 seconds
WARNING:
GeneralHID.fromID : The HID scheme 'nil' is not installed
The current scheme is still 'nil'!
StartUp done.
Welcome to SuperCollider, press F1 for help
booting java -Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel -jar SwingOSC/build/SwingOSC.jar -t 57111 -L -i -h 127.0.0.1:57120

Could not connect socket
SwingOSC v0.59. receiving TCP at address 127.0.0.1:57111
SwingOSC : server connected.
SwingOSC : server connected.


if I then click the boot button, my PC restarts itself...

any ideas anyone??

Cheers

Daz
Back to top
View user's profile Send private message
dewdrop_world



Joined: Aug 28, 2006
Posts: 858
Location: Guangzhou, China
Audio files: 4

PostPosted: Thu Mar 05, 2009 8:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

We need to do a little work to rule out possible sources of the crash.

What happens if you start scsynth from the command line? To check, first get the default options from supercollider itself (I could tell you the options on the Mac, but they might be slightly different in Windows so it's better to get them yourself):

Code:
s.options.asOptionsString(57110)


Then open a command line and cd to the location where supercollider was installed. That's probably...

Code:
c:
cd \program files\supercollider


Then start the next command with scsynth, and a space, and then copy and paste the options string from the SC post window. On my Mac, the command looks like this but again, it might be a little bit different on your system.

Code:
scsynth -u 57110 -b 1026 -R 0


At this point, if it works, the command prompt window will seem to hang. That's normal -- scsynth has no typing interface. Also the local host server window should start to show some statistics and switch to "running" status.

If this makes your machine reboot, then we know the problem is in the server process. If that's the case, I would suspect a disobedient audio driver.

If that doesn't reboot the machine, let's try a quick GUI interaction test (to see if the action of clicking the button is the culprit).

Code:
// run the bit inside () in supercollider
(
w = GUI.window.new("whoopsie", Rect(10, 100, 200, 60));
GUI.button.new(w, Rect(5, 5, 190, 50))
   .states_([["Poke me"]])
   .action_({ "got poked".postln });
w.front;
)


Then do what the button says Razz

If both the commandline test and the GUI test are OK, then the problem gets really weird... but let's cross that bridge later.

James

_________________
ddw online: http://www.dewdrop-world.net
sc3 online: http://supercollider.sourceforge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address
crazeydazey



Joined: Feb 15, 2007
Posts: 303
Location: England
Audio files: 4

PostPosted: Fri Mar 06, 2009 1:52 am    Post subject: Reply with quote  Mark this post and the followings unread

sorry for been a complete dimwit, but I have tried running the code
Quote:
s.options.asOptionsString(57110)
in super collider and I can't seem to figure out how to run it..

I have followed the tutorial in the helpfile, which says "put cursor on line of code and press enter, (NOT RETURN...)"

tried that with simple Hello world from tutorial.. nothing..

so gave in trying and just moved on to running it with command line, with your settings.. (naughty naughty)... it restarted my PC Sad

I don't usually give in too easy, but I may call it a day soon with SC Sad
Back to top
View user's profile Send private message
dewdrop_world



Joined: Aug 28, 2006
Posts: 858
Location: Guangzhou, China
Audio files: 4

PostPosted: Fri Mar 06, 2009 6:30 am    Post subject: Reply with quote  Mark this post and the followings unread

The main help page (Help.html) says:

"To execute code, use the keyboard shortcut: Enter (not Return) (OS X), Ctrl+Enter (Windows), Ctrl+c Ctrl+c (Emacs). For key commands, also see Shortcuts."

(Actually Ctrl+Return is OK too.)

Don't give up too quickly. I think we can be fairly confident scsynth is the one crashing. I still think it's probably an audio driver doing something naughty.

Are you using XP? Vista? Win7 beta? I think System Information should give you the exact OS version (either that or My Computer > Properties).

What audio devices exist in your system? Driver versions?

James

_________________
ddw online: http://www.dewdrop-world.net
sc3 online: http://supercollider.sourceforge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address
crazeydazey



Joined: Feb 15, 2007
Posts: 303
Location: England
Audio files: 4

PostPosted: Fri Mar 06, 2009 7:13 am    Post subject: Reply with quote  Mark this post and the followings unread

aaah... (I told you I was dumb Embarassed )


I've now run the first bit of code and got...



Code:
 -u 57110 -b 1026


to be honest I can't really afford my machine to resart at this moment in time, so I skipped the next bit for now and tried running your other code, which worked..


I'm running win XP sp2, the sound card is built into my motherboard, in the device manager it says Realtek and the properties of this say it's working fine.. Confused

btw cheers for your help James.. I'm not gonna give in too easily now..
Back to top
View user's profile Send private message
dewdrop_world



Joined: Aug 28, 2006
Posts: 858
Location: Guangzhou, China
Audio files: 4

PostPosted: Sun Mar 08, 2009 7:00 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hmm... I'd suggest taking this to the mailing list - http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml - my experience with Windows audio troubleshooting is next to nothing.

James

_________________
ddw online: http://www.dewdrop-world.net
sc3 online: http://supercollider.sourceforge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address
ook



Joined: May 18, 2009
Posts: 2
Location: Brighton

PostPosted: Mon May 18, 2009 8:31 am    Post subject: Reply with quote  Mark this post and the followings unread

I get the same error when I start PsyCollider but my PC does not restart when I start the server. Both the tests you stated above pass.

Code:

Could not connect socket
// History.logFolder: C:\Documents and Settings\Jean-Marc Jones\SuperCollider
Class tree inited in 1.14 seconds
WARNING:
GeneralHID.fromID : The HID scheme 'nil' is not installed
The current scheme is still 'nil'!
StartUp done.


When I try to run this code from the tutorials:

Code:

w = SCWindow.new("Fading").front;
r = Routine({ 200.do({|i| w.alpha = 1 - (i * 0.005); 0.005.wait;}); w.close; });
AppClock.play(r);


I get this error:

Code:


A primitive was not bound. 0 499
Instance of Method {    (037C6530, gc=01, fmt=00, flg=11, set=04)
  instance variables [15]
    raw1 : Float 2.670109001368235e-307   0048000C 00000000
    raw2 : Float 2.437076554554034e-289   04030004 00000400
    code : instance of Int8Array (037C6670, size=4, set=1)
    selectors : nil
    constants : nil
    prototypeFrame : instance of Array (037C6620, size=4, set=2)
    context : nil
    argNames : instance of SymbolArray (037C65E0, size=4, set=1)
    varNames : nil
    sourceCode : nil
    ownerClass : class SCView (0380F450)
    name : Symbol 'prInit'
    primitiveName : Symbol '_SCView_New'
    filenameSymbol : Symbol 'C:\Program Files\PsyCollider\SCClassLibrary\Common\GUI\Base\SCView.sc'
    charPos : Integer 6403
}
ERROR: Primitive 'none' failed.
Failed.
RECEIVER:
   nil
CALL STACK:
   MethodError:reportError   035EFDF0
      arg this = <instance>
   Nil:handleError   035EFD90
      arg this = nil
      arg error = <instance>
   Thread:handleError   035EFCD0
      arg this = <instance>
      arg error = <instance>
   Object:throw   035EFC70
      arg this = <instance>
   Object:primitiveFailed   035EFE50
      arg this = nil
   SCView:init   035EFC10
      arg this = <instance>
      arg argParent = nil
      arg argBounds = <instance>
   SCContainerView:init   035EFBB0
      arg this = <instance>
      arg argParent = nil
      arg argBounds = <instance>
   SCWindow:initSCWindow   038E0810
      arg this = <instance>
      arg argName = "Fading"
      arg argBounds = <instance>
      arg resizable = true
      arg border = true
      arg scroll = false
   <closed>  (no arguments or variables)
   Interpreter:interpretPrintCmdLine   038DEC30
      arg this = <instance>
      var res = nil
      var func = <instance>
      var code = "w = SCWindow.new("Fading").f..."
   Process:interpretPrintCmdLine   035EF9D0
      arg this = <instance>


Any help I could get would be grate there seems to be little help for windows verssion on psy collider on the net.
Back to top
View user's profile Send private message
dewdrop_world



Joined: Aug 28, 2006
Posts: 858
Location: Guangzhou, China
Audio files: 4

PostPosted: Mon May 18, 2009 1:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

You aren't seeing any errors on startup. A warning is not an error. -- So this really should be a separate thread (b/c it's a different question).

Don't use SCWindow - that's Mac only. I'll have to spank the tutorial author for not cross-platform-izing the docs Twisted Evil

In 3.3*, use Window instead. But that example doesn't do much because the Java GUI server doesn't support transparency for whole windows. This'll give you a bit more impact.

Code:
w = Window.new("Fading").front;
r = Routine({
   200.do({|i|
      w.view.background = Color.blue(val: 1, alpha: 1 - (i * 0.005));
      0.005.wait;
   });
   w.close;
});
AppClock.play(r);


* Use SC 3.3a6. It's really a LOT better than Psycollider 3.2. A LOT.

James

_________________
ddw online: http://www.dewdrop-world.net
sc3 online: http://supercollider.sourceforge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address
ook



Joined: May 18, 2009
Posts: 2
Location: Brighton

PostPosted: Tue May 19, 2009 4:13 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks for the help sorry about highjacking the thread just started using Super Collider and it all a bit confusing. Would you say that its worth installing the extenssions from the main super collider site?
Back to top
View user's profile Send private message
flies



Joined: May 20, 2008
Posts: 33
Location: NJ

PostPosted: Thu Jun 25, 2009 2:42 pm    Post subject: Reply with quote  Mark this post and the followings unread

Quote:
* Use SC 3.3a6. It's really a LOT better than Psycollider 3.2. A LOT.

care to comment? I just installed 3.2 on my XP machine and am going through the tutorials. (fwiw i get the same warning.) 3.3a6 is supposedly 'unstable' according to the SC.sourceforge website.
Back to top
View user's profile Send private message
dewdrop_world



Joined: Aug 28, 2006
Posts: 858
Location: Guangzhou, China
Audio files: 4

PostPosted: Thu Jun 25, 2009 8:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

"Unstable" in development-cycle terms does not mean "more prone to crash." It just means the code base isn't fully finalized for that version.

3.3a6 actually FIXES some crashing bugs that were there in 3.2.

hjh

_________________
ddw online: http://www.dewdrop-world.net
sc3 online: http://supercollider.sourceforge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic Moderators: v-un-v
Page 1 of 1 [11 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Supercollider
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use