Insomnia: [Bug]Click Preference, then Insomnia show a white page

Created on 24 Apr 2019  ยท  22Comments  ยท  Source: Kong/insomnia

  • Insomnia Version: 6.4.1
  • Operating System: Win7 64

Details


Click Preference, then Insomnia show a white page.
And the only way is close Insomnia and restart it. I can't open Preference.

image

accepted good first issue help wanted needs investigation

Most helpful comment

You saved the day @runofthemill! That's all I needed.

All 22 comments

๐Ÿ‘‹ Thanks for opening your first issue! If you're reporting a ๐Ÿž bug, please make sure
you include steps to reproduce it. If you're requesting a feature ๐ŸŽ, please provide real
use cases that would benefit. ๐Ÿ‘ช

To help make this a smooth process, please be sure you have first read the
contributing guidelines.

Can you check View > Toggle DevTools > Console to see if any errors come up when you do this?

Sent with GitHawk

Can you check View > Toggle DevTools > Console to see if any errors come up when you do this?

Sent with GitHawk

First I open dev tools , then I click Perference, the dev tools was disconnected as below.

I tried to uninstall Insomnia, delete AppData, then reinstall it, but the problem still exists.

image

Having the same issue, but on macOS.

Insomnia 6.4.1.2725
macOS 10.14.4

Screen recording: https://www.dropbox.com/s/6vx8t9jse2w49b6/insomnia-bug.mov?dl=0

Edit: It seems like it's a bug with the General pane specifically, as if I choose Import/Export in the Workspace menu, it opens to the Data pane, which has no render issues. I can switch to any of the other preference panes except General without experiencing the render issue.

That's so strange that DevTools would disconnect when opening preferences.

@317174106 does Help > About work for you?

@runofthemill do you also see the same DevTools disconnect error?

Yep - you can see it disconnecting at the end of the clip I uploaded!

Wow, sorry I didn't even notice your screen recording link (long day ๐Ÿคช)

I've only ever seen the DevTools disconnect when there has been a problem linking the native libcurl module. Can you try running the following command from within the console to see if it triggers the same issue?

require('insomnia-libcurl').Curl.getVersion()

@gschier Help --> About is ok, and the command won't trigger the same issue.

image

Experiencing the same problem with Insomnia 6.4.1.2725 on macOS 10.14.4. DevTools keep disconnecting when the Preferences page flips to white, so I cannot begin to debug the issue.

Okay, one more thing to try:

In View > Toggle DevTools > Console, can you try running the following?

require('font-manager');

And, if that works, take it one step further:

require('font-manager').getAvailableFonts(f => console.log('FONTS', f));

No problem with the libcurl command!

require('font-manager');

works without a problem.

require('font-manager').getAvailableFonts(f => console.log('FONTS', f));

causes a crash:

Screen Shot 2019-04-25 at 6 21 17 PM

Dang, it looks like we're going to have to make the font manager only available when it's supported. I'm not quite sure why it wouldn't work on Mac since it works on my Mac and Mac is a fairly stable platform. Anyway...

Since I can't reproduce it over here, can you look at the module and see if there's any way to conditionally check if it's going to crash without actually crashing it? ie. figure out a way to hide the feature if it's not supported. I assume a simple try/catch would not work in this case

@gschier the second command causes a crash. But I am on win7

Any solution?

As I have a number of custom fonts installed, it seems likely it's the same issue noted here: https://github.com/foliojs/font-manager/issues/20

I'm not versed in TS dev, but as a test I dropped in https://www.npmjs.com/package/font-scanner linked from https://github.com/foliojs/font-manager/issues/20#issuecomment-445905519, created packages/insomnia-app/flow-typed/font-scanner.js with the following content:

// @flow

declare module 'font-scanner' {
  declare module.exports: *;
}

and updated the import in packages/insomnia-app/app/ui/components/settings/general.js. The preferences pane loaded and did not crash, but no fonts showed as available under Interface Font or Text EditorFont - just the option "-- System Default --", and the console log returned null:

Screen_Shot_2019-04-25_at_10_47_31_PM

You saved the day @runofthemill! That's all I needed.

Hi, I still have this issue if I download from https://insomnia.rest/download/ or brew cask install insomnia (mac)

The fix is not released yet

Sent with GitHawk

I understand. Any idea on when it will be?

Out now!

Sent with GitHawk

:)

Den tis 30 apr. 2019 00:00Gregory Schier notifications@github.com skrev:

Out now!

Sent with GitHawk http://githawk.com

โ€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/getinsomnia/insomnia/issues/1453#issuecomment-487759395,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIAA7LRNPGHGTXOJWJ4OO4LPS5VXTANCNFSM4HIADCSA
.

Hi!

I just installed Insomnia on Fedore with Snap and I'm having same problem.

This is the About screen
image

Was this page helpful?
0 / 5 - 0 ratings