question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Examples memory error on Windows

See original GitHub issue

I tested the examples on my Windows machines. Most of them work fine, but some of them throw a memory error (e.g. examples\joint_training.py):

raceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\w-32\Anaconda3\envs\avalanche-env\lib\multiprocessing\spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "C:\Users\w-32\Anaconda3\envs\avalanche-env\lib\multiprocessing\spawn.py", line 125, in _main
    prepare(preparation_data)
  File "C:\Users\w-32\Anaconda3\envs\avalanche-env\lib\multiprocessing\spawn.py", line 236, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "C:\Users\w-32\Anaconda3\envs\avalanche-env\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "C:\Users\w-32\Anaconda3\envs\avalanche-env\lib\runpy.py", line 265, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "C:\Users\w-32\Anaconda3\envs\avalanche-env\lib\runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "C:\Users\w-32\Anaconda3\envs\avalanche-env\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\w-32\OneDrive - University of Pisa\Uni\avalanche\examples\joint_training.py", line 26, in <module>
    import torch
  File "C:\Users\w-32\Anaconda3\envs\avalanche-env\lib\site-packages\torch\__init__.py", line 116, in <module>
    raise err
OSError: [WinError 1455] Il file di paging è troppo piccolo per essere completato. Error loading "C:\Users\w-32\Anaconda3\envs\avalanche-env\lib\site-packages\torch\lib\caffe2_detectron_ops_gpu.dll" or one of its dependencies.

I have 16GB of RAM, and looking at the task manager it seems that there is still memory available.

On the remote server (linux machine, 255GB RAM) everything works.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
AntonioCartacommented, Jan 27, 2021

I tested the example on a different Windows machine and it seems to work. Maybe this is a problem with my machine and not avalanche, but it’s a really weird memory problem

1reaction
AntonioCartacommented, Feb 4, 2021

I may have found the problem. Apparently, Windows does not work well with num_workers > 0. This is a known issue (see here). Can we set num_workers=0 in the examples? It shouldn’t have a big impact for the small datasets used in the examples.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Resolve the “Your Computer Is Low on Memory” Error ...
From closing resource-hungry apps to adding more RAM, here's how to fix the "your computer is low on memory" error on Windows.
Read more >
[Fixed] Memory Management BSOD Error on Windows 10/11
A common cause of the MEMORY MANAGEMENT error is a damaged, outdated or incorrect video card driver. And so to fix the error...
Read more >
Memory allocation errors can be caused by slow page file ...
This article provides a workaround for errors that occur when applications frequently allocate memory. Applies to: Windows 10 - all editions
Read more >
How To Fix “Your Computer Is Low on Memory” Error on ...
Click on the Memory header to arrange apps by RAM usage. · Right-click on the app that's using too much memory. Select End...
Read more >
Full Fixes for Your Computer Is Low on Memory in Windows ...
When you receive the low memory error, it means that your computer is running out of RAM and becomes low on virtual memory....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found