twolfson / grunt-fontsmith

**DEPRECATED** Grunt plugin for composing SVGs into multiple fonts, a character mapping, and CSS variables
MIT License
38 stars 3 forks source link

stdout maxBuffer exceeded #7

Closed nfroidure closed 10 years ago

nfroidure commented 10 years ago
xxxxxx@production:~/Bureau/xxxxxx$ grunt dist --verbose --stack
Initializing
Command-line options: --verbose, --stack

Reading "Gruntfile.js" Gruntfile...OK

Registering Gruntfile tasks.

Registering "grunt-fontsmith" local Npm module tasks.
Reading /home/xxxxxx/Bureau/xxxxxx/node_modules/grunt-fontsmith/package.json...OK
Parsing /home/xxxxxx/Bureau/xxxxxx/node_modules/grunt-fontsmith/package.json...OK
Loading "grunt-fontsmith.js" tasks...OK
+ font
Initializing config...OK
Loading "Gruntfile.js" tasks...OK
+ dist

Running tasks: dist

Running "dist" task

Running "font" task

Running "font:all" (font) task
Verifying property font.all exists in config...OK
Files: documents/icons/account.svg, documents/icons/arrow-down.svg, documents/icons/arrow-left.svg, documents/icons/arrow-right.svg, documents/icons/arrow-up.svg, documents/icons/basket.svg, documents/icons/close.svg, documents/icons/minus.svg, documents/icons/plus.svg, documents/icons/search.svg
Fatal error: stdout maxBuffer exceeded.
Error: stdout maxBuffer exceeded.
    at Socket.<anonymous> (child_process.js:678:13)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:736:14)
    at Socket.EventEmitter.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:408:10)
    at emitReadable (_stream_readable.js:404:5)
    at readableAddChunk (_stream_readable.js:165:9)
    at Socket.Readable.push (_stream_readable.js:127:10)
    at Pipe.onread (net.js:526:21)
xxxxxx@production:~/Bureau/xxxxxx$ 

my gruntfile:

module.exports = function(grunt) {

    grunt.loadNpmTasks('grunt-fontsmith');

    grunt.initConfig({
        //clean: ['dist'],

        font: {
          all : {
            options: {
             font: 'iconsfont'
            },
            src: 'documents/icons/*.svg',
            destFonts: 'public/fonts/icons.{svg,woff,eot,ttf}',
            destCss: 'public/css'
          }
        },

        watch: {
            fonts: {
                files: ['documents/icons/*.svg'],
                tasks: ['font']
            }
        }
    });

    grunt.registerTask('dist', [
        //'clean',
        'font'
    ]);
};
twolfson commented 10 years ago

Ah, sounds like our first performance bug. I will take a look at this this weekend.

nfroidure commented 10 years ago

Let me know your mail if you want the whole files involved in this bug

twolfson commented 10 years ago

That would be awesome. My email is todd@twolfson.com

twolfson commented 10 years ago

I have received the sprites and will look into this now.

twolfson commented 10 years ago

Alright, I have successfully reproduced. Looking into finding the source.

twolfson commented 10 years ago

It really sucks that this takes 2 minutes 32 seconds to reproduce each time x_x.

twolfson commented 10 years ago

Ah, it isn't a performance bug at all. The icomoon app was updated and is hosted on a different URL entirely.

twolfson commented 10 years ago

Alright, a patch has gone out in icomoon-phantomjs@0.2.7. If you re-install grunt-fontsmith, it should work.