Question
I'm experiencing a crash in UI Builder with the following simple scenario:
- Using Tizen Studio 1.0.1
- Created a new project: Mobile 2.4 → Native → UI Builder single view
- Opened layout.xml
- Showed properties for view1
- Edited the ID to any value (e.g., "view1x")
- Saved all changes
- Closed and reopened layout.xml → Crash occurs
Error message: "failed to initialize layout editor java.lang.IndexOutOfBoundsException: Index: 0, Size: 0"
Full stack trace is shown in the original question. Has anyone encountered this issue and found a solution?
Answer
Problem Understanding
The UI Builder crashes when attempting to reopen a layout file after modifying a view's ID property. This appears to be a bug in Tizen Studio 1.0.1's UI Builder component, specifically related to view ID modification and subsequent file reopening.
Solution Methods
-
Create New Project:
- As suggested by mangobar, try deleting the current project and creating a new one. This often resolves temporary corruption issues.
-
Workaround for Existing Projects:
- Instead of modifying the ID through the properties panel, try editing the layout.xml file directly in the text editor.
- Make sure to back up your layout file before attempting any modifications.
-
Update Tizen Studio:
- Check for updates to Tizen Studio as newer versions may have fixed this issue.
Additional Tips
- If you've spent significant time on your layout, consider:
- Exporting your current project as a backup
- Creating a new project and manually recreating your layout
- Checking the Tizen Studio release notes for bug fixes related to UI Builder