Skip to content

Instantly share code, notes, and snippets.

@vi
Created February 18, 2011 00:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vi/833026 to your computer and use it in GitHub Desktop.
Save vi/833026 to your computer and use it in GitHub Desktop.
memory allocation errors in gtk programs
vi@vi-notebook:~/_$ gimp-2.7 2.jpg
This is a development version of GIMP. Debug messages may appear here.
GLib-ERROR **: /build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gmem.c:137: failed to allocate 4096 bytes
aborting...
gimp-2.7: terminated: Aborted
(script-fu:5118): LibGimpBase-WARNING **: script-fu: gimp_wire_read(): error
vi@vi-notebook:~/_$ gnucash
gnc.bin-Message: main: binreloc relocation support was disabled at configure time.
Backtrace:
In unknown file:
?: 35* [resolve-module (gnucash report cash-flow)]
?: 36 (let ((full-name #)) (let (#) (if already # #)))
...
?: 37 (begin (if # #) (make-modules-in # full-name))
?: 38* (if (or # #) (try-load-module name))
?: 39 [try-load-module (gnucash report cash-flow)]
?: 40 (or (begin (try-module-linked name)) (try-module-autoload name) ...)
?: 41* [try-module-autoload (gnucash report cash-flow)]
?: 42 (let* (# # # #) (resolve-module dir-hint-module-name #f) (and # #))
...
?: 43 (letrec ((load-file #)) (dynamic-wind (lambda () #) (lambda () #) ...) ...)
?: 44* [dynamic-wind #<procedure #f ()> #<procedure #f ()> #<procedure #f ()>]
?: 45* [#<procedure #f ()>]
?: 46* (let ((file #)) (cond (# => #) (# => #)))
?: 47 [#<procedure #f #> "/usr/share/gnucash/guile-modules/gnucash/report/cash-f$
?: 48 [load-file #<primitive-procedure primitive-load> ...]
?: 49* [save-module-excursion #<procedure #f ()>]
?: 50 (let (# #) (dynamic-wind # thunk #))
?: 51 [dynamic-wind #<procedure #f ()> #<procedure #f ()> #<procedure #f ()>]
?: 52* [#<procedure #f ()>]
?: 53* [primitive-load "/usr/share/gnucash/guile-modules/gnucash/report/cash-flow$
In /usr/share/gnucash/guile-modules/gnucash/report/cash-flow.scm:
38: 54* [gnc-module-load "gnucash/gnome-utils" 0]
/usr/share/gnucash/guile-modules/gnucash/report/cash-flow.scm:38:1: In procedure scm_subr_table in expression (gnc:module-load "gnucash/gnome-utils" 0):
/usr/share/gnucash/guile-modules/gnucash/report/cash-flow.scm:38:1: Memory allocation error
# cat /etc/security/limits.conf | grep vi
vi soft memlock 102400
vi hard memlock 102400
vi@vi-notebook:~/_$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 16382
max locked memory (kbytes, -l) 102400
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 10
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
vi@vi-notebook:~/_$ free -m
total used free shared buffers cached
Mem: 1507 1408 98 0 143 769
-/+ buffers/cache: 496 1011
Swap: 488 85 402
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment