×

Discussion Board

Results 1 to 13 of 13
  1. #1
    Registered User
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    153

    Deployment problem with large file?

    Hi,
    i'm facing with a strange problem;
    i've an app that use an sqlite3 file as a database; through .pro directive i copy it with the app during a deployment (.sources = my.db).
    If i create a db with a dimension of 45/50 mb, qtcreator is able to deploy all and run the app on the device;
    if i create a db with a dimension of 80/90 mb, qtcreator start the deployment, after a bit progression of the progressbar, it remains so for a long time (10/15 minutes) without a progression.
    I must close qt creator and reboot the device (because of problem on an open file on the device) and TRK enabling is displayed if i start a new deployemen!

    Is this a bug or a timeout or other?

    Thanks
    Gianni
    Merry Christmas Tombola! available on OVI Store!
    SuperDaddy available on OVI Store!

    QT VirtualKeyboard: http://qt-apps.org/content/show.php/VirtualKeyboard?content=107388
    Crack Generator: http://qt-apps.org/content/show.php/MosaicCrack?content=121832

  2. #2
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Deployment problem with large file?

    You're unclear as to what you mean by "deployment". Are you having trouble building the app, or trouble installing the app onto the phone from Creator? If the latter, have you tried building the app and then installing the sis via Ovi?

  3. #3
    Registered User
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    153

    Re: Deployment problem with large file?

    Quote Originally Posted by danhicksbyron View Post
    You're unclear as to what you mean by "deployment". Are you having trouble building the app, or trouble installing the app onto the phone from Creator? If the latter, have you tried building the app and then installing the sis via Ovi?
    Yes i mean exactly start the app through QTcreator; if i install it manually, via ovi, my sqlite db is empty (this approch, both with 45/50 and 80/90 mb file),
    Because of the creation of empty file as the behaviour of the sqlite API, i think.
    Merry Christmas Tombola! available on OVI Store!
    SuperDaddy available on OVI Store!

    QT VirtualKeyboard: http://qt-apps.org/content/show.php/VirtualKeyboard?content=107388
    Crack Generator: http://qt-apps.org/content/show.php/MosaicCrack?content=121832

  4. #4
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Deployment problem with large file?

    It does not matter where you try to install it through, Ovi or Qt Creator, the size of the package must be the same and therefore the results must be similar. If Qt Creator (or rather its TRK interface) hangs when attempting to install this large file, you may want to report this as a bug. However, you may also want to consider an alternative way to work with your application, sending those 80MB to the device each time you complete a new build is at least a waste of time if not an invite for troubles.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  5. #5
    Registered User
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    153

    Re: Deployment problem with large file?

    Quote Originally Posted by ltomuta View Post
    It does not matter where you try to install it through, Ovi or Qt Creator, the size of the package must be the same and therefore the results must be similar. If Qt Creator (or rather its TRK interface) hangs when attempting to install this large file, you may want to report this as a bug. However, you may also want to consider an alternative way to work with your application, sending those 80MB to the device each time you complete a new build is at least a waste of time if not an invite for troubles.
    Ok i think i report that...my real testing comes with a stripped version (up to 2mb) due to obviously long time; that above is a testing for a complete app (production) that i must try before release it!
    Merry Christmas Tombola! available on OVI Store!
    SuperDaddy available on OVI Store!

    QT VirtualKeyboard: http://qt-apps.org/content/show.php/VirtualKeyboard?content=107388
    Crack Generator: http://qt-apps.org/content/show.php/MosaicCrack?content=121832

  6. #6
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Deployment problem with large file?

    What happens if you install, say, a 10MB database? (And have you verified that there is room on the phone for the file you're installing, keeping in mind that it may be "staged" on a drive different from the one you target for the install?)

  7. #7
    Registered User
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    153

    Re: Deployment problem with large file?

    Quote Originally Posted by danhicksbyron View Post
    What happens if you install, say, a 10MB database? (And have you verified that there is room on the phone for the file you're installing, keeping in mind that it may be "staged" on a drive different from the one you target for the install?)
    Well..i've tested it with a poor version (for normal development) of 2mb and a complete version (not optimized) of 45mb and both work well...i so that the app can be installed everywhere, but i refer to it whitin the app only through a db name (so locally in the box of the app).
    A good solution, i think, is to install the app and after download the db (zip format) over the internet (i've already implemented it in other app).
    Merry Christmas Tombola! available on OVI Store!
    SuperDaddy available on OVI Store!

    QT VirtualKeyboard: http://qt-apps.org/content/show.php/VirtualKeyboard?content=107388
    Crack Generator: http://qt-apps.org/content/show.php/MosaicCrack?content=121832

  8. #8
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Deployment problem with large file?

    What phone are you using for testing and how much free storage space is there on that drive. You should have some 2x the size of the SIS file available for the installation to succeed, especially if the installation is in fact an update, applied to an already large package.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  9. #9
    Registered User
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    153

    Re: Deployment problem with large file?

    Quote Originally Posted by ltomuta View Post
    What phone are you using for testing and how much free storage space is there on that drive. You should have some 2x the size of the SIS file available for the installation to succeed, especially if the installation is in fact an update, applied to an already large package.
    I'm using an N8 and i've up to 178mb (a sis with complete db is about 33mb). Unfortunly QtCreator can deploy only on C:, i suppose.
    Anyway, i'm searching without success the information about DEPLOYMENT directive in .pro (here I can use xxxx.path using a relative path, but i don't remember the syntax).

    Thanks to all
    Gianni
    Merry Christmas Tombola! available on OVI Store!
    SuperDaddy available on OVI Store!

    QT VirtualKeyboard: http://qt-apps.org/content/show.php/VirtualKeyboard?content=107388
    Crack Generator: http://qt-apps.org/content/show.php/MosaicCrack?content=121832

  10. #10
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Deployment problem with large file?

    If you install via Ovi you can install on any drive (though of course testing is more of a problem).

  11. #11
    Registered User
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    153

    Re: Deployment problem with large file?

    I created a download service to get a database via internet.
    I tested it with simulator and all work well; if i query the db a result is found.
    I tested it on device and, even it give me successfully download (same of simulator), when i query the db, nothing is found!!
    Why?
    Merry Christmas Tombola! available on OVI Store!
    SuperDaddy available on OVI Store!

    QT VirtualKeyboard: http://qt-apps.org/content/show.php/VirtualKeyboard?content=107388
    Crack Generator: http://qt-apps.org/content/show.php/MosaicCrack?content=121832

  12. #12
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Deployment problem with large file?

    I'm guessing you're not putting the file where you think you are. If a SQLite file is not found then SQLite will happily create a new, empty one.

    Use QFile to check for the existence of the file before opening. Also, SQLite is an oddball and insists on "\" for file separators. Best thing to do is to find the file with QFile, check exists(), retrieve it's full path (QFileInfo(QFile)::absoluteFilePath()), and then use QDir::toNativeSeparators() to convert the "/" characters to "\". Then you finally set the DB file for SQL to open.

  13. #13
    Registered User
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    153

    Re: Deployment problem with large file?

    Quote Originally Posted by danhicksbyron View Post
    I'm guessing you're not putting the file where you think you are. If a SQLite file is not found then SQLite will happily create a new, empty one.

    Use QFile to check for the existence of the file before opening. Also, SQLite is an oddball and insists on "\" for file separators. Best thing to do is to find the file with QFile, check exists(), retrieve it's full path (QFileInfo(QFile)::absoluteFilePath()), and then use QDir::toNativeSeparators() to convert the "/" characters to "\". Then you finally set the DB file for SQL to open.
    I've already checked if the file exist...but hey, you have right!
    Sincerily i don't know if is a absoluteFilePath or NativeSeparators, but now it works very well!
    Thanks to all for the great support!
    I think the only bug is the transfer of the big file through QtCreator.

    Bye
    Gianni
    Merry Christmas Tombola! available on OVI Store!
    SuperDaddy available on OVI Store!

    QT VirtualKeyboard: http://qt-apps.org/content/show.php/VirtualKeyboard?content=107388
    Crack Generator: http://qt-apps.org/content/show.php/MosaicCrack?content=121832

Similar Threads

  1. Replies: 4
    Last Post: 2010-12-22, 12:38
  2. Problem with large file transfer in S60 5th edition phones
    By supran2811 in forum Mobile Java General
    Replies: 0
    Last Post: 2010-11-12, 06:21
  3. Jar file deployment with eclipse
    By gheese in forum Mobile Java General
    Replies: 1
    Last Post: 2005-05-06, 09:17
  4. Nokia 6610 deployment problem - error: "invalid file"
    By raynilk in forum Mobile Java General
    Replies: 2
    Last Post: 2004-02-22, 23:21
  5. 6200 "File Too Large" OTA Problem
    By cjvilla in forum Mobile Java General
    Replies: 0
    Last Post: 2003-06-21, 17:43

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×