-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rebin_peaks
: Segfault (memory not mapped) for R-devel v4.5.0
#155
Labels
bug
Something isn't working
Comments
Traceback *** caught segfault ***
address 0x1, cause 'memory not mapped'
Traceback:
1: .Call2("C_viewMeans_RleViews", trim(x), na.rm, PACKAGE = "IRanges")
2: viewMeans(v, na.rm = na.rm)
3: viewMeans(v, na.rm = na.rm)
4: viewMeans2(v, na.rm = na.rm)
5: FUN(X[[i]], ...)
6: lapply(names(numvar), function(seqname) { v <- Views(numvar[[seqname]], bins_per_chrom[[seqname]]) viewMeans2(v, na.rm = na.rm)})
7: lapply(names(numvar), function(seqname) { v <- Views(numvar[[seqname]], bins_per_chrom[[seqname]]) viewMeans2(v, na.rm = na.rm)})
8: GenomicRanges::binnedAverage(bins = gr_windows, numvar = data_cov, varname = "score", na.rm = FALSE)
9: FUN(X[[i]], ...)
10: lapply(X = S, FUN = FUN, ...)
11: doTryCatch(return(expr), name, parentenv, handler)
12: tryCatchOne(expr, names, parentenv, handlers[[1L]])
13: tryCatchList(expr, classes, parentenv, handlers)
14: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))})
15: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
16: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
17: FUN(X[[i]], ...)
18: lapply(seq_len(cores), inner.do)
19: apply_fun(FUN = FUN, X, ...)
20: bpplapply(X = peakfiles, workers = workers, FUN = function(gr) { gr <- compute_percentiles(gr = gr, thresholding_cols = intensity_cols, initial_threshold = 0) gr_names <- names(GenomicRanges::mcols(gr)) intens_col <- gr_names[gr_names %in% paste(intensity_cols, "percentile", sep = "_")][1] data_cov <- GenomicRanges::coverage(gr, weight = intens_col) rm(gr) gr <- GenomicRanges::binnedAverage(bins = gr_windows, numvar = data_cov, varname = "score", na.rm = FALSE) return(gr$score)}, ...)
21: rebin_peaks(peakfiles = peakfiles, genome_build = "hg19", bin_size = 5000, workers = 1) |
Issue persists with past commit c2719d6, which previously passed all checks on push. |
Segfault somewhere here C code for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1. Bug description
All functions which call for
rebin_peaks
fail under R-devel v4.5.0 (tested with 2025-01-19 r87600 and prior). Everything works as expected with the latest R-release.2. Reproducible example
Running example for
rebin_peaks
Created on 2025-01-20 with reprex v2.1.1
Data
(Built-in)
3. Session info
Created on 2025-01-20 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: