I don't know what the issue is.
I tried installing the libraries you use, and removing the Mac-specific stuff to get your app to compile on Linux. It compiles, but fails to run when I try to load the data file with the error shown, so your form displaying data in a grid never shows for me.
Perhaps it is a Mac-specific issue anyway, which I cannot help you with.
My suggestion would be not to have the ribbon form as your main form, but to incorporate a ribbon into the grid form, and keep that as the main form. That at least would avoid issues to do with accessing a grid on a form that is not the active form (if that is the source of the problem, which of course it may not be).