Gmod Crashing in-game

when i played Gmod, sometimes it freezes, and then it stay for 1 minute and then crashed
i don’t know whats the cause, anyone can fix this?

im using a Macbook Pro with 4mb RAM
Maverick

4mb of ram or 4gb?