最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - What does this warning mean? It happens every time I restart the node process - Stack Overflow

programmeradmin3浏览0评论

The warning:

(process:3380): GLib-GIO-WARNING **: 12:47:10.778: Unexpectedly, UWP app `HaukeGtze.NotepadEditor_1.795.1.0_x64__6bk20wvc8rfx2' (AUMId `HaukeGtze.NotepadEditor_6bk20wvc8rfx2!notepad') supports 182 extensions but has no verbs

I think the part before the word 'Unexpectedly' is the time, but what does the rest mean?

The last thing I was doing before this started was installing canvas with npm install canvas --save.

So is there a way for me to stop this?

I also noticed it says NotepadEditor there but what does that have to do with anything? It doesn't crash the process, and doesn't seem to affect anything, but it's annoying.
EDIT : it was caused by require('canvas') rather than installing it. So how can I require it without getting the warning?

The warning:

(process:3380): GLib-GIO-WARNING **: 12:47:10.778: Unexpectedly, UWP app `HaukeGtze.NotepadEditor_1.795.1.0_x64__6bk20wvc8rfx2' (AUMId `HaukeGtze.NotepadEditor_6bk20wvc8rfx2!notepad') supports 182 extensions but has no verbs

I think the part before the word 'Unexpectedly' is the time, but what does the rest mean?

The last thing I was doing before this started was installing canvas with npm install canvas --save.

So is there a way for me to stop this?

I also noticed it says NotepadEditor there but what does that have to do with anything? It doesn't crash the process, and doesn't seem to affect anything, but it's annoying.
EDIT : it was caused by require('canvas') rather than installing it. So how can I require it without getting the warning?

Share Improve this question edited May 21, 2021 at 3:14 MrMythical asked May 19, 2021 at 16:55 MrMythicalMrMythical 9,0413 gold badges21 silver badges48 bronze badges 2
  • 1 Not sure what it means, but here is where it is ing from: github./frida/glib/blob/master/gio/gwin32appinfo.c#L3477 – niry Commented May 21, 2021 at 3:24
  • 1 I feel it's because a Linux native module is being run on windows. Not sure. – Visakh Vijayan Commented May 26, 2021 at 15:49
Add a ment  | 

2 Answers 2

Reset to default 8 +50

I encountered similar problem but with "Microsoft.Print3D" and "Microsoft.DesktopAppInstaller" instead.

The cause:

IDK xD. It does say in the https://github./frida/glib/blob/master/gio/gwin32appinfo.c#L3477 niry posted before, that:

...for 100% correct handling we (GLib and GIO) need to remember which extensions (handlers) support which verbs, and each handler gets its own copy of the verb object, since our design is handler-centric, not verb-centric. The app also gets a list of verbs, but without handlers it would have no idea which verbs can be used with which extensions.

As of why it has no verbs, I suspect it has something to do with registers and installation due to the solution I provided below.

My Solution: Reinstalling the problematic app

Before you begin, this only fixed my problem with Print3D and made the problem with DesktopAppInstaller worse; it now says "Failed to open manifest..." and I had to reinstall it, which also removes the problem with canvas.

  1. Run Powershell with Administrator privilege
  2. Get-AppXPackage "HaukeGtze.NotepadEditor" -allusers
  3. If it exists, jump to number 4.

or

  1. Get-AppXPackage -allusers
  2. Find the problematic one (HaukeGtze.NotepadEditor) and note the NAME (not the package full name).
  3. Get-AppXPackage [name here] -allusers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

I had the same problem when using Python weasyprint package. It was plaining about Windows PDF X app. GLib-GIO-WARNING **: 11:31:57.620: Unexpectedly, UWP app `6760NGPDFLab.PDFX_1.3.13.0_x64__sbe4t8mqwq93a'. I simply uninstalled the app and the problem went away.

发布评论

评论列表(0)

  1. 暂无评论