Thanks Gabor,

Yes, I found the much simpler function membership(). I was trying to use
old code that had work previously, meanwhile things changed.

Cheers,
Filipe

On Sat, Sep 1, 2012 at 5:40 PM, Gábor Csárdi <[email protected]> wrote:

> Filipe,
>
> thanks for your report. This is actually a known bug:
> https://bugs.launchpad.net/igraph/+bug/1022850
> It will be fixed in the next release.
>
> The igraph wiki might actually be obsolete. You don't really need that
> function, except in some special cases. Please read the R
> documentation, especially ?communities and see also
> igraphdemo("community").
>
> Please tell us if you have more questions or need a workaround for the bug.
>
> Best,
> Gabor
>
> On Fri, Aug 31, 2012 at 6:58 PM, Filipe Alberto <[email protected]>
> wrote:
> > dear Igraph community,
> >
> > Here is a question about community detection (no pun intended).
> >
> > The community.to.membership function is making my R session to crash, I
> have
> > tried several community detection algorithms as explained in the igraph
> > wiki.
> >
> > below is a copy of the information I get with the crash (it looks ugly to
> > me). Any idea what might be going on? I have used this code before with
> > success so I wonder if this something to do with my current Ubuntu 12
> > installation.
> >
> > Cheers,
> > Filipe
> >
> >  wmemb <- community.to.membership(SubPatchGraphT,
> > wt$merges,steps=which.max(wt$modularity)-1)
> > *** glibc detected *** /usr/lib/R/bin/exec/R: free(): invalid next size
> > (fast): 0x09fd2828 ***
> > ======= Backtrace: =========
> > /lib/i386-linux-gnu/libc.so.6(+0x73e42)[0xb725ee42]
> >
> /home/filipe/R/i686-pc-linux-gnu-library/2.15/igraph/libs/igraph.so(igraph_vector_destroy+0x28)[0xb06ce168]
> >
> /home/filipe/R/i686-pc-linux-gnu-library/2.15/igraph/libs/igraph.so(R_igraph_community_to_membership+0x12e)[0xb06675ae]
> > /usr/lib/R/lib/libR.so(+0x9e549)[0xb744a549]
> > /usr/lib/R/lib/libR.so(Rf_eval+0x750)[0xb7484430]
> > /usr/lib/R/lib/libR.so(+0xda317)[0xb7486317]
> > /usr/lib/R/lib/libR.so(Rf_eval+0x550)[0xb7484230]
> > /usr/lib/R/lib/libR.so(Rf_applyClosure+0x3ad)[0xb74879ad]
> > /usr/lib/R/lib/libR.so(Rf_eval+0x41d)[0xb74840fd]
> > /usr/lib/R/lib/libR.so(+0xda19a)[0xb748619a]
> > /usr/lib/R/lib/libR.so(Rf_eval+0x550)[0xb7484230]
> > /usr/lib/R/lib/libR.so(Rf_ReplIteration+0x1fa)[0xb74c403a]
> > /usr/lib/R/lib/libR.so(+0x11831b)[0xb74c431b]
> > /usr/lib/R/lib/libR.so(run_Rmainloop+0x62)[0xb74c43c2]
> > /usr/lib/R/lib/libR.so(Rf_mainloop+0x19)[0xb74c43e9]
> > /usr/lib/R/bin/exec/R(main+0x38)[0x8048608]
> > /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb72044d3]
> > /usr/lib/R/bin/exec/R[0x8048631]
> > ======= Memory map: ========
> > 08048000-08049000 r-xp 00000000 08:01 8145517    /usr/lib/R/bin/exec/R
> > 08049000-0804a000 r--p 00000000 08:01 8145517    /usr/lib/R/bin/exec/R
> > 0804a000-0804b000 rw-p 00001000 08:01 8145517    /usr/lib/R/bin/exec/R
> > 09569000-0e5f6000 rw-p 00000000 00:00 0          [heap]
> > ad44e000-adaf7000 rw-p 00000000 00:00 0
> > af0c3000-af1c4000 rw-p 00000000 00:00 0
> > af5bf000-b037c000 rw-p 00000000 00:00 0
> > b037d000-b041b000 rw-p 00000000 00:00 0
> > b041b000-b079d000 r-xp 00000000 08:01 22326943
> > /home/filipe/R/i686-pc-linux-gnu-library/2.15/igraph/libs/igraph.so
> > b079d000-b079e000 r--p 00382000 08:01 22326943
> > /home/filipe/R/i686-pc-linux-gnu-library/2.15/igraph/libs/igraph.so
> > b079e000-b07a2000 rw-p 00383000 08:01 22326943
> > /home/filipe/R/i686-pc-linux-gnu-library/2.15/igraph/libs/igraph.so
> > b07a2000-b07fd000 rw-p 00000000 00:00 0
> > b07fd000-b08d5000 r-xp 00000000 08:01 2631629
> > /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
> > b08d5000-b08d6000 ---p 000d8000 08:01 2631629
> > /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
> > b08d6000-b08da000 r--p 000d8000 08:01 2631629
> > /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
> > b08da000-b08db000 rw-p 000dc000 08:01 2631629
> > /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
> > b08db000-b08e2000 rw-p 00000000 00:00 0
> > b08e2000-b0950000 r-xp 00000000 08:01 21672763
> > /home/filipe/R/i686-pc-linux-gnu-library/2.15/bigmemory/libs/bigmemory.so
> > b0950000-b0951000 r--p 0006d000 08:01 21672763
> > /home/filipe/R/i686-pc-linux-gnu-library/2.15/bigmemory/libs/bigmemory.so
> > b0951000-b0952000 rw-p 0006e000 08:01 21672763
> > /home/filipe/R/i686-pc-linux-gnu-library/2.15/bigmemory/libs/bigmemory.so
> > b0952000-b10ef000 r-xp 00000000 08:01 4993027
> > /usr/lib/lapack/liblapack.so.3gf.0
> > b10ef000-b10f0000 r--p 0079c000 08:01 4993027
> > /usr/lib/lapack/liblapack.so.3gf.0
> > b10f0000-b10f3000 rw-p 0079d000 08:01 4993027
> > /usr/lib/lapack/liblapack.so.3gf.0
> > b10f3000-b136d000 rw-p 00000000 00:00 0
> > b136d000-b1396000 r-xp 00000000 08:01 8145900
> > /usr/lib/R/library/grDevices/libs/grDevices.so
> > b1396000-b1397000 r--p 00028000 08:01 8145900
> > /usr/lib/R/library/grDevices/libs/grDevices.so
> > b1397000-b1398000 rw-p 00029000 08:01 8145900
> > /usr/lib/R/library/grDevices/libs/grDevices.so
> > b13bb000-b13de000 r-xp 00000000 08:01 8146213
> > /usr/lib/R/library/grid/libs/grid.so
> > b13de000-b13df000 r--p 00023000 08:01 8146213
> > /usr/lib/R/library/grid/libs/grid.so
> > b13df000-b13e0000 rw-p 00024000 08:01 8146213
> > /usr/lib/R/library/grid/libs/grid.so
> > b13e0000-b1452000 r-xp 00000000 08:01 2631573
> > /usr/lib/i386-linux-gnu/libquadmath.so.0.0.0
> > b1452000-b1453000 r--p 00071000 08:01 2631573
> > /usr/lib/i386-linux-gnu/libquadmath.so.0.0.0
> > b1453000-b1454000 rw-p 00072000 08:01 2631573
> > /usr/lib/i386-linux-gnu/libquadmath.so.0.0.0
> > b1454000-b1470000 r-xp 00000000 08:01 9325236
> > /lib/i386-linux-gnu/libgcc_s.so.1
> > b1470000-b1471000 r--p 0001b000 08:01 9325236
> > /lib/i386-linux-gnu/libgcc_s.so.1
> > b1471000-b1472000 rw-p 0001c000 08:01 9325236
> > /lib/i386-linux-gnu/libgcc_s.so.1
> > b1472000-b1570000 r-xp 00000000 08:01 2635686
> > /usr/lib/i386-linux-gnu/libgfortran.so.3.0.0
> > b1570000-b1571000 r--p 000fe000 08:01 2635686
> > /usr/lib/i386-linux-gnu/libgfortran.so.3.0.0
> > b1571000-b1572000 rw-p 000ff000 08:01 2635686
> > /usr/lib/i386-linux-gnu/libgfortran.so.3.0.0
> > b1572000-b1573000 rw-p 00000000 00:00 0
> > b1578000-b157e000 r-xp 00000000 08:01 21546120
> > /home/filipe/R/i686-pc-linux-gnu-library/2.15/sp/libs/sp.so
> > b157e000-b157f000 r--p 00005000 08:01 21546120
> > /home/filipe/R/i686-pc-linux-gnu-library/2.15/sp/libs/sp.so
> > b157f000-b1580000 rw-p 00006000 08:01 21546120
> > /home/filipe/R/i686-pc-linux-gnu-library/2.15/sp/libs/sp.so
> > b1580000-b1583000 r-xp 00000000 08:01 8276903
> > /usr/lib/R/library/lattice/libs/lattice.so
> > b1583000-b1584000 r--p 00002000 08:01 8276903
> > /usr/lib/R/library/lattice/libs/lattice.so
> > b1584000-b1585000 rw-p 00003000 08:01 8276903
> > /usr/lib/R/library/lattice/libs/lattice.so
> > b1585000-b1587000 r-xp 00000000 08:01 21546211
> > /home/filipe/R/i686-pc-linux-gnu-library/2.15/colorout/libs/colorout.so
> > b1587000-b1588000 r--p 00001000 08:01 21546211
> > /home/filipe/R/i686-pc-linux-gnu-library/2.15/colorout/libs/colorout.so
> > b1588000-b1589000 rw-p 00002000 08:01 21546211
> > /home/filipe/R/i686-pc-linux-gnu-library/2.15/colorout/libs/colorout.so
> > b1589000-b15f5000 r-xp 00000000 08:01 8273778
> > /usr/lib/R/library/stats/libs/stats.so
> > b15f5000-b15f6000 r--p 0006c000 08:01 8273778
> > /usr/lib/R/library/stats/libs/stats.so
> > b15f6000-b15f7000 rw-p 0006d000 08:01 8273778
> > /usr/lib/R/library/stats/libs/stats.so
> > b15f7000-b2c19000 rw-p 00000000 00:00 0
> > b51a5000-b6ac1000 rw-p 00000000 00:00 0
> > b6ac1000-b6ac3000 r-xp 00000000 08:01 2631959
> > /usr/lib/i386-linux-gnu/gconv/ISO8859-1.so
> > b6ac3000-b6ac4000 r--p 00001000 08:01 2631959
> > /usr/lib/i386-linux-gnu/gconv/ISO8859-1.so
> > b6ac4000-b6ac5000 rw-p 00002000 08:01 2631959
> > /usr/lib/i386-linux-gnu/gconv/ISO8859-1.so
> > b6ac5000-b6bcc000 rw-p 00000000 00:00 0
> > b6bcc000-b6bd3000 r-xp 00000000 08:01 8273895
> > /usr/lib/R/library/methods/libs/methods.so
> > b6bd3000-b6bd4000 r--p 00006000 08:01 8273895
> > /usr/lib/R/library/methods/libs/methods.so
> > b6bd4000-b6bd5000 rw-p 00007000 08:01 8273895
> > /usr/lib/R/library/methods/libs/methods.so
> > b6bd5000-b6c6b000 rw-p 00000000 00:00 0
> > b6c6b000-b6c76000 r-xp 00000000 08:01 9325266
> > /lib/i386-linux-gnu/libnss_files-2.15.soAborted (core dumped)
> >
> >
> >
> > _______________________________________________
> > igraph-help mailing list
> > [email protected]
> > https://lists.nongnu.org/mailman/listinfo/igraph-help
> >
>
>
>
> --
> Gabor Csardi <[email protected]>     MTA KFKI RMKI
>
> _______________________________________________
> igraph-help mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to