We have referred the steps provided in the following link to build the r studio source code
click here
We have build the source code using QT Creator, while running the r studio project we got the
Output like below screen shot. How to get the entire output
And also we have face some error while running the projects. Please find the error information below
Project Name: consoleio
Starting C:\rstudio-master\src\qtcreator-build\session\consoleio\consoleio.exe...
Error: Not enough arguments
Usage: consoleio.exe <program> [program-arguments]
C:\rstudio-master\src\qtcreator-build\session\consoleio\consoleio.exe exited with code 1
Project Name :diagnostic
Starting C:\rstudio-master\src\qtcreator-build\diagnostics\diagnostics.exe...
Log file: rdesktop.log
--------------------------------------------------
04 Aug 2014 08:29:43 [rdesktop] ERROR system error 2 (The system cannot find the file specified); OCCURRED AT: virtual void core::http::NamedPipeAsyncClient::connectAndWriteRequest() C:\Users\Administrator\rstudio\src\cpp\core\include/core/http/NamedPipeAsyncClient.hpp:83; LOGGED FROM: void desktop::NetworkReply::onError(const core::Error&) C:\Users\Administrator\rstudio\src\cpp\desktop\DesktopNetworkReply.cpp:279
07 Aug 2014 11:21:10 [rdesktop] ERROR system error 231 (All pipe instances are busy); OCCURRED AT: virtual void core::http::NamedPipeAsyncClient::connectAndWriteRequest() C:\Users\Administrator\rstudio\src\cpp\core\include/core/http/NamedPipeAsyncClient.hpp:83; LOGGED FROM: void desktop::NetworkReply::onError(const core::Error&) C:\Users\Administrator\rstudio\src\cpp\desktop\DesktopNetworkReply.cpp:279
07 Aug 2014 11:21:11 [rdesktop] ERROR system error 231 (All pipe instances are busy); OCCURRED AT: virtual void core::http::NamedPipeAsyncClient::connectAndWriteRequest() C:\Users\Administrator\rstudio\src\cpp\core\include/core/http/NamedPipeAsyncClient.hpp:83; LOGGED FROM: void desktop::NetworkReply::onError(const core::Error&) C:\Users\Administrator\rstudio\src\cpp\desktop\DesktopNetworkReply.cpp:279…………..
ProjectName: rsession
ProjectName :urlopener
Starting C:\rstudio-master\src\qtcreator-build\desktop\urlopener\urlopener.exe...
SHIMVIEW: ShimInfo(Complete)
Error: Not enough arguments
C:\rstudio-master\src\qtcreator-build\desktop\urlopener\urlopener.exe exited with code 1
How to resolve this error and debug the r studio source in QT creator
It looks like you're trying to run against the 64 bit version of R. Here's how to switch to 32 bit:
Open a new command prompt in your qtcreator-build directory
Run desktop\rstudio.exe
Immediately after pressing Enter, hold down Ctrl (or just use Ctrl+Enter to run the command), and keep it held down while RStudio launches
When the "Choose R Version" dialog pops up, select a 32 bit version of R.
See this page for more details (scroll to the bottom for Windows-specific build help).
Related
I am able to run a number of GUI applications successfully on windows subsystem for linux (WSL), Ubuntu 14.04.4 LTS, using X-forwarding (via MobaXterm).
I recently tried to run an application that uses OpenGL. Although the GUI opens, there are a number of errors and some aspects of the GUI don't work properly. The errors are:
QT error: 1
QT error: <PyQt5.QtCore.QMessageLogContext object at 0x7f88e21d9ba8>
QT error: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user'
libGL error: failed to load driver: swrast
I can get rid of the swrast error by setting export LIBGL_ALWAYS_INDIRECT=1 but the other errors remain:
QT error: 1
QT error: <PyQt5.QtCore.QMessageLogContext object at 0x7fed3689e828>
QT error: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user'
A typical error when attempting to use part of the GUI is:
WARNING: QT error: 1 (Gui.qtMessageHandler:51)
WARNING: QT error: <PyQt5.QtCore.QMessageLogContext object at 0x7f9b35e7b6d8> (Gui.qtMessageHandler:51)
WARNING: QT error: QOpenGLWidget: Failed to make context current (Gui.qtMessageHandler:51)
I can run glxgears, but I realise this only checks a fraction of OpenGLs functions. If I run glmark2 I get the following:
glmark2
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
Error: Glmark2 needs OpenGL(ES) version >= 2.0 to run (but version string is: '1.4 (4.0.0 - Build 10.18.10.4358)')!
Error: main: Could not initialize canvas
If I run find /usr -iname "*libGL.so*" -exec ls -l -- {} + suggested on this link https://askubuntu.com/questions/541343/problems-with-libgl-fbconfigs-swrast-through-each-update I get the following output but I'm not sure if this indicates an error or not?
lrwxrwxrwx 1 root root 14 Jan 12 2016 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 -> libGL.so.1.2.0
-rw-r--r-- 1 root root 413968 Jan 12 2016 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0
Running glxinfo seems to indicate the on-chip graphics card is used (there is a separate AMD graphics card but I don't think it's necessary to use that).
glxinfo | grep render
direct rendering: No (LIBGL_ALWAYS_INDIRECT set)
GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
OpenGL renderer string: Intel(R) HD Graphics 4000
How can I successfully run OpenGL applications via WSL?
I have a problem with RStudio. My environment is the following: We work on win 7 personal computers and have a network drive where most software is on installed. And we have administrator rights.
The newest version of R is installed and works fine after I adjust the workspace and the library path to H:\ instead of \networkdrive\code\codename. (I had a problem with installing some packages).
There were no problems with installing Rstudio. However for the first time launched it takes some time to start and it doens't show the script editor. When I try to open a (new) script it freezes and after a while it says the Rstudio R session take to long to respond. The next time that I want to start Rstudio it gives me an empty Rstudio.
The logs (at the end of the pos give a clear description of what the problem can be . It tries three times to start and Rsession from Rstudio but it searches after the wrong path. For example my part of the company network drive is //company/code/hm0226 but Rstudio changes this everytime it searches for Rsession. Ofcourse it cannot find it.
Like in the library path i want to change it to H:\path\Rsession.exe but I don't know how. Could someone tell me how of knows a kind of solution for this problem? Or does it has to do with the firewall although we disabled simantec and tried but to no resolve?
Nov 2017 09:15:51 [rsession-home] ERROR system error 67 (The network name cannot be found) [path=//drive/code/hm1049]; OCCURRED AT: bool rstudio::core::FilePath::exists() const C:\Users\Administrator\rstudio\src\cpp\core\FilePath.cpp:325; LOGGED FROM: bool rstudio::core::FilePath::exists() const C:\Users\Administrator\rstudio\src\cpp\core\FilePath.cpp:325
23
Nov 2017 09:16:23 [rsession-home] ERROR system error 67 (The network name cannot be found) [path=//drive/code/hm1165]; OCCURRED AT: bool rstudio::core::FilePath::exists() const C:\Users\Administrator\rstudio\src\cpp\core\FilePath.cpp:325; LOGGED FROM: bool rstudio::core::FilePath::exists() const C:\Users\Administrator\rstudio\src\cpp\core\FilePath.cpp:325
23
Nov 2017 09:16:23 [rsession-home] ERROR system error 67 (The network name cannot be found) [path=//drive/code/hm1166]; OCCURRED AT: bool rstudio::core::FilePath::exists() const C:\Users\Administrator\rstudio\src\cpp\core\FilePath.cpp:325; LOGGED FROM: bool rstudio::core::FilePath::exists() const C:\Users\Administrator\rstudio\src\cpp\core\FilePath.cpp:325
23
Nov 2017 09:17:12 [rsession-home] WARNING Abort requested; LOGGED FROM: bool rstudio::session::connection::checkForAbort(rstudio_boost::shared_ptr<rstudio::session::HttpConnection>, rstudio_boost::function<void()>) C:\Users\Administrator\rstudio\src\cpp\session\http\SessionHttpConnectionUtils.cpp:137
Nov 2017 09:17:23 [rdesktop] ERROR system error 2 (The system cannot find the file specified); OCCURRED AT: virtual void rstudio::core::http::NamedPipeAsyncClient::connectAndWriteRequest() C:/Users/Administrator/rstudio/src/cpp/core/include/core/http/NamedPipeAsyncClient.hpp:84; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) C:\Users\Administrator\rstudio\src\cpp\desktop\DesktopNetworkReply.cpp:288
The support of Rstudio contacted me and gave a link to download a preview release of [rstudio version v1.1.392][1]. It fixed the issue with the changing path of network drive.
edit: solved. I was not using the proper version of
cudnn. After downloading and copying over cuDNN v5.1 Library for Windows 10, everything works fine so far. I should have followed tensorflow windows guidelines more
closely.
I just spent some time to set up a windows system to run
r-tensorflow with keras and tensorflow as a backend.
I followed these blog instructions, and I am able to get the hello world example to work. However, when I continue to some R keras examples
, several will just crash and exit RGui during running the training phase,
e.g. mnist_cnn fails at the training model block.
# train and evaluate
model %>% fit(
x_train, y_train,
batch_size = batch_size,
epochs = epochs,
verbose = 1,
validation_data = list(x_test, y_test)
)
A Visual Studio JIT popup shows "An unhandled win32 exception occured in Rgui.exe[10456]." And VS editor shows, "Unhandled exception at 0x00007FFFEA2734BE (ucrtbase.dll) in Rgui.exe: Fatal program exit requested."
There is very little load on CPU and or GPU during runtime
(less than 30%). Any ideas on how to further debug are appreciated.
Hardware/Software/Setup:
windows 10 Pro 64 bit OS x64 cpu
intel i7-7700 #3.60GHz
64G ram
R 64 bit 3.4.1
Anaconda 3/Python 3.5.4
Nvidia 1060 6G
CUDA 8.0 V8.0.60
Visual Studio 2015 community edition
using
library(tensorflow)
use_condaenv("r-tensorflow")
library(keras)
I also just ran in Rstudio w/ rdesktop log diagnostics on the file and got the following log after crash (I see it cannot find file, but not certain what file).
20 Aug 2017 01:29:32 [rdesktop] ERROR system error 2 (The system cannot find the file specified);
OCCURRED AT: virtual void rstudio::core::http::NamedPipeAsyncClient::connectAndWriteRequest() C:/Users/Administrator/rstudio/src/cpp/core/include/core/http/NamedPipeAsyncClient.hpp:84;
LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) C:\Users\Administrator\rstudio\src\cpp\desktop\DesktopNetworkReply.cpp:288
20 Aug 2017 01:29:42 [rdesktop] ERROR system error 2 (The system cannot find the file specified);
OCCURRED AT: virtual void rstudio::core::http::NamedPipeAsyncClient::connectAndWriteRequest() C:/Users/Administrator/rstudio/src/cpp/core/include/core/http/NamedPipeAsyncClient.hpp:84;
LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) C:\Users\Administrator\rstudio\src\cpp\desktop\DesktopNetworkReply.cpp:288
edit: stepping through several more exampes, several seem to work fine -- it could just be specific to the particular code and my setup. I don't know enough right now to troubleshoot the code ideosyncracies. Those that crash also seem to do so at the model fitting stage. I'll update a list on crash/no-crash as I test. pass = no-crash, fail = crash and exit
mnist_hierarchical_rnn # pass
mnist_transfer_cnn # fail
variational_autoencoder_deconv # fail
stateful_lstm # pass
variational_autoencoder # pass
reuters_mlp # pass
mnist_mlp # pass
mnist_irnn # pass
mnist_cnn # fail
mnist_antirectifier # fail
I am having problems opening RStudio, it worked fine before I got my mouse pad reconfigured. Here goes... When I open the program, it loads but appears blank. The menu tabs appear but do not populate when clicked. I've read a few answers to this one of which involved deleting the 'RStudio-Desktop' within the local files but did not solve the issue. I managed to run the RStudio diagnostic and below is the error message. OS is Windows 7.
I would be grateful if anyone can provide some insight regarding this.
Attempting to launch R session...
R_HOME=C:\PROGRA~1\R\R-33~1.1
PATH=C:\Program Files\R\R-3.3.1\bin\x64;C:\WINDOWS\Orant\product\11.2.0\client
_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\Syste>m
32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C
:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x64;C:\Program Files\Intel\WiFi\b
in\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\M
icrosoft Application Virtualization Client;C:\Program Files (x86)\QuickTime\QTSy
stem\
R session launched, attempting to connect on port 44157...
Connected to R session, attempting to initialize...
13 Oct 2016 16:04:22 [rsession-B859XXXX] ERROR system error 5 (Access is denied)
[path=//mshsrmsapppXXXX/B859XXXX$]; OCCURRED AT: rstudio::core::Error rstudio::
core::FilePath::makeCurrentPath(bool) const C:\Users\Administrator\rstudio\src\c
pp\core\FilePath.cpp:978; LOGGED FROM: int main(int, char* const*) C:\Users\Admi
nistrator\rstudio\src\cpp\session\SessionMain.cpp:3202
QApplication::qAppName: Please instantiate the QApplication object first
C:\Program Files\RStudio>
Thanks,
Mits
Error 5 would suggest that the application is being written to those directories which does not have write privileges.
Make sure those folders have write privileges.
You can also try running RStudio application as Administrator.
To do so, Click on Start -> RStudio ( right click) -> Run as administrator.
I had similar problems installing R and RStudio on Windows 8.1 in C:\Program Files. From Vista, Windows places multiple restrictions on systems folders such as %windir% and %ProgramFiles%.
Uninstall and re-install in a folder where you are not restricted, such as C:\Apps or similar. You should hopefully have no further issues.
My disk ran out of space a while ago and the rstudio-server running on my machine gave me an error about that. I have cleaned up space but the error keep showing up:
05 Jan 2015 16:14:19 [rsession-user] ERROR system error 28 (No space left on device)
[path=/home/user/rstudio-project]; OCCURRED AT: core::Error
core::system::file_monitor::<unnamed>::addWatch(const core::FileInfo&, const
core::FilePath&, bool, int, core::system::file_monitor::<unnamed>::Watches*)
/home/ubuntu/rstudio/src/cpp/core/system/file_monitor/LinuxFileMonitor.cpp:225; LOGGED
FROM: core::Error session::modules::files::FilesListingMonitor::start(const
core::FilePath&, core::json::Array*)
/home/ubuntu/rstudio/src/cpp/session/modules/SessionFilesListingMonitor.cpp:66
The error shows up on the console every time I click a folder on the file pane. I have tried to restart the server but not helpful. I just tried to update to the most recent rstudio-server (0.98.1091), but it still happens. Any help is appreciated!
I am running ubuntu 14.04 64bit, by the way.