AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[development](ubuntu)

Martin Hope
Tripartio
Asked: 2024-12-10 16:45:42 +0800 CST

仅在 ubuntu-latest (devel) 上,R-CMD-CHECK 中的“为未来表达式导出的 x 个全局变量的总大小”

  • 6

抱歉,但我不确定这里是否是报告问题的正确地方,因为它涉及三个系统的融合,其中只有一个是 Ubuntu。我首先尝试了其他两个组件(GitHub Actions和R 包future)的帮助论坛,但无法继续前进,所以我才来到这里。如果有更合适的论坛,请重定向我。

我在ale/.github/workflows/R-CMD-check.yaml at main · tripartio/ale 上为我的软件包创建了一个 R-CMD-CHECK Github Actions 工作流。该操作针对 MacOS、Windows 和三个版本的 Ubuntu 验证了我的软件包。目前除了 之外ubuntu-latest (devel),其他一切都通过了, 因与并行处理框架相关的问题而失败future。值得注意的是,和服务器毫无问题地通过了测试(MacOS 和 Windows 也是如此);问题只出在 上。ubuntu-latest (release)ubuntu-latest (oldrel-1)ubuntu-latest (devel)

以下是最近一次失败运行的相关部分:R-CMD-CHECK:

── R CMD build ─────────────────────────────────────────────────────────────────
* checking for file ‘.../DESCRIPTION’ ... OK
* preparing ‘ale’:
* checking DESCRIPTION meta-information ... OK
* installing the package to build vignettes
* creating vignettes ... ERROR
Error: --- re-building ‘ale-intro.Rmd’ using rmarkdown
--- finished re-building ‘ale-intro.Rmd’
--- re-building ‘ale-small-datasets.Rmd’ using rmarkdown
Quitting from lines 95-104 [lm_simple] (ale-small-datasets.Rmd)
Error: Error: processing vignette 'ale-small-datasets.Rmd' failed with diagnostics:
The total size of the 56 globals exported for future expression ('function (it.x_cols); {; if (!silent && is.null(bins)) {; progress_iterator(); }; ale_results <- list_transpose(calc_ale(data, model, it.x_cols,; ...; it.rtn; })); }') is 1.85 GiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). The three largest globals are 'abort' (99.45 MiB of class 'function'), 'action_dots' (99.42 MiB of class 'function') and 'as_label' (99.42 MiB of class 'function')
--- failed re-building ‘ale-small-datasets.Rmd’
--- re-building ‘ale-statistics.Rmd’ using rmarkdown
--- finished re-building ‘ale-statistics.Rmd’
--- re-building ‘ale-x-datatypes.Rmd’ using rmarkdown
Quitting from lines 123-134 [cars_full] (ale-x-datatypes.Rmd)
Error: Error: processing vignette 'ale-x-datatypes.Rmd' failed with diagnostics:
The total size of the 129 globals exported for future expression ('function (btit, btit.idxs); {; if (!silent) {; progress_iterator(); }; btit.model <- NULL; ...; else {; NULL; }') is 4.01 GiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). The three largest globals are 'abort' (83.31 MiB of class 'function'), 'abort_context' (83.30 MiB of class 'function') and 'trace_back' (83.29 MiB of class 'function')
--- failed re-building ‘ale-x-datatypes.Rmd’
SUMMARY: processing the following files failed:
  ‘ale-small-datasets.Rmd’ ‘ale-x-datatypes.Rmd’
Error: Error: Vignette re-building failed.
Execution halted
Error: Error in proc$get_built_file() : Build process failed
Calls: <Anonymous> ... build_package -> with_envvar -> force -> <Anonymous>
Execution halted
Error: Process completed with exit code 1.
Run ## --------------------------------------------------------------------
Show testthat output
Run actions/upload-artifact@v4
Warning: No files were found with the provided path: /home/runner/work/ale/ale/check. No artifacts will be uploaded.
Run actions/upload-artifact@v4
No files were found with the provided path: /home/runner/work/ale/ale/check/**/tests*/testthat/_snaps. No artifacts will be uploaded.

