formotion icon indicating copy to clipboard operation
formotion copied to clipboard

Adding Multiple sections abruptly crashes the app in simulator

Open Omnipresent opened this issue 12 years ago • 2 comments
trafficstars

When I add multiple sections to a form, the simulator abruptly crashes. However, when I remove one of the sections and end up with only one sections then everything works fine.

I believe this is related to #151

Here is a sample project that recreates the problem: https://github.com/Omnipresent/issue162

I'm interested in finding out how to resolve this or help in troubleshooting this anomaly.

Omnipresent avatar Oct 17 '13 11:10 Omnipresent

I believe this to be a problem with RubyMotion's circular dependency detector, WeakRefs, and iOS6.

My results when compiled on:

  • iOS7 SDK, running on iOS7 sim (rake) - no crashes
  • iOS7 SDK, running on iOS6 sim (rake target=6.1) - crashed
  • iOS7 SDK, running on iOS6 sim, with circular detector disabled (rake target=6.1 ARR_CYCLES_DISABLE=1) - no crashes

Can you confirm that this is the case?

clayallsopp avatar Oct 20 '13 03:10 clayallsopp

In fact, this doesn't seem related to WeakRefs at all - it appears to be some sort of RubyMotion regression.

If you change Formotion to as far back as 1.3.1 (before any WeakRefs were added to Formotion), it will still crash-and-not-crash depending on ARR_CYCLES_DISABLE. However, it continues to work on the iOS7 simulator.

Let me know if you can reproduce this behavior with the different target simulator OSes and then I can submit a ticket to hipbyte

clayallsopp avatar Oct 20 '13 03:10 clayallsopp