简体   繁体   中英

Ember-CLI build results in segmentation fault

Using ember-cli, in a fairly new ember project i'm getting a 'segmentation fault when trying to build for the production environment.

Building..[1]    41300 segmentation fault  ember build --environment=production

or

Building..%  

The ember-cli build task has no verbose setting, so I'm kind of at a loss for how to debug this problem.

I did setup a new project, and tried installing the same dependencies my real project is using, and it built just fine.

Short of slowly migrating things into a new project and building intermittently to see if/when if breaks, is there anything I can do to debug this?

I finally found a solution. It turns out that there were some corrupted images and non-image files in the assets/images folder causing this fault.

Many of the conversations I was finding relating to a ember build seg fault were pointing towards SASS compilation, but it turns out that wasn't at all the case.

The method I used to debug was simply to create a new project, and then file by file copy in my existing project, building at every step. This way I was able to rule out everything including the SASS compilation.

Hope this helps someone!

Same here (on linux by chance?) but just deleted three images ember had in the dist folder. Then it built fine.

unnamed.png
passed.png
failed.png

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM