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 » ChucK programming language
Stack Overflow Error -- Is there any way to reset a stack?
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [5 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Dr. Spankenstein



Joined: Mar 03, 2007
Posts: 136
Location: Cambridge
Audio files: 1

PostPosted: Wed Jun 06, 2007 6:03 am    Post subject: Stack Overflow Error -- Is there any way to reset a stack? Reply with quote  Mark this post and the followings unread

I seem to be running into one problem after another with my code but the latest irritation comes in the form of StackOverFlow errors.

The problem occurs when I leave my cutting algorithm going for a certain length of time. That certain length of time gets a lot shorter should I use shorter cuts, adding data faster to the stack.

Is there any way of clearing the stack within ChucK so that this error doesnt occur after a certain length of time?

Thanks for your time guys,

Rhys
Back to top
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Wed Jun 06, 2007 6:26 am    Post subject: Reply with quote  Mark this post and the followings unread

You have a WHAT?????!!

:¬)

Nah, I don't think I ever saw one of those and I'm pritty sure there shouldn't be "stack overflows" and you're not expected to manually reset any stacks.

This is definately something to mail Ge about;

gewang (at) cs.princeton.edu

He's probably going to ask you for the simplest form that you can get your code in that still makes this happen so you might as well send that when reporting on this. Ge is a very nice guy too so don't hesitate about sending reports. Likely it's a bug, that's cool. Finding bugs means you did something that wasn't tried before and it means ChucK will improve so it's good news.

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24079
Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320

PostPosted: Wed Jun 06, 2007 10:42 am    Post subject: Reply with quote  Mark this post and the followings unread

Don't know if this applies to Chuck or to this specific problem but to me usually running out of stack means performing recursion without a proper end condition.
_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
Dr. Spankenstein



Joined: Mar 03, 2007
Posts: 136
Location: Cambridge
Audio files: 1

PostPosted: Thu Jun 07, 2007 2:03 am    Post subject: Reply with quote  Mark this post and the followings unread

Aye you are right Blue but this recursion has an end condition that will happily start and stop a certain number of times before finally giving up.

I'll look carefully at my code as its probably something stupid I've done without out realising it, but in the mean time I'll also prepare a version for Ge and see what he makes of it.

Rhys
Back to top
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Thu Jun 07, 2007 4:39 am    Post subject: Reply with quote  Mark this post and the followings unread

In that case it's likely related to garbage colection. You see; ChucK has no garbage colection right now Shocked . This is definately something that people are working on because clearly may things depend on on it
_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [5 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 » ChucK programming language
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