Skip to content
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

[Invalid Magic Number]: dgl._ffi.base.DGLError: [17:10:57] /opt/dgl/src/graph/heterograph.cc:568: Check failed: fs->Read(&magicNum): Invalid Magic Number #495

Open
RoyIronGrey opened this issue Dec 18, 2024 · 0 comments

Comments

@RoyIronGrey
Copy link

To Reproduce

Steps to reproduce the behavior:

  1. from ogb.nodeproppred import DglNodePropPredDataset
  2. data = graphdata_preprocess(
     DglNodePropPredDataset('ogbn-papers100M', root='ogbn-papers100M')
    
    )
  3. The unexpected results:
    Traceback (most recent call last):
    File "/home/ogbn-papers100m-sage-main/train.py", line 188, in
    DglNodePropPredDataset('ogbn-papers100M', root='ogbn-papers100M')
    File "/home/anaconda3/envs/ogbn-papers/lib/python3.9/site-packages/ogb/nodeproppred/dataset_dgl.py", line 69, in init
    self.pre_process()
    File "/home/anaconda3/envs/ogbn-papers/lib/python3.9/site-packages/ogb/nodeproppred/dataset_dgl.py", line 76, in pre_process
    self.graph, label_dict = load_graphs(pre_processed_file_path)
    File "/home/anaconda3/envs/ogbn-papers/lib/python3.9/site-packages/dgl/data/graph_serialize.py", line 195, in load_graphs
    return load_graph_v2(filename, idx_list)
    File "/home/anaconda3/envs/ogbn-papers/lib/python3.9/site-packages/dgl/data/graph_serialize.py", line 205, in load_graph_v2
    heterograph_list = _CAPI_LoadGraphFiles_V2(filename, idx_list)
    File "dgl/_ffi/_cython/./function.pxi", line 295, in dgl._ffi._cy3.core.FunctionBase.call
    File "dgl/_ffi/_cython/./function.pxi", line 227, in dgl._ffi._cy3.core.FuncCall
    File "dgl/_ffi/_cython/./function.pxi", line 217, in dgl._ffi._cy3.core.FuncCall3
    dgl._ffi.base.DGLError: [17:10:57] /opt/dgl/src/graph/heterograph.cc:568: Check failed: fs->Read(&magicNum): Invalid Magic Number
    Stack trace:
    [bt] (0) /home/anaconda3/envs/ogbn-papers/lib/python3.9/site-packages/dgl/libdgl.so(+0x93a394) [0x73c4be13a394]
    [bt] (1) /home/anaconda3/envs/ogbn-papers/lib/python3.9/site-packages/dgl/libdgl.so(dgl::HeteroGraph::Load(dmlc::Stream*)+0x282) [0x73c4be142a32]
    [bt] (2) /home/anaconda3/envs/ogbn-papers/lib/python3.9/site-packages/dgl/libdgl.so(dgl::serialize::LoadHeteroGraphs(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<unsigned long, std::allocator >)+0xfc1) [0x73c4be1de4a1]
    [bt] (3) /home/anaconda3/envs/ogbn-papers/lib/python3.9/site-packages/dgl/libdgl.so(+0x9d5495) [0x73c4be1d5495]
    [bt] (4) /home/anaconda3/envs/ogbn-papers/lib/python3.9/site-packages/dgl/libdgl.so(DGLFuncCall+0x4f) [0x73c4be0da4ef]
    [bt] (5) /home/anaconda3/envs/ogbn-papers/lib/python3.9/site-packages/dgl/_ffi/_cy3/core.cpython-39-x86_64-linux-gnu.so(+0x1d8d7) [0x73c4bcc1d8d7]
    [bt] (6) /home/anaconda3/envs/ogbn-papers/lib/python3.9/site-packages/dgl/_ffi/_cy3/core.cpython-39-x86_64-linux-gnu.so(+0x1e150) [0x73c4bcc1e150]
    [bt] (7) python(_PyObject_MakeTpCall+0x2ec) [0x4f077c]
    [bt] (8) python(_PyEval_EvalFrameDefault+0x4c93) [0x4ec693]

Expected behavior

Just get the processed data

Environment

  • DGL Version (e.g., 1.0): 2.4.0+cu121
  • Backend Library & Version (e.g., PyTorch 0.4.1, MXNet/Gluon 1.3): Pytorch 2.4.0
  • OS (e.g., Linux): Ubuntu
  • How you installed DGL (conda, pip, source): pip
  • Build command you used (if compiling from source):
  • Python version: 3.9
  • CUDA/cuDNN version (if applicable): 12.1
  • GPU models and configuration (e.g. V100): A100
  • Any other relevant information:

Additional context

Or is this a DGL issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant