question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[OSX v0.14.x] Normal version crashes because of different language file.

See original GitHub issue

The Windows version seems to be fine, but OSX with NW.js v0.14.x (normal, not SDK) is affected.

How to reproduce:

  1. System language has to be something else than english/“en”. In my case it’s german/“de”.
  2. Copy from the SDK version the directory Contents/Resources/de.lproj into the normal version.
  3. Try to start the normal version. The following error will occur:
$ ./nwjs-v0.14.4-osx-x64/nwjs.app/Contents/MacOS/nwjs 
[1014:1299:0506/122412:FATAL:chrome_browser_main_mac.mm(114)] Check failed: !loaded_locale.empty(). Default locale could not be found
0   nwjs Framework                      0x0000000110252973 ChromeMain + 4930083
1   nwjs Framework                      0x000000011026a4b9 ChromeMain + 5027177
2   nwjs Framework                      0x000000010fe27420 ChromeMain + 558288
3   nwjs Framework                      0x00000001131c7fe1 _ZN2v88UnlockerD1Ev + 23875985
4   nwjs Framework                      0x00000001131cdacc _ZN2v88UnlockerD1Ev + 23899260
5   nwjs Framework                      0x00000001131c7575 _ZN2v88UnlockerD1Ev + 23873317
6   nwjs Framework                      0x0000000110209288 ChromeMain + 4629304
7   nwjs Framework                      0x0000000110208736 ChromeMain + 4626406
8   nwjs Framework                      0x000000010fd9ef92 ChromeMain + 66
9   nwjs                                0x000000010fd37d52 main + 530
10  nwjs                                0x000000010fd37b34 nwjs + 2868
11  ???                                 0x0000000000000001 0x0 + 1

Trace/BPT trap: 5
$ ll nwjs-v0.14.4-osx-x64/nwjs.app/Contents/Resources/
total 1528
-rw-------  1 sebadorn  staff  378456  5 Mai 02:02 app.icns
drwxr-xr-x  3 sebadorn  staff     102  6 Mai 12:16 de.lproj
-rw-------  1 sebadorn  staff  378456  5 Mai 02:02 document.icns
drwxr-xr-x  3 sebadorn  staff     102  6 Mai 12:23 en.lproj
drwxr-xr-x  3 sebadorn  staff     102  6 Mai 12:23 io.nwjs.nw.manifest
-rw-------  1 sebadorn  staff   16933  5 Mai 02:02 scripting.sdef

Without de.lproj it will use en.lproj and not cause the error.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Ajrarncommented, May 20, 2016

That’s it ! You must copy the locale.pak file from the nwjs.app/Versions/ChromiumVersion/nwj Framework.framework/Resource/de.lproj

But please, give us the normal versions with all the languages…

0reactions
Christywlcommented, Oct 24, 2017

close until there is more information

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clicking on Language and Text crashes System Preferences
When I click on language and text I get the following crash report: ... Backup all important files then restore OS X using...
Read more >
Mac crash: why it happens and how to fix it - MacPaw
If your Mac crashed, you would probably see the “Your computer was restarted because of a problem” message on your screen.
Read more >
5.4 crashes on Mac 10.14.4 - ELAN - MPI Archives
Hi, ELAN 5.4 is crashing on Mojave 10.14.4. I've pasted the crash report below for reference. Could you please assist? Thank you!
Read more >
News - qBittorrent Official Website
qBittorrent v4.4.4 was released. MACOS: Now a build based on libtorrent 1.2.x (RC_1_2 branch) is offered too. The macOS version is not well ......
Read more >
Chapter 14. Plogue Bidule Revision History
VST3 versions: crash can occur if there is no plugin device present in ... OS X: crash can occur when double-click on a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found