[MeeGo-touch-dev] MTF styling error.
Sergiy.Dubovik at nokia.com
Sergiy.Dubovik at nokia.com
Tue Oct 12 22:33:08 PDT 2010
Here is the answer.
As I said earlier it's related to QFile bug in QT. Somehow the fix didn't make it into official release. Don't know why.
When this problem happen meegotouch can't parse that style so it skips it. As a result you see "meegotouccccccccc" errors.
The limit is about 28kb (this has something to do with buffers so it could be that on your system size can be different), if your style is bigger then that it will not work.
Split the style into pieces or wait for an updated QT.
br,
Sergiy
On Oct 13, 2010, at 5:14 AM, ext Jason Hu wrote:
> On Tue, 2010-10-12 at 21:19 +0800, Gerry LaChac wrote:
>>
>> Jason:
>>
>> I noticed some issues with the parser in one of the latest Meego
>> images. If you launch from the command line, you will see errors
>> like:
>>
>> MStyleSheetParserPrivate: MCSSParser:
>> "/usr/share/themes/base/meegotouch/libmeegotouchcore/style/commonlayouts.css" : 715 : error: "Unknown token: meegotouccccccccccccccccccccccc [ I deleted the boatload of 'c' characters here ]
>> MStyleSheetParserPrivate: MCSSParser:
>> "/usr/share/themes/base/meegotouch/libmeegotouchcore/style/commonlayouts.css" : 715 : error: "Parse attribute failed, ';' or '}' is missing after value or the value is invalid. Multiline attributes are not suported."
>>
>>
>> And there is clearly nothing wrong with that line. I would guess it
>> is some boundary condition on a buffer the parser is using.
>> This also affected my app's stylesheet. I can add one character to my
>> stylesheet and it would fail. I worked around it by putting some
>> whitespace in the form of comments in the stylesheet, the problem
>> either went away or moved. Eventually I found the spot where it
>> seemed to work.
>>
>> I don't know if that is your problem, but you can give that a try.
>>
>> -Gerry
>>
>
> Gerry,
> Thanx for the input. what you have experienced is exactly my problem.
> I also agree that maybe some boundary conditions messed up the buffer of
> the parser, because this doesn't seem to be a problem when style sheet
> is small. I once removed the license disclaimer from my CSS, and it
> works until I added a few extra lines later:( some work around works
> though they don't seem to make any sense at all, e.g. adding/removing
> comments/whitespaces, moving blocks here and there, just totally
> randomly try anything out of despair.
>
> thanx,
> Jason
>
> _______________________________________________
> MeeGo-touch-dev mailing list
> MeeGo-touch-dev at meego.com
> http://lists.meego.com/listinfo/meego-touch-dev
More information about the MeeGo-touch-dev
mailing list