Repository: snap-stanford/ogb
Issue: [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
Root cause: Validation Gap


<!-- A clear and concise description of what the bug is. -->

## 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 <module>
    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<char>, std::allocator<char> > const&, std::vector<unsigned long, std::allocator<unsigned long> >)+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]

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Expected behavior
Just get the processed data 
<!-- A clear and concise description of what you expected to happen. -->

## 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?
<!-- Add any other context about the problem here. -->