我尝试了Posit 社区 GitHub Actions 线程中我提交的 bug 报告中的几个方法,但收到并尝试的几个建议并没有帮助。根据我未来软件包 GitHub 问题中 bug 报告中的提示,我可以确认问题不是软件包本身的配置错误,而是严格与GitHub 操作调用的服务器future隔离。ubuntu-latest (devel)

上面日志中指定的导出对象的数量并不罕见,但我发现非常奇怪的是列出的前三个函数的大小非常大:

  • “三个最大的全局变量是‘abort’(‘function’ 类的 99.45 MiB)、‘action_dots’(‘function’ 类的 99.42 MiB)和‘as_label’(‘function’ 类的 99.41 MiB)”
  • “三个最大的全局变量是‘abort’(‘function’ 类的 83.31 MiB)、‘abort_context’(‘function’ 类的 83.30 MiB)和‘trace_back’(‘function’ 类的 83.29 MiB)”。

据我所知,这些都是rlang函数;我不知道它们为什么会这么大。据我从上面的构建日志中得知,服务器似乎ubuntu-latest (devel)认为 {future} 并行化包没有为我的包测试中的对象分配足够的空间。其他构建(包括其他两个 Ubuntu 构建)均未报告此错误。

在我看来,出于某种原因,{future} 安装ubuntu-latest (devel)严重高估了软件包的存储需求,而这在早期版本的 Ubuntu 上不是问题。也许某个地方有内存泄漏?如果ubuntu-latest (devel)代表即将发布的 Ubuntu,那么在发布 Ubuntu 版本之前,应该先调查并解决此问题。

我知道这是一个关于特定系统的非常具体的问题,但如果有人至少能告诉我谁在维护R-CMD-CHECK GitHub Action,那将是一个很好的提示。正如我在开头提到的,我首先在他们的论坛上发帖,但未能在那里得到必要的帮助。

development
  • 2 个回答
  • 100 Views
Martin Hope
kamer_kane
Asked: 2020-06-20 22:33:33 +0800 CST

在开发社区的基础上,Lubuntu 和 Xubuntu 有什么区别?

  • 2

我在某处读到 Lubuntu 是由 Lubuntu 社区开发的,但 Xubuntu 是由社区开发的(即社区维护的)。这两个社区有何不同?

development lubuntu xubuntu
  • 1 个回答
  • 466 Views
Martin Hope
Walter ZAMBOTTI
Asked: 2020-05-18 20:12:34 +0800 CST

20.04 开发包 (libfreetype6-dev) 未准备好。骨架包

  • 1

我注意到一些开发包不包含完整的包内容(与 18.04 相比),只是骨架包。例如 libfreetype6-dev。

我应该担心还是在 7 月下旬发布 20.04.1 之前会出现这种情况?

package-management development libraries 20.04
  • 1 个回答
  • 150 Views
Martin Hope
Thufir
Asked: 2020-05-04 17:49:01 +0800 CST

如何通过 Darcula 主题在暗模式下使用 NetBeans?

  • 2

如何通过 Netbeans 本身安装Darcula ?

插件

似乎是通过 GUI 启用正确插件的问题?

与手动下载后安装相比:

手动的

我希望它可以通过 GUI 使用:

此插件的最新稳定版本可在 NetBeans 插件门户中以 Darcula LAF for NetBeans 的形式获得,因此可以从 NetBeans IDE 的“工具|插件|可用插件”安装它。

或一些替代的深色主题...

development programming ide java netbeans
  • 1 个回答
  • 8349 Views
Martin Hope
swanux
Asked: 2019-08-07 10:42:42 +0800 CST

如何进行最小安装以便自定义 Ubuntu?

  • 0

我想使用 Minimal ISO(或类似的东西)来组装我的 Ubuntu 发行版。没关系,但是我不知道如何设置发行版的名称以及如何正确更新它而不会出现错误或名称更改。

customization development custom-distributions
  • 2 个回答
  • 619 Views
Martin Hope
Robie Basak
Asked: 2018-10-23 04:28:16 +0800 CST

使用 git-ubuntu 准备后,我应该如何上传包?

  • 2

我通过克隆 git-ubuntu 存储库并在本地提交一些更改来准备上传。作为 Ubuntu 开发人员,我有权上传到存档。我需要做什么才能正确上传我的更改?

