Ernst T. wrote:
I have proof that the error reproduces itself on a non-consistent
- One time program runs perfectly.
- make non essential change; like I add a line x = " "
- next time program does not run and gives the above mentioned errors.
- remove of line --> still errors
Symptoms like this sometimes mean there is a memory management problem
(possibly somewhere in fxruby). It might mean that an object is being
freed even though there is a reference to it. Try doing this somewhere
early in your program:
If you do that, the program will consume increasing amounts of memory,
so it is not a solution to the problem. But if the crash does not
happen, then that probably indicates a memory management bug of some
The source of the problem may be hard to find. You can insert GC.start
after creating objects (remove the GC.disable first). This may help
determine which allocation is the culprit. (Someone suggested a ruby
option to tell GC to collect frequently, which would help, but AFAIK
this doesn’t exist yet.)
Also, you can try to cut your program down to the smallest example in
which the bug still happens.