stefanceriu / SCXcodeMiniMap

Sublime Text like Minimap for Xcode
GNU General Public License v3.0
1.03k stars 87 forks source link

Further crashes in XCode 5 #17

Closed fleshgolem closed 10 years ago

fleshgolem commented 10 years ago

Apparently the fix in #16 was not enough, as XCode 5 still crashes quite frequently, but now memory issues seem to be the problem and I really don't know where to start fixing that

What mostly happens is a EXC_BAD_ACCESS in SCXCodeMinimap.m in line 100 when accessing miniMapView.

I have no particular steps to reproduce this problem right now (it seems to appear somewhat randomly) but common sources of problems are

  1. Working with Interface Builder and an open Assistant Editor with a counterpart file. Especially when drawing connections between the two
  2. Refactoring across multiple Documents
  3. Other plugins that change your code (e.g. BBUncrustifyPlugin)
stefanceriu commented 10 years ago

Okay, I'll have a look next week, after I get home. Thanks :)

junosuarez commented 10 years ago

I'm getting lots of crashes too in XCode 5.0 (5A1413) - I don't have time to investigate right now (on a deadline for this project), but figured the annecdotal report might help. Happy to verify any fixes. I'll watch this issue thread for updates.

stefanceriu commented 10 years ago

Hey guys,

I've been debugging this for the past week and, unfortunately, this is the best I could come up with. I wasn't able to test it very thoroughly but it seems to prevent the crashes. Please check on your side as well and let me know how it goes.

Cheers, Stefan