development packaging deb source-packages git-ubuntu
  • 1 个回答
  • 73 Views
Martin Hope
Frane
Asked: 2018-10-18 07:15:26 +0800 CST

18.04 中缺少软件包 libprocess-cpp-dev

  • 1

我正在尝试构建一个需要libprocess-cpp-dev. 18.04没有可用的版本。

我还尝试使用以下方法寻找具有相同头文件的替代包apt-file:

apt-file search /usr/include/core/

但没有文件/usr/include/core/posix/child_process.h

我该怎么做才能在 18.04 上获取我需要的文件?

package-management development 18.04
  • 2 个回答
  • 84 Views
Martin Hope
SaintDude
Asked: 2018-10-14 04:22:58 +0800 CST

如何替换Apache2的主页?

  • 0

如何将 Apache2 的主页更改为我自己的自定义页面?

development apache2 webserver
  • 1 个回答
  • 470 Views
Martin Hope
sudodus
Asked: 2018-03-22 10:17:04 +0800 CST

Ubuntu 开发版 / 如何参与,或如何获得一帆风顺

  • 14

关于 Ubuntu 开发版的问题

背景

AskUbuntu 致力于帮助用户使用当前发布的标准 Ubuntu 版本和 Ubuntu 社区风格(Kubuntu、Lubuntu ... Xubuntu)。

尽管如此,我们可能想现场试用和/或安装下一个 Ubuntu 版本,我们可能需要与其他人就它进行互动。

问题

  • 我如何参与或获得有关 Ubuntu 开发版的帮助?

    2018 年 4 月,“Bionic”作为 18.04 LTS 发布,2018 年 7 月,第一个版本发布为 18.04.1 LTS。

    2020 年 4 月,“Focal”发布为 20.04 LTS,2020 年 8 月,第一点发布为 20.04.1 LTS。2020 年 10 月,“Groovy”将作为 20.20 发布。

  • 如果我想要平稳运行(并在 AskUbuntu 获得帮助),我应该什么时候升级?

launchpad development bug-reporting testing iso
  • 1 个回答
  • 2681 Views
Martin Hope
COil
Asked: 2018-03-02 08:55:48 +0800 CST

Apt get install php7.1-dev 扩展不起作用

  • 6

我正在使用 PHP 7.1 运行 Ubuntu 17.04,我正在尝试安装 PHP 开发扩展,但没有找到:

[17:21:43] @Z240:~/workspace/api$ sudo apt install php7.1-dev
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet php7.1-dev
E: Couldn't find any package by glob 'php7.1-dev'
E: Impossible de trouver de paquet correspondant à l'expression rationnelle « php7.1-dev »

以下是已安装扩展的列表:

[17:21:42] @Z240:~/workspace/api$ sudo apt-cache pkgnames | grep php7.1
php7.1-xml
php7.1-mbstring
php7.1-readline
php7.1-zip
php7.1-mysql
php7.1
php7.1-sqlite3
php7.1-opcache
php7.1-json
php7.1-curl
php7.1-ldap
php7.1-bz2
php7.1-cli
php7.1-common
php7.1-mcrypt
php7.1-gd

我不明白为什么它不可用。它应该是默认包的一部分。

[编辑] 奇怪:尝试安装 phpize 时,即使我使用 7.1,apt-get 也会建议我安装 php7.0-dev:

[17:33:12]@Z240:~/workspace/api$ php -v PHP 7.1.11-1+ubuntu17.04.1+deb.sury.org+1 (cli)(构建时间:2017 年 10 月 27 日 13:50: 28) ( NTS ) 版权所有 (c) 1997-2017 The PHP Group Zend Engine v3.1.0, 版权所有 (c) 1998-2017 Zend Technologies with Zend OPcache v7.1.11-1+ubuntu17.04.1+deb.sury.org+1 , Copyright (c) 1999-2017, by Zend Technologies with blackfire v1.18.2~linux-x64-non_zts71, https://blackfire.io , by SensioLabs

[17:33:22] @Z240:~/workspace/api$ phpize Le 程序 « phpize » n'est pas encore installé。Vous pouvez l'installer en tapant : sudo apt install php7.0-dev

development apt php php7
  • 2 个回答
  • 15376 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve