Skip to content

caught segfault error in vignette example using Mac M2 #22

@OscarKjell

Description

@OscarKjell

Hi,
thanks for a great package!

When running the vignette example

I get an error on my Mac M2.

Code:

sotu.instances <- 
  mallet.import(id.array = row.names(sotu), 
                text.array = sotu[["text"]], 
                stoplist = stopwords_en_file_path,
                token.regexp = "\\p{L}[\\p{L}\\p{P}]+\\p{L}")

Error:

 *** caught segfault ***
address 0xfffffffffffffff8, cause 'invalid permissions'

Traceback:
 1: .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,     .jcast(if (inherits(o, "jobjRef") || inherits(o, "jarrayRef")) o else cl,         "java/lang/Object"), .jnew("java/lang/String", method),     j_p, j_pc, use.true.class = TRUE, evalString = simplify,     evalArray = FALSE)
 2: .jrcall(x, name, ...)
 3: rJava::J("cc/mallet/topics/RTopicModel")$addInstances(instances,     id.array, text.array)
 4: mallet.import(id.array = row.names(sotu), text.array = sotu[["text"]],     stoplist = stopwords_en_file_path, token.regexp = "\\p{L}[\\p{L}\\p{P}]+\\p{L}")

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace

Any help is much appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions