Question
I'm developing my first Tizen application using Tizen Studio. After successfully creating an app with 8 views in the UI Builder (compilation and testing worked fine), I encountered an error when reopening the project the next day.
When I click on layout.xml, I get the following error:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
Index: 0, Size: 0
java.util.ArrayList.rangeCheck(ArrayList.java:653)
java.util.ArrayList.get(ArrayList.java:429)
org.tizen.efluibuilder.storyboard.ui.editor.model.SBPageModel.getPagesWidth(Unknown Source)
[...long stack trace continues...]
Key points:
- The project worked fine initially
- Error occurs when reopening the project
- Creating a new project works, but existing project fails
- Concerned about tool stability
Answer
Problem Understanding
This appears to be a known issue with Tizen Studio's UI Builder, where project files can become corrupted or desynchronized, particularly when working with multiple views.
Solution Methods
-
File Synchronization Fix:
- As suggested by tmihajloski, manually edit the .uproject file to match your layout.xml file
- This often resolves the IndexOutOfBoundsException by ensuring consistency between the project configuration and layout files
-
Project Recreation:
- Create a new project and manually recreate your views
- While time-consuming, this is a reliable workaround when file corruption occurs
-
Bug Reporting:
- Report the issue through Tizen's official bug tracking system
- Include your project files (while removing sensitive information) to help developers reproduce and fix the issue
Additional Tips
- Regularly back up your project files when working with the UI Builder
- Consider using version control to track changes and revert if needed
- Monitor the Tizen developer community for updates on this issue