Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Installer Framework - Not enough memory
Forum Updated to NodeBB v4.3 + New Features

Qt Installer Framework - Not enough memory

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Noturnoz
    wrote on 23 Jan 2015, 10:23 last edited by
    #1

    Hello everyone!
    I use Qt Installer Framework to deploy my application on Mac OS X. I have my .app application and additional files that have to be installed. Everything is installed correctly but when it starts installing the .app aplication (or .prefpane folder) it shows that there is Not enough memory and same error when installing the .prefpane folder. I've noticed it only does this when the source "file" is folder (both .app and .prefpane contain another files, they are archives..).

    I use archivegen to create .7z from .app and .prefpane. Both archives are extracted with the installscript.qs. Does anyone know what am I doing wrong? Or it is a bug in the Qt Installer Framework?

    PS: I know for sure that I have enough memory.

    .app:
    @function Component(){
    }

    Component.prototype.createOperationsForArchive = function(archive){
    // component.createOperationsForArchive(archive);
    component.addElevatedOperation("Extract", archive, "/Library/Applications");
    }@

    .app package.xml ([removed] = < Script > </ Script >):
    @<?xml version="1.0" encoding="UTF-8"?>
    <Package>
    <DisplayName>Mac Client</DisplayName>
    <Description>Client for Mac</Description>
    <Version>1.0.0</Version>
    <ReleaseDate>2015-01-23</ReleaseDate>
    <Licenses>
    <icense name="License" file="license.txt" />
    </Licenses>
    <Default>true</Default>
    [removed]installscript.js[removed]
    <ForcedInstallation>true</ForcedInstallation>
    <RequiresAdminRights>true</RequiresAdminRights>
    </Package>@

    .prefpane:
    @function Component(){
    }

    Component.prototype.createOperationsForArchive = function(archive){
    // component.createOperationsForArchive(archive);
    component.addElevatedOperation("Extract", archive, "/Library/PreferencePanes");
    }@

    !http://i.imgur.com/Ek5qEIM.png(Error)!

    Edit:

    Ok, I've noticed that it sometimes does not report Not enough memory but "internal error: E_FAIL" and also sometimes "Permission denied" on some files inside the .app or .prefpane even tough I have 'addElevatedOperation()' everywhere.

    Edit2:

    Another weird thing, it calls Extract twice, once as admin, once as normal user (that could be the "Permission denied" error):

    First:
    [5844] "Extract" as admin: true
    [5844] backup com.<censored>.application operation: Extract
    [5844] - arguments: installer://com.<censored>.application/<censored>Client.app.7z, /Library/Applications
    [5844] Done

    Second:
    [5857] perform com.<censored>.application operation: Extract
    [5857] - arguments: installer://com.<censored>.application/<censored>Client.app.7z, /Library/Applications
    [6153] Warning: Could not delete directory "/Library/Applications/<censored>Client.app/Contents/Resources/de.lproj" (:0, )
    [6155] Done
    [6155] Operation 'Extract' with arguments: 'installer://com.<censored>.application/<censored>Client.app.7z; /Library/Applications' failed: Error while extracting 'installer://com.<censored>.application/<censored>Client.app.7z': Could not open file: /Library/Applications/<censored>Client.app/Contents/Resources/de.lproj/CredentialWindowController.strings (Permission denied)
    [6155] created warning message box installationErrorWithRetry: 'Installer Error', Error during installation process (com.<censored>.application):
    Error while extracting 'installer://com.<censored>.application/<censored>Client.app.7z': Could not open file: /Library/Applications/<censored>Client.app/Contents/Resources/de.lproj/CredentialWindowController.strings (Permission denied)

    1 Reply Last reply
    0

    1/1

    23 Jan 2015, 10:23

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved