igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] R: igraph: decompose.graph: Error: protect(): protection st


From: Gábor Csárdi
Subject: Re: [igraph] R: igraph: decompose.graph: Error: protect(): protection stack overflow
Date: Tue, 20 Mar 2012 22:28:17 -0400

Oh, I think I know what is happening, probably igraph PROTECTs all
components of the graph, before returning them, and the stack of the
protected elements gets full.

A workaround is to use clusters() to get the clusters and then create
the subgraphs that you need manually.

Gabor

On Tue, Mar 20, 2012 at 10:23 PM, Gábor Csárdi <address@hidden> wrote:
> What is 'gr'? How did you create it?
>
> Gabor
>
> On Tue, Mar 20, 2012 at 9:29 PM, Sam Steingold <address@hidden> wrote:
>>> * Sam Steingold <address@hidden> [2012-03-20 14:20:06 -0400]:
>>>
>>> I just got this error:
>>>> library(igraph)
>>>> comp <- decompose.graph(gr)
>>> Error: protect(): protection stack overflow
>>> Error: protect(): protection stack overflow
>>>>
>>
>> after restarting
>>
>>> system.time(comp <- decompose.graph(gr, mode="weak"))
>> Error: protect(): protection stack overflow
>> Error: protect(): protection stack overflow
>> Error: protect(): protection stack overflow
>>> system.time(comp <- decompose.graph(gr, mode="strong"))
>>
>>  *** caught segfault ***
>> address 0xd8, cause 'memory not mapped'
>>
>> Traceback:
>>  1: decompose.graph(sc.gr, mode = "strong")
>>  2: system.time(sc.comp <- decompose.graph(sc.gr, mode = "strong"))
>>
>> Possible actions:
>> 1: abort (with core dump, if enabled)
>> 2: normal R exit
>> 3: exit R without saving workspace
>> 4: exit R saving workspace
>> Selection: 3
>>
>> --
>> Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 
>> 11.0.11004000
>> http://www.childpsy.net/ http://openvotingconsortium.org 
>> http://www.memritv.org
>> http://pmw.org.il http://www.PetitionOnline.com/tap12009/
>> What's the difference between Apathy & Ignorance? -I don't know and don't 
>> care!
>>
>> _______________________________________________
>> igraph-help mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
>
>
> --
> Gabor Csardi <address@hidden>     MTA KFKI RMKI



-- 
Gabor Csardi <address@hidden>     MTA KFKI RMKI



reply via email to

[Prev in Thread] Current Thread [Next in Thread]