I had the same crash after adding a custom attribute for my View. Turned out attribute's name conflicted with some system attribute, so I had to add prefix to it