nativefier icon indicating copy to clipboard operation
nativefier copied to clipboard

Build remains stalled indefinitely when failing to infer icon

Open bergatron opened this issue 9 years ago • 6 comments

Description

I'm attempting to create a native wrapper for the target URL that screenshots generated by the Vysor Android tool get mapped to.

Steps to Reproduce Issue

run nativefier --name "Android Screenshots" "http://127.0.0.1:61099/device/10.0.1.74:5555/screenshot.jpg"

Process stalls at inferring/20%: nativefier stalled

Specifications

  • Version of Nativefier (run $ nativefier --version): v7.2.0
  • Version of Node.js (run $ node --version): v7.9.0
  • OS: Mac OS 10.12.4

bergatron avatar Apr 28 '17 18:04 bergatron

@bergatron thanks for the feedback! Two things:

  1. It's going to be tough for us to reproduce the issue give this is an internal development URL. Can you share here the result of curl -i "http://127.0.0.1:61099/device/10.0.1.74:5555/screenshot.jpg"
  2. Inferring of icon may be the culprit. In the meantime, can you manually pass it with the --icon flag? nativefier --name "AndroidScreenshots" --icon /path/to/downloaded-icon.png "http://127.0.0.1:61099/device/10.0.1.74:5555/screenshot.jpg"

ronjouch avatar Apr 28 '17 18:04 ronjouch

Hey @ronjouch! Here's the curl output. curl.txt

Good thinking - the process completed when I manually referenced the icon! Only glitch, the icon didn't get properly applied to the app (it's instead using a generic Mac OS app icon), but I assume that's a different issue with my image format.

bergatron avatar Apr 28 '17 21:04 bergatron

@bergatron good to know my workaround, well, works around 🎺.

Regarding the icon not being applied, yeah we have a few like-minded open bugs: https://github.com/jiahaog/nativefier/issues/321 https://github.com/jiahaog/nativefier/issues/239 https://github.com/jiahaog/nativefier/issues/351 , and I'm not sure yet how duplicate/interleaved these issues are, and they're not all reproducible. So, any feedback / intuition / additional information welcome. Renaming and leaving the bug open.


Note to self or whoever works on this: add a timeout?

ronjouch avatar Apr 28 '17 21:04 ronjouch

@bergatron It probably should be more obvious in the documentation, but could you try to run the same command with the --verbose flag again? Sorry about that ><

@ronjouch Yeah, the current progress bar is kinda buggy when there are errors, I'll look into it

jiahaog avatar Apr 29 '17 14:04 jiahaog

This may be addressed by either #583 or #585.

bacongravy avatar Apr 22 '18 04:04 bacongravy

Merged #583 thanks to @bacongravy . Closing, feel free to reopen if the problem persists.

ronjouch avatar Apr 22 '18 20:04 ronjouch