Hi, try this - it will help you find on which event the segfault occurs: http://www.ape-project.org/wiki/index.php/How_to_debug_APE_segfault<http://www.google.com/url?sa=D&q=http://www.ape-project.org/wiki/index.php/How_to_debug_APE_segfault&usg=AFQjCNHPNSVTSK4u7tssgFQSu4Fy0UBBfg>
Then check for the possible events the user.quit() might trigger (i.e. deluser) - perhaps those functions reference to the user who just quit. I had a similar problem once and this was the case. Best, Matija 2010/3/25 Herson <[email protected]> > Can someone help me? > > 2010/3/11 Herson <[email protected]> > > Hi Nicolas, >> >> Now i use the git version and make my command like you talk. But when i >> send the command the APE server break with `Segmentation fault`: >> >> [Module] [spidermonkey] Loading module : Javascript embeded (0.01) - >> Anthony Catel >> [JS] Loading script ../scripts/framework/mootools.js... >> [JS] Loading script ../scripts/framework/Http.js... >> [JS] Loading script ../scripts/framework/userslist.js... >> [JS] Loading script ../scripts/utils/utils.js... >> [JS] Loading script ../scripts/commands/proxy.js... >> [JS] Loading script ../scripts/commands/inlinepush.js... >> [JS] Loading script ../scripts/commands/sair.js... >> [JS] Loading script ../scripts/examples/nickname.js... >> [JS] Loading script ../scripts/examples/move.js... >> [JS] Loading script ../scripts/utils/checkTool.js... >> Segmentation fault >> >> >> My command ( APE-Project-APE_Server-a3d1686/scripts/commands/sair.js ): >> >> >> Ape.registerCmd('myquit', true, function(param, info) { >> info.user.quit(); >> }); >> >> And include ( APE-Project-APE_Server-a3d1686/scripts/main.ape.js ): >> >> Ape.addEvent("init", function() { >> include("framework/mootools.js"); >> include("framework/Http.js"); >> include("framework/userslist.js"); >> include("utils/utils.js"); >> include("commands/proxy.js"); >> include("commands/inlinepush.js"); >> include("commands/sair.js"); >> include("examples/nickname.js"); >> include("examples/move.js"); >> include("utils/checkTool.js"); //Just needed for the APE JSF >> diagnostic tool, once APE is installed you can remove it >> //include("examples/ircserver.js"); >> //include("framework/http_auth.js"); >> }); >> >> I need help with this... >> >> Tanks >> >> >> 2010/3/10 Nicolas Trani <[email protected]> >> >> Hi, >>> >>> your second solution was good : calling core.quit() unfortunatly there >>> is a bug in APE with the QUIT raw : the user is not deleted from the >>> server. This will be fixed in the next minor release of APE. >>> >>> But if you update your APE Server to the git version, you can use this >>> workaround : >>> >>> Create a custom command on the server side called myquit : >>> >>> Ape.registerCmd('myquit', true, function(param, info) { >>> info.user.quit(); >>> }); >>> >>> On the client side call : >>> >>> core.request.send('myquit'); >>> >>> This should work ;) >>> >>> Regards. >>> >>> Herson wrote: >>> > Hi, >>> > >>> > I'm having difficulties to find what I need in the documentation so >>> > I'm here to ask some questions. >>> > >>> > I need to make when a user leave the channel it's name is available >>> > for use by another person who requests it. What I did was when the >>> > user close the window or click to call out 'client.core.left >>> > (channel.pubid)' but when I connect again with the same username and >>> > returns me 007 - NICK_USED. >>> > >>> > I also tried limapar a session with core.clearSession () and soon >>> > after made a core.quit () but still not working. I follow the link to >>> > the code. >>> > >>> > tanks >>> > >>> > http://pastebin.com/M3UY5tXf >>> > >>> > -- >>> > Herson Leite, Desenvolvedor Web >>> > www.hersonls.com.br <http://www.hersonls.com.br> | [email protected] >>> > <mailto:[email protected]> >>> > -- >>> > You received this message because you are subscribed to the Google >>> > Groups "APE Project" group. >>> > To post to this group, send email to [email protected] >>> > To unsubscribe from this group, send email to >>> > [email protected]<ape-project%[email protected]> >>> > For more options, visit this group at >>> > http://groups.google.com/group/ape-project?hl=en >>> > --- >>> > APE Project (Ajax Push Engine) >>> > Official website : http://www.ape-project.org/ >>> > Git Hub : http://github.com/APE-Project/ >>> >>> >>> -- >>> Nicolas Trani - Web engineer >>> Weelya - Improve the web >>> 32 rue du faubourg boutonnet >>> 34090 Montpellier >>> Tel: 04 67 169 778 - Fax: 09 57 91 99 91 >>> http://www.weelya.com >>> http://www.ape-project.org >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "APE Project" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected]<ape-project%[email protected]> >>> For more options, visit this group at >>> http://groups.google.com/group/ape-project?hl=en >>> --- >>> APE Project (Ajax Push Engine) >>> Official website : http://www.ape-project.org/ >>> Git Hub : http://github.com/APE-Project/ >>> >> >> >> >> -- >> Herson Leite, Desenvolvedor Web >> www.hersonls.com.br | [email protected] >> > > > > -- > Herson Leite, Desenvolvedor Web > www.hersonls.com.br | [email protected] > > -- > You received this message because you are subscribed to the Google > Groups "APE Project" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<ape-project%[email protected]> > For more options, visit this group at > http://groups.google.com/group/ape-project?hl=en > --- > APE Project (Ajax Push Engine) > Official website : http://www.ape-project.org/ > Git Hub : http://github.com/APE-Project/ > > To unsubscribe from this group, send email to ape-project+ > unsubscribegooglegroups.com or reply to this email with the words "REMOVE > ME" as the subject. > -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/ To unsubscribe from this group, send email to ape-project+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
