I'm using oraclize to fetch some data from the outside world. Oraclize calls the
__callback method of my smart contract. For this call oraclize have to pay gas and there is a function to set the gas limit for this call.
My problem is now: If I set the gas limit to 150000 the transaction will fail with the message
VM Exception while processing transaction: out of gas. If I put the gas limit to 300,000 the transaction succeeds but it only uses 90,000 gas. The gas limit is shown correctly in the transaction logs.