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 maximum heap size: -Xmx0m #14489

Open
Asppagh opened this issue Apr 19, 2024 · 0 comments
Open

Invalid maximum heap size: -Xmx0m #14489

Asppagh opened this issue Apr 19, 2024 · 0 comments
Assignees
Labels
needs-triage A brand new issue that needs triaging.

Comments

@Asppagh
Copy link

Asppagh commented Apr 19, 2024

What happened?

while trying to run the following code I get the error mention in the title (Invalid maximum heap size: -Xmx0m).

import hail as hl
hl.init(default_reference="GRCh38")

However I tried to resolve the issue with overloading the default setting with new values for spark configuration (command below), unfortunately the error still exists
hl.init(driver_memory='1024m’)

Version

latest version used in allOfUs research workbench platform

Relevant log output

Invalid maximum heap size: -Xmx0m
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Cell In[14], line 2
      1 #hl.init(default_reference="GRCh38")
----> 2 hl.init(driver_memory='1024m')

File <decorator-gen-1756>:2, in init(sc, app_name, master, local, log, quiet, append, min_block_size, branching_factor, tmp_dir, default_reference, idempotent, global_seed, spark_conf, skip_logging_configuration, local_tmpdir, _optimizer_iterations, backend, driver_cores, driver_memory, worker_cores, worker_memory, gcs_requester_pays_configuration, regions, gcs_bucket_allow_list)

File /opt/conda/lib/python3.10/site-packages/hail/typecheck/check.py:587, in _make_dec.<locals>.wrapper(__original_func, *args, **kwargs)
    584 @decorator
    585 def wrapper(__original_func: Callable[..., T], *args, **kwargs) -> T:
    586     args_, kwargs_ = check_all(__original_func, args, kwargs, checkers, is_method=is_method)
--> 587     return __original_func(*args_, **kwargs_)

File /opt/conda/lib/python3.10/site-packages/hail/context.py:364, in init(sc, app_name, master, local, log, quiet, append, min_block_size, branching_factor, tmp_dir, default_reference, idempotent, global_seed, spark_conf, skip_logging_configuration, local_tmpdir, _optimizer_iterations, backend, driver_cores, driver_memory, worker_cores, worker_memory, gcs_requester_pays_configuration, regions, gcs_bucket_allow_list)
    346     return hail_event_loop().run_until_complete(init_batch(
@Asppagh Asppagh added the needs-triage A brand new issue that needs triaging. label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage A brand new issue that needs triaging.
Projects
None yet
Development

No branches or pull requests

2 participants