Posts

Showing posts from February, 2016

Omegalib 11.0 released

This version introduces a new set of classes to handle GPU resources (GpuBuffer, VertexArray, GpuRef etc.). It also adds an explicit display system flag to mark whether OpenGL should be initialized in core or compatibility profile. Other changes include A WorkerPool class improved packaging support the maintenance tools are now included as part of the distribution and include two new tools:   pack.app  to package a single application (experimental)   choose to choose a specific distribution as the enabled distribution on the machine (windows only for now) MissionControlClient.spawn  to start child orun processes that automatically connect back to a mission control server. Omegalib 11.0 is available as an update for the Windows and OSX binary distributions. Launch the package manager and choose update components to download the update.

Solving Bus Error: 10 crash on OSX

Image
This note is mostly a reminder to myself but could be useful to others. While running some CSV parsing code on OSX, I encountered a crash that took me a long time to debug. All I got when the crash happened was a Bus Error: 10  as soon as the program jumped into a text parsing function I wrote. Bus Error: 10 is a typical error appearing when undefined pointers are dereferenced, but this wasn't what was happening in my case: No code from the function was executed: the crash seemed to happen right at function start I was finally able to figure out the problem was with local array declarations , in particular an array whose size was about 256k. Since this array was declared within the function scope, it ended up being allocated on the stack, and the stack would end up overflowing because of this. Moving this array to the heap solved the problem for me.