Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

something relies on X-display - not sure what #62

Closed
zbenmo opened this issue Jul 27, 2023 · 8 comments
Closed

something relies on X-display - not sure what #62

zbenmo opened this issue Jul 27, 2023 · 8 comments

Comments

@zbenmo
Copy link
Contributor

zbenmo commented Jul 27, 2023

When I start the bulk server, something is not progressing. This was with text. If I have X display available, everything is like a breeze.
Not sure where it is. I'll add more information if I have.
I had a similar issue in the past, this was solved by something like: mpl.use('Agg')

@zbenmo
Copy link
Contributor Author

zbenmo commented Jul 27, 2023

write(1, "\n\33[38;5;2m\342\234\224 About to serve `bu"..., 72
✔ About to serve `bulk` over at http://localhost:5006/.
) = 72
write(1, "\n", 1
)                       = 1
sendto(5, "\0", 1, 0, NULL, 0)          = 1
getpid()                                = 1597
epoll_wait(3, [{EPOLLIN, {u32=4, u64=4}}], 3, 0) = 1
pipe2([11, 12], O_CLOEXEC)              = 0
openat(AT_FDCWD, "/dev/null", O_RDWR|O_CLOEXEC) = 13
fstat(11, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
ioctl(11, TCGETS, 0x7fff7a6b1a30)       = -1 ENOTTY (Inappropriate ioctl for device)
lseek(11, 0, SEEK_CUR)                  = -1 ESPIPE (Illegal seek)
pipe2([14, 15], O_CLOEXEC)              = 0
futex(0x7f96ab723ae0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f96ab723a90, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f96ab723b60, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f96ab723b10, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f96ab723be0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f96ab723b90, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f96ab723c60, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f96ab723c10, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f96ab723ce0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f96ab723c90, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f96ab723d60, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f96ab723d10, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f96ab723de0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f96ab723d90, FUTEX_WAKE_PRIVATE, 1) = 1
munmap(0x7f96a8a6e000, 8392704)         = 0
munmap(0x7f96a626d000, 8392704)         = 0
munmap(0x7f96a3a6c000, 8392704)         = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f96ad318a10) = 1607
close(15)                               = 0
close(13)                               = 0
close(12)                               = 0
read(14, "", 50000)                     = 0
close(14)                               = 0
lseek(11, 0, SEEK_CUR)                  = -1 ESPIPE (Illegal seek)
fstat(11, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
read(11, 0x1f0ad90, 8192)               = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGWINCH {si_signo=SIGWINCH, si_code=SI_KERNEL} ---
--- SIGWINCH {si_signo=SIGWINCH, si_code=SI_KERNEL} --- (To be restarted if SA_RESTART is set)
read(11, 0x1f0ad90, 8192)               = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGWINCH {si_signo=SIGWINCH, si_code=SI_KERNEL} ---
read(11, 0x1f0ad90, 8192)               = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGWINCH {si_signo=SIGWINCH, si_code=SI_KERNEL} ---
read(11, 0x1f0ad90, 8192)               = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGWINCH {si_signo=SIGWINCH, si_code=SI_KERNEL} ---
read(11, 0x1f0ad90, 8192)               = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGWINCH {si_signo=SIGWINCH, si_code=SI_KERNEL} ---
read(11,




@zbenmo
Copy link
Contributor Author

zbenmo commented Jul 27, 2023

above was with strace

@koaning
Copy link
Owner

koaning commented Jul 27, 2023

If I have X display available, everything is like a breeze.

What is an "X display"?

above was with strace

Could you apply markdown such that it renders as code? Makes it easier to read.

@zbenmo
Copy link
Contributor Author

zbenmo commented Jul 27, 2023

Re: X display. I work on a Windows machine, with WSL2 (Ubuntu). Then I need to run XLaunch on Windows before running bulk. Otherwise it will not work. Don't see a real need for X, given that it is a web server. matplotlib may try to use X, but that can be overcome with mpl.use('Agg'). Maybe a plotly issue as I've really just tried bulk with texts.

@koaning
Copy link
Owner

koaning commented Jul 27, 2023

Bulk uses bokeh under the hood, so if there's issues/fixes, I'd recommend checking their repo/community.

@zbenmo
Copy link
Contributor Author

zbenmo commented Jul 27, 2023

Checking with them. Will update.

@koaning
Copy link
Owner

koaning commented Jul 27, 2023

I'll close this issue for now, but if it later turns out that this is a specific issue related to bulk -> feel free to re-open.

@koaning koaning closed this as completed Jul 27, 2023
@zbenmo
Copy link
Contributor Author

zbenmo commented Jul 27, 2023

The problem was that 'bulk' is attempting to open a browser. It may not be a bug but rather a feature. Up to you to decide. Good to know. Maybe nice to have --no-browser. Apologies. BR. Oren.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants