Changes between Initial Version and Version 2 of Ticket #29989


Ignore:
Timestamp:
Nov 26, 2018, 6:24:50 PM (6 years ago)
Author:
Taylor
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29989 – Description

    initial v2  
    1010r.save()
    1111  }}}
     12
    1213The image is only about a gb and I have plenty of ram to handle it. When I save the raster it runs through almost all 32gb of ram and then throws the error. From all the docs and posts I have seen it appears that I am uploading the raster correctly so I am assuming there is a bug somewhere.
     14
     15{{{
     16
     17>>> rast = GDALRaster('rasters/data/raw_tempe.tif', write=True)
     18>>> r = Rast(name='Test', image=rast)
     19>>> r.save()
     20Traceback (most recent call last):
     21  File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute
     22    return self.cursor.execute(sql, params)
     23psycopg2.OperationalError: cannot allocate memory for output buffer
     24
     25
     26The above exception was the direct cause of the following exception:
     27
     28Traceback (most recent call last):
     29  File "<console>", line 1, in <module>
     30  File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/models/base.py", line 718, in save
     31    force_update=force_update, update_fields=update_fields)
     32  File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/models/base.py", line 748, in save_base
     33    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
     34  File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/models/base.py", line 831, in _save_table
     35    result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
     36  File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/models/base.py", line 869, in _do_insert
     37    using=using, raw=raw)
     38  File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
     39    return getattr(self.get_queryset(), name)(*args, **kwargs)
     40  File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/models/query.py", line 1136, in _insert
     41    return query.get_compiler(using=using).execute_sql(return_id)
     42  File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1289, in execute_sql
     43    cursor.execute(sql, params)
     44  File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/backends/utils.py", line 100, in execute
     45    return super().execute(sql, params)
     46  File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/backends/utils.py", line 68, in execute
     47    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
     48  File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
     49    return executor(sql, params, many, context)
     50  File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute
     51    return self.cursor.execute(sql, params)
     52  File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
     53    raise dj_exc_value.with_traceback(traceback) from exc_value
     54  File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute
     55    return self.cursor.execute(sql, params)
     56django.db.utils.OperationalError: cannot allocate memory for output buffer
     57
     58}}}
Back to Top