No applicable_loaders found for UNKNOWN

未关闭
#342 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
julia, jupyter-notebook
领域
tooling

调研方向

使用报告中的代码和版本,重现 IJulia notebook 的重复执行。先从 FileIO/src/loadsave.jl 和 FileIO/src/query.jl 开始,尤其关注 stack trace 位置,并跟踪首次加载后如何检测被监视的文件。完成标准是重复执行能够加载 test.png,且不会出现 UNKNOWN loader error 或 detect_rdata EOF warning。

由索引模型根据 Issue 内容生成。

描述

I want to loop over the following code in an IJulia notebook:

using Images,FileWatching
event = watch_file("test.png")
if event.timedout
    display("timeout")
end
display(load("test.png"))

The first execution works as expected, however, during the second execution I get the following error message

No applicable_loaders found for UNKNOWN

Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] applicable_loaders
   @ ~/.julia/packages/FileIO/40aie/src/loadsave.jl:11 [inlined]
 [3] load(::String; options::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ FileIO ~/.julia/packages/FileIO/40aie/src/loadsave.jl:112
 [4] load(::String)
   @ FileIO ~/.julia/packages/FileIO/40aie/src/loadsave.jl:110
 [5] top-level scope
   @ In[7]:6
 [6] eval
   @ ./boot.jl:360 [inlined]
 [7] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
   @ Base ./loading.jl:1094

and after executing the code yet another time additionally the following

┌ Error: There was an error in magic function detect_rdata.
│ Please open an issue at FileIO.jl.
│   exception = (EOFError(), Union{Ptr{Nothing}, Base.InterpreterIP}[Ptr{Nothing} @0x0000000116cf51a4, Ptr{Nothing} @0x000000011303fc78, Ptr{Nothing} @0x000000011303fe6f, Ptr{Nothing} @0x000000010a0b09ef, Ptr{Nothing} @0x0000000113013cf9, Ptr{Nothing} @0x00000001130146d7, Ptr{Nothing} @0x00000001130155fa, Ptr{Nothing} @0x00000001130157c8, Ptr{Nothing} @0x0000000113015999, Ptr{Nothing} @0x0000000113010e44, Ptr{Nothing} @0x0000000113012a69, Ptr{Nothing} @0x0000000113012cfe, Ptr{Nothing} @0x000000010a0b09ef, Ptr{Nothing} @0x000000010a0c773f, Ptr{Nothing} @0x000000010a0c6094, Ptr{Nothing} @0x000000010a0c640c, Base.InterpreterIP in top-level CodeInfo for Main at statement 0, Ptr{Nothing} @0x000000010a0e0d44, Ptr{Nothing} @0x000000010a0e0b04, Ptr{Nothing} @0x000000010a0e1634, Ptr{Nothing} @0x0000000112ff009c, Ptr{Nothing} @0x0000000112ff04f9, Ptr{Nothing} @0x000000010a0b09ef, Ptr{Nothing} @0x0000000112ffe855, Ptr{Nothing} @0x000000010a0b09ef, Ptr{Nothing} @0x000000010a0bd269, Ptr{Nothing} @0x0000000112fdeb62, Ptr{Nothing} @0x0000000112fdeed4, Ptr{Nothing} @0x0000000112fdeeec, Ptr{Nothing} @0x000000010a0b09ef, Ptr{Nothing} @0x000000010a0cba7d])
└ @ FileIO /Users/paul/.julia/packages/FileIO/40aie/src/query.jl:145

I'm using Julia 1.6 and Images v0.24.1.

主要语言
Julia
星标
228
派生
83
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

JuliaIO/FileIO.jl 的其他 Issue

查看 JuliaIO/FileIO.jl 的全部 Issue

相似的 Issue

更多 Julia Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。