RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! when resuming training

There might be an issue with the device parameters are on: If you need to move a model to GPU via .cuda() , please do so before constructing optimizers for it. Parameters of a model after .cuda() will be different objects with those before the call. In general, you should make sure that optimized parameters … Read more

SSL error unsafe legacy renegotiation disabled

WARNING: When enabling Legacy Unsafe Renegotiation, SSL connections will be vulnerable to the Man-in-the-Middle prefix attack as described in CVE-2009-3555. With the help of https://bugs.launchpad.net/bugs/1963834 and https://bugs.launchpad.net/ubuntu/+source/gnutls28/+bug/1856428 Beware that editing your system’s openssl.conf is not recommended, because you might lose your changes once openssl is updated. Create a custom openssl.cnf file in any directory with … Read more

PythonMagick can’t find my pdf files

I had exactly the same problem couple of days ago. While converting from .gif (oder something else) to .jpg worked really fine, converting from .pdf to .jpg produced exactly the same error. Thats happing because ImageMagick uses Ghostscript for reading/converting PDFs. You can solve the problem by installing Ghostscript (only 32-bit version works). Don’t forget … Read more

Fatal error by Java runtime environment

I got the same problem, but with alot of googling I found the answer! See this page Quote from the link: # An unexpected error has been detected by Java Runtime Environment: # # Internal Error (classFileParser.cpp:2924), pid=5364, tid=6644 # Error: ShouldNotReachHere That’s because we are using Android’s JUnit stub implementation. Go to Run -> … Read more

cannot create item with duplicate context menu id in extension

In Chrome, you should create the context menu just once after install/update. Use onInstalled event: chrome.runtime.onInstalled.addListener(() => { chrome.contextMenus.create({ id: “zm_mark_down_preview_beta”, title: ‘preview and edit’, contexts: [“editable”] }); }); Alternatively, you can simply suppress the error by accessing lastError in the callback: chrome.contextMenus.create({ id: “zm_mark_down_preview_beta”, title: ‘preview and edit’, contexts: [“editable”] }, () => chrome.runtime.lastError);