Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: UNKNOWN in Mac OS X #107

Closed
dpalou opened this issue Sep 17, 2014 · 4 comments
Closed

Fatal error: UNKNOWN in Mac OS X #107

dpalou opened this issue Sep 17, 2014 · 4 comments

Comments

@dpalou
Copy link

dpalou commented Sep 17, 2014

I just updated grunt-node-webkit-builder to the latest version and now I'm having a lot of problems to build the binaries. When I use "grunt", I get the following error:

Fatal error: UNKNOWN, open 'Users/.../en.json'

Everytime I use it a different file crashes (in the case above, en.json). I managed to build the binaries just 1 time, and I tried it more than 30 times. With the previous release it worked fine.

I have the ulimit issue solved. I'm using Mac OS X 10.7.5

@steffenmllr
Copy link
Contributor

Can you post your grunt config? Did you only update the builder or also other node_modules ?

@dpalou
Copy link
Author

dpalou commented Sep 17, 2014

The only instruction that I used to update is:

sudo npm install grunt-node-webkit-builder --save-dev

Another difference is that now it is using Node-Webkit 10.5.

This is my Gruntfile.js:

module.exports = function(grunt) {

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        nodewebkit: {
            options: {
                build_dir: './nodewebkitbuilds', 
                mac: true, 
                win: true, 
                linux32: true, 
                linux64: false,
                mac_icns: 'www/img/icon/icon.icns'
            },
            src: ['./package.json', './www/**/*'] 
        }
    });
    grunt.loadNpmTasks('grunt-node-webkit-builder');
    grunt.registerTask('default', ['nodewebkit']);
};

And this is the package.json:

{
    "name": "MyApp",
    "version": "1.0.0",
    "main": "www/index.html",
    "platforms": [
        "win",
        "osx",
        "linux32"
    ],
    "window": {
        "toolbar": true,
        "title": "MyApp",
        "icon": "www/icon.png",
        "frame": true,
        "width": 1280,
        "height": 720,
        "min_width": 960
    },
    "description": "My App",
    "devDependencies": {
        "grunt": "^0.4.5",
        "grunt-node-webkit-builder": "^0.2.3"
    },
    "webkit": {
        "plugin": true
    },
    "dom_storage_quota": 250
}

@dpalou
Copy link
Author

dpalou commented Sep 17, 2014

Also, the error is referencing a file inside my .app (in case of building for Mac OS):

PATH_TO_PROJECT/nodewebkitbuilds/MyApp/osx/MyApp.app/Contents/Resources/app.nw/www/img/files/loading-64.png'

@dpalou
Copy link
Author

dpalou commented Sep 18, 2014

I just updated npm, restarted the computer and now it is working fine. I close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants