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.

Title in figure crashes visdom rendering

See original GitHub issue

Bug Description When using plotlyplot function to push a plotly figure (Because I needed subplots), the rendering crash if I set a title in the figure (by using fig[‘layout’].update function).

Reproduction Steps

  1. Create a subplot using plotly (fig = tools.make_subplots(...))
  2. Fill the fig with traces by using fig.append_trace function
  3. Update the fig layout by using fig['layout'].update(title='whatever')
  4. Upload the figure on visdom server vis.plotlyplot(fig)
  5. The visdom web rendering crashed (blue screen) after the upload

Expected behavior The plot should be visible in visdom web interface.

Client logs: In the console of the browser, I got the javascript error n.title.match is not a function that make the page go plain blue.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
JackUrbcommented, Feb 4, 2019

Hi all - sorry I’ve been pretty swamped with another project and unable to investigate a fix for this just yet. My first look surfaced this line as the likely source of the problem: https://github.com/facebookresearch/visdom/blob/b71063fdac0f70415abe3fefefe86c7d529d1495/js/main.js#L596 Logging what is in the title attribute at/before that moment should surface what is causing the break, but I haven’t gotten to try it yet.

Some more context from my first pass: https://github.com/facebookresearch/visdom/blob/b71063fdac0f70415abe3fefefe86c7d529d1495/py/visdom/server.py#L438 This would seem to suggest that title is ultimately stored in opts rather than layout. As plotlyplot doesn’t allow populating the options manually, they are handled here: https://github.com/facebookresearch/visdom/blob/b71063fdac0f70415abe3fefefe86c7d529d1495/py/visdom/__init__.py#L872 For some reason I suppose the title isn’t a regular string.

1reaction
pringshiacommented, Feb 12, 2019

@JackUrb I can take a look at this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Title in figure crashes visdom rendering · Issue #557 - GitHub
When using plotlyplot function to push a plotly figure (Because I needed subplots), the rendering crash if I set a title in the...
Read more >
Premier pro so slow in rendering titles and keeps
Can anyone help - i cant use it, it is so slow and then crashes what can I do - 10490946.
Read more >
Titler+ crashes MC 2022.4 and can't restart and other issues
If titles are stacked, Crash. If titles are rendered, I may be able to adjust two or three of them before it seems...
Read more >
Media Upload In Progress Reddit
Media Upload In Progress RedditIn this programming lesson you can learn to use HTML5 + JavaScript + PHP to render an elegant file...
Read more >
Browsing Student Prize Papers by Title
Browsing Student Prize Papers by Title ... Initially, the crash was reported as just another tragic ... Render Less Unto Caesar?:
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