Qt 4.7.1 problems on Symbian^3 emulator
-
[quote]QString::fromUtf8("statusbar")
...
QApplication::UnicodeUTF8[/quote]
Does it work without using unicode?Have you seen this:
http://discussion.forum.nokia.com/forum/showthread.php?214116-QT-4.7.1-for-Symbian-3-demo-applications-crashing-on-emulatorSomeone with the same problem.
http://bugreports.qt.nokia.com/browse/QTBUG-5284
Bug. Last comment, someone with the same stack trace as you. -
Hi,
I think it crashes due to some bug in "fontstore":http://developer.symbian.org/xref/oss/xref/Symbian3/sf/os/textandloc/fontservices/fontstore/ compoment.
My guess is that it crahes when the pointer returned by following method is accessed because it is not valid (see the comment):
@/*
Workaround: fntstore.h has an inlined function 'COpenFont* CBitmapFont::OpenFont()'
that returns a private data member. The header will change between SDKs. But Qt has
to build on any SDK version and run on other versions of Symbian OS.
This function performs the needed pointer arithmetic to get the right COpenFont*
/
COpenFont OpenFontFromBitmapFont(const CBitmapFont* aBitmapFont)
{
const TInt offsetIOpenFont = 92; // '_FOFF(CBitmapFont, iOpenFont)' ..if iOpenFont weren't private
const TUint valueIOpenFont = (TUint)PtrAdd(aBitmapFont, offsetIOpenFont);
return (valueIOpenFont & 1) ?
(COpenFont*)PtrAdd(aBitmapFont, valueIOpenFont & ~1) : // New behavior: iOpenFont is offset
(COpenFont*)valueIOpenFont; // Old behavior: iOpenFont is pointer
}@I have also checked the epocwind.out for some info:
@ 209.370 FontProvider: Category=3, TextPane Height=29; mapped request=26; asked typeface=Series 60 Sans TitleSmBd; given typeface=Series 60 Sans TitleSmBd, actual range=29(a,d,exa,exd=19 7 5 -2)
209.375 FontProvider: Category=3, TextPane Height=28; mapped request=26; asked typeface=Series 60 Sans TitleSmBd; given typeface=Series 60 Sans TitleSmBd, actual range=29(a,d,exa,exd=19 7 5 -2)
209.940 Thread TestHelloWorldS3::TestHelloWorldS3 Panic KERN-EXEC 3@What worries me, that this was reported only by 2 people so far - me and the one on the forum.nokia.com.
Hope someone could solve the issue...
BR
STeN -
Hi,
I have found one more interesting problem:
When installing the Qt 4.7.1 over the S^3^ SDK, only binaries (e.g. .dlls) are rewritten, while Qt header files remains untouched. I have saved immediately after start up the QT_VERSION_STR string to qDebug() and the result is still 4.6.3...
BR
STeN -
Which version of FN Symbian SDK you are using? I've tried both 0.8 and 0.9 and they fail miserably when compiling Qt itself so don't expect to have full support on these yet. Symbian PDK is to my knowledge the only working Symbian^3 SDK out there.
From my experience:
0.8 is binary incompatible with Firmware on N8, works if you have pre-built Qt.
0.9 is missing hal.h so nothing actually compiles. This is actually very odd thing as we had 3 different machines all of them 0.9 installed and in one of the machines (Win7) hal.h is extracted but the other 2 (Win XP) are missing it. So we made tests to see what could be causing it but didn't find anything conclusive. I ran on my machine both custom and full install without getting hal.h.I also posted on the FN thread with my alter ego jakoskin ;)
-
[quote author="stenlik" date="1291554709"]Hi,
When installing the Qt 4.7.1 over the S^3^ SDK, only binaries (e.g. .dlls) are rewritten, while Qt header files remains untouched. I have saved immediately after start up the QT_VERSION_STR string to qDebug() and the result is still 4.6.3...
[/quote]One thing you could try is to delete (or move) the Qt headers from epoc32/include to force the use of headers under Qt/include .
-
Hi,
[quote author="koshui" date="1291574085"][quote author="stenlik" date="1291554709"]Hi,
When installing the Qt 4.7.1 over the S^3^ SDK, only binaries (e.g. .dlls) are rewritten, while Qt header files remains untouched. I have saved immediately after start up the QT_VERSION_STR string to qDebug() and the result is still 4.6.3...
[/quote]One thing you could try is to delete (or move) the Qt headers from epoc32/include to force the use of headers under Qt/include .
[/quote]I will try to delete old header files (hope there are really only under /mw/qt* subdirectory), to force the Carbide.C++ to use the new from 4.7.1 SDK - but still I am afraid that the font problem will not gone...
BR
STeN -
[quote author="stenlik" date="1291610412"]Hi,
I will try to delete old header files (hope there are really only under /mw/qt* subdirectory), to force the Carbide.C++ to use the new from 4.7.1 SDK - but still I am afraid that the font problem will not gone...
[/quote]That is the correct directory.
Can you try copying fonts over from 5.0 SDK ? It wouldn't surprise me at all if the font files are corrupted (or missing). -
According to http://developer.symbian.org/xref/oss/xref/Symbian3/sf/os/textandloc/fontservices/fontstore/src/FNTSTORE.CPP they are in \resource\fonts and in Font&Bitmap Servers SID.
Copying fonts over will most likely have some nice side-effects :)
-
Hi,
I have tried to change header files - this helps in a way, that QT_VERSION_STR is now 4.7.1, but application was still crashing. Then I tried to replace the fonts with those from Qt 4.7.1. SDK, but it has no positive effects. The SDK is simply not ready to be used in Carbide.C++, at least this is my conclusion from this...
If anyone will succeed running 4.7.1 with S^3 SDK on Carbide.C++ please give a note here...
BR
STEN -
Hi koshui,
Now I understand that... Thanks for your support, even I was unsuccessful it gave me some knowledge... Please understand that it was little bit confusing for me, that the the Qt 4.7.1 and S^3^ both are available but they are not compatible... I should read the http://doc.qt.nokia.com/4.7/supported-platforms.html first., now I clearly understand that only S60 5th is tested and supported and older 3rd and never S^3^ not.
Is there any roadmap/plan where the newest Symbian OS will be supported?
Have a nice day and thanks
STeN -
Stenlik, just saw "this":http://labs.qt.nokia.com/2010/12/12/start-with-qt-4-7-for-symbian-today/ lab blog post about running Qt 4.7.1 on Symbian, so give it a shot and let us know