Hi,
For some reason textmate crashes when I try to open a .xcodeproj from the filebrowser. This however only happens within certain context, because when having only a .xcodeproj in a directory, the crash doesn't happen.
Associated crash reports:
https://api.textmate.org/crashes/350853
https://api.textmate.org/crashes/350854
https://api.textmate.org/crashes/350855
Any idea what is going on there?
– Koen
Sent from [Nylas N1](https://link.nylas.com/link/33wd9n5m5l3cdcz4d1oikbwcz /local-f891e35d-6e04/0?redirect=https%3A%2F%2Fnylas.com%2Fn1%3Fref%3Dn1&r=dGV4 dG1hdGVAbGlzdHMubWFjcm9tYXRlcy5jb20=), the extensible, open source mail client.
On 7 Dec 2016, at 21:42, Koen Punt wrote:
Any idea what is going on there?
I can see what code is involved, but the crash is not something we have been able to reproduce (it has been reported a few times before).
I will likely have to rewrite the code because it’s about trying to make the `NSOutlineView` support lazy-loading of items, which it doesn’t seem designed for, and apparently my current solution has this edge-case where it can go into an infinite loop, but as this is all async/delayed code and majority of it is system code, I don’t have a good grasp of what is really happening.
But I will not touch this code until after a 2.0 release (non beta/release-candidate), as it works for most users (only 25 reports for rc.4 about this, 7 of which are yours) — I foresee changing this code needing a bit of trial and error given the nature of the problem (trying to make a system component do something it is not meant to do).
Thanks for the info. Now I'm wondering, is the issue specific to xcodeproj files or can it happen with other files too?
Verstuurd vanaf mijn iPhone
Op 8 dec. 2016 om 07:57 heeft Allan Odgaard mailinglist@textmate.org het volgende geschreven:
On 7 Dec 2016, at 21:42, Koen Punt wrote:
Any idea what is going on there?
I can see what code is involved, but the crash is not something we have been able to reproduce (it has been reported a few times before).
I will likely have to rewrite the code because it’s about trying to make the NSOutlineView support lazy-loading of items, which it doesn’t seem designed for, and apparently my current solution has this edge-case where it can go into an infinite loop, but as this is all async/delayed code and majority of it is system code, I don’t have a good grasp of what is really happening.
But I will not touch this code until after a 2.0 release (non beta/release-candidate), as it works for most users (only 25 reports for rc.4 about this, 7 of which are yours) — I foresee changing this code needing a bit of trial and error given the nature of the problem (trying to make a system component do something it is not meant to do).
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 8 Dec 2016, at 14:49, Koen Punt wrote:
Thanks for the info. Now I'm wondering, is the issue specific to xcodeproj files or can it happen with other files too?
Everyone who has contacted us about it, has mentioned Xcode project files as the source, though the crash log does not directly point to the Xcode data source being responsible, and I wouldn’t think it is directly responsible, as of such, it shouldn’t be able to cause anything special, as it’s a self-contained data source that does not speak directly with the `NSOutlineView`, where the crash (stack overflow) happens.
I could remove the Xcode support, this should cause no issues other than taking away functionality. Don’t know if anyone depend on this.
On 8 Dec 2016, at 21:40, Allan Odgaard wrote:
I could remove the Xcode support, this should cause no issues other than taking away functionality. Don’t know if anyone depend on this.
As a (potential) temporary fix, I made the Xcode datasource support opt-in: https://github.com/textmate/textmate/commit/2c524907d6a36cd3c0f14e52a9b973ed...
I found that a plain installation of a react-native project has the crash happening. Maybe you can reproduce it in this test project: https://github.com/koenpunt/TextMateCrash/
Sent from [Nylas N1](https://nylas.com/n1?ref=n1), the extensible, open source mail client.![](https://link.nylas.com/open/33wd9n5m5l3cdcz4d1oikbwcz/local- fabfe757-e4b5?r=dGV4dG1hdGVAbGlzdHMubWFjcm9tYXRlcy5jb20=)
On Dec 10 2016, at 2:18 pm, Allan Odgaard mailinglist@textmate.org wrote:
On 8 Dec 2016, at 21:40, Allan Odgaard wrote:
I could remove the Xcode support, this should cause no issues other
than taking away functionality. Don’t know if anyone depend on this.
As a (potential) temporary fix, I made the Xcode datasource support
opt-in: https://github.com/textmate/textmate/commit/2c524907d6a36cd3c0f14e52a9b973ed... c1822c
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate