2. Increase the RAM size
ERROR: Missing initial data partition file virtual machine runtime error solution
2. Increase the RAM size
Question:
VM communication interface socket family: failed
Determining IP information for eth0... failed; no link present. Check cable?
Solutions:
/usr/bin/vmware-config-tools.pl -d
, close the image, close the virtual machine, and restart the computer. Problem 1.
When Git clone occurred, the following problems occurred:
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
2. Steps to solve the problem:
git config --add core.compression -1
3. New problems
The terminal executes the previous sentence and then continues to pull the code. The problem appears as follows:
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
4. Problem-solving steps
This error may be caused by insufficient git memory. Modify the configuration to continue terminal processing:
[core]
packedGitLimit = 512m
packedGitWindowSize = 512m
[pack]
deltaCacheSize = 2047m
packSizeLimit = 2047m
windowMemory = 2047m
The statements in the above modified terminal are similar to those of eg:
git config --global core.com compression 0
After the above steps of processing, you can pull down the code!
Reference:
Technology blog: https://stackoverflow.com/questions/21277806/fatal-early-eof-fatal-index-pack-failed technology blog: https://vnzmi.com/2017/01/08/git-early-eof-index-pack-failed/ technology blog: https://blog.csdn.net/qq_32791023/article/details/83622283?depth_1-utm_source=distribute.pc_relevant.none-task& utm_source=distribute.pc_relevant.none-task
The above content is only on behalf of the individual summary if there are mistakes, please also criticize correct, welcome to study together!
as shown in the figure:
:
solution 1 : the service is started under the root account, turn off the service, kill the process, and then log in with a normal user to restart the service!
solution 2 : find run-debug Configurations -remote Java Application find the corresponding project under connect’s tag set port to 8000 (which means invalid in my case)
If
still doesn’t work, delete all WebViewHistory under Remote Java Application. Instead of creating a new one, Debug it and Eclipse will automatically create a default WebViewHistory for you. Do not debug directly! Close test) p>
solution 3 : it is possible that there is a firewall problem (close the firewall, this problem still exists!
solution 4 : because it was possible before, so puzzled, Google for a long time, can find the problem is generally because the other side did not open the remote debugging port, so naturally not connected, but I here obviously is not the case. After a long period of confusion, it occurred to me that I might be affected by the Eclipse proxy Settings. It seems unlikely, though, because my understanding is that the agent is only for Eclipse itself, not for applications launched through Eclipse.
solution 5 : this is because Tomcat has not started yet, or it is not started in Debug mode. (of course I don’t have this problem here)
solution 6 : other people in the same group own the connection (only one connection can be used for remote debugging), click the disconnect button. (I still don’t have that problem here)
: it’s important to run the application and connect to it, otherwise Eclipse will throw an exception “Failed to connect to remote vm.connection 40”. In the JVM DEBUG parameter, there is a parameter called “suspend” that takes two values, “y” or “n”, and if you want to DEBUG from the beginning, set it to “suspend=y” so that Eclipse can connect to Java applications remotely.
if you want to run the project first and then connect to Eclipse, you can set the parameter to “suspend=n” so that the Java application will be up and running, after which Eclipse will start the remote connection. Tip 2: use the startup script to enter JVM debugging parameters, and use the variable isDebugEnabled or REMOTE_DEBUG_PORT in the script, which you can export when you want to remotely debug Java applications. The entire operation is very simple, requiring only a one-time installation.
prompt 3: if you get an error message, “Failed to connect to remote vm.connection union” or “Connection union: connect”, there are two possible reasons for this. The first is that your Java project is not running on the remote host. The second is that there are errors in the input port and host name. After successful verification, you can fill in the complete host name. Tip 4: you also want to make sure that local Eclipse and remote Eclipse run the same code base. Code can be compiled using the debug option “-g”, and Eclipse can easily collect debugging information, such as debugging information for local variables. By default, with the debug option “-g”, the class file may have larger debug information.
.
solution 8 : find the tomcat/bin/catalina.bat file, edit, and add the downstream code
before CATALINA_OPTS
set CATALINA_OPTS=-server – xdebug-xnoager-djava.com piler= none-xrunjdwp :transport=dt_socket,server=y,suspend=n,address=50001 [port number used for debugging]
save and restart Tomcat (this one doesn’t solve my problem either)
solution 9 : the most likely reason is that the IP address in Eclipse is misconfigured (for this reason, copying the IP address is wrong, so am I…)
solution 10 :
estimated that the network is unstable, but finally the debugging was successful. this… strong>) p>
solution 11 : firewall issues. Turn off the web firewall in 360 and you’re good to go. I reload every time. This time the reason has finally been found.
.
conclusion : in the future, you must look at the most basic configuration, and then step by step to determine whether your conclusion is correct. In fact, IP address error, this problem should be the first reason to rule out, but I for some reason, did not check, so that I wasted a day’s time!
failed to get JNI 1.2 environment, JVM ->
ERROR: JDWP is Unable to get JNI 1.2 environment, JVM -> The GetEnv () return code = – 2
the JDWP exit error AGENT_ERROR_NO_JNI_ENV (183) : [… /… /…/SRC/share/back/util. C: 820]
to find the reason for the error. Found a problem with redirecting the output.
is the following is the original network data
install jdk1.6, ha ha ~ I also met this problem. This is something I found on the Internet before. I hope it will be helpful to you.
ERROR: JDWP incapable to get JNI 1.2 environment, JVM -> The GetEnv () return code = – 2
the JDWP exit error AGENT_ERROR_NO_JNI_ENV (183) : [… /… /…/SRC/share/back/util. C: 820]
this is going on?Now Java SE 6 has reached the stage of RC, huh?
after I looked up the Java Doc carefully, I found that there is such a paragraph: http://download.java.net/jdk6/docs/api/java/io/Console.html
“been a virtual machine from a console is dependent upon the physicist platform and also upon the manner in which the virtual machine is invoked. If the virtual machine is started from an interactive command line without redirecting the standard input and
output streams then its console will exist and will typically be connected to the keyboard and display from which the virtual machine was launched. If the virtual machine is started automatically, for example by a background job scheduler, Then it will typically
1, use the command line to run, compile can use the integrated development environment. This completes standard output. 2. Redirect stdout in the program to another device or mode (such as writing to a text file), which can also be “inconvenient” to complete the function. 3. At the end of main function, add system.exit(0);
note:
return and system.exit() what is the difference between:
1. Return is the upper level of the program, system. Exit () is the top level of the program
2
Clion appears CMake Error: Could not find CMAKE_ROOT!! What is the problem and how should it be solved?
this is my first blog post. I used to use codeblocks for c++, but it feels like the debug feature on codeblocks itself has never been particularly useful. Since I was recommended to use clion, I think clion debug function is really powerful and easy to use, but I reinstalled the win10 system, and then re-initialized it (is to set some user names, boot passwords and a lot of things), clion began to report crazy errors, that is
the causes of the errors is clion path there is a Chinese, will be garbled words, if you find that can solve the problem by changing the path all is well, but if because you just installed the new system, the initialization time wrote his own name, you think this is the name displayed when the phone is switched on (although it is) but also can make your disk c username (admin) changed to Chinese, so you can only to reinstall the re-initialization.
environment:
Programming environment: Ubuntu12.04
Programming tool: Vim
Compiler tools: GCC
Input method: sogou
Note: remote login to Ubuntu12.04 using SecureCRT under Windows 8 using root user account
SecureCRT is a terminal emulator that supports SSH. SecureCRT is used to log into UNIX or Linux server hosts under Windows.
(SSH is short for Secure Shell protocol. Is a security protocol based on the application layer and the transport layer.
error:
Stray ‘\357’ in program
Reason: A full – horn character was typed into the program
.
In the programming, due to the speed of typing, pressing CTRL followed by pressing Space, the system mistakenly detected the CTRL + Space signal and switched the input method from half Angle to full Angle.
yesterday I tried to install ubuntu under the virtual machine of win10 system on my new computer. As a result, I tried to install several versions of ubuntu one after another, but failed. “Ubi-language failed with exit code 1. Further information may be found in /var/log/syslog. Do you want to try running this step again before continuing?If you do not, your installation may fail entirely or be broken.
p>
the bug report interface links: https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/906015 u> p>
p>
solution: clear the current installation record, download ubuntu16.04 version, reinstall, install successfully.
p>
Ubuntu download link: https://www.ubuntu.com/download/ubuntu-kylin u> p>
Reference the install link:
http://blog.csdn.net/jimmylincole/article/details/13168989 u> p>
cannot create Cursor because the system is out of memory. The following is the block of code
that is in question
public void insertCBJL(ArrayList<CBJLBean> cbjlList) {
if (cbjlList.size() > 0) {
mysql.beginTransaction();
for (CBJLBean bean : cbjlList) {
Cursor cursor = mysql.rawQuery(
"select * from cbjl_table where yhh=?",
new String[] { bean.getYhh()});
if (cursor.getCount() > 0) {
continue;
}
mysql.execSQL("insert into cbjl_table(cbcid,...,scsyql) values (?,...,?)",
new Object[] { bean.getCbcid(),...,bean.getScsyql() });
}
mysql.setTransactionSuccessful();
mysql.endTransaction();
}
}
After the
for loop, there is a query statement that was originally inserted into the database in order for the data to be repeated. However, there is a big mistake. After being used, it is not closed, which causes the memory overflow.
RuntimeError: Assertion `cur_target >= 0 && cur_target < n_classes' failed. at c:\programdata\miniconda3\conda-bld\pytorch-cpu_1532498166916\work\aten\src\thnn\generic/ClassNLLCriterion.c:93
The
assertion function returns an error, requiring the target class to be greater than or equal to 0 and less than or equal to the input class, but not satisfying.
often encounter this problem in classification training. Generally speaking, this error will occur when the number of categories output in our network is different from the number of categories set by your label.
USES find to remove background class 0 in experimental classification on matlab, so all categories start from 1. There is no problem in classification on matlab, but Pytorch has a requirement that the label must start with 0 when CrossEntropyLoss is used for verification, so it will give an error
please
in
place
Richard
After the
back
scene
class
the
after
will
the
There are
the
class
Don’t
mark
sign
Reduction of
1
\ leftarRow Subtracting all category labels by 1 after processing the background class
span> span> please span> span> span> span> in span> at span> Daniel span> the span> back span> view span> class span> span> of
Error: pandoc document conversion failed with error 43
is like this error on stackoverflow. An RMD file written in RStudio – Server with Chinese characters can normally generate the corresponding PDF file, but an error will be reported if the command to generate the PDF file is executed from the command line with the following code.
R -q -e 'rmarkdown::render("myreport.rmd", output_format = "pdf_document")
observed the pandoc command printed by the system when generating PDF in rstudio-server is as follows:
/usr/lib/rstudio-server/bin/pandoc/pandoc +RTS -K512m -RTS myreport.utf8.md --to latex .....
pandoc command printed when PDF is generated on the command line is as follows:
/usr/bin/pandoc +RTS -K512m -RTS myreport.utf8.md --to latex...
it can be seen that the pandoc used in the two environments is different, and the version information (pandoc-v) of the two pandoc queries is 1.19 and 1.16 respectively. Therefore, it should be a problem with the PanDoc version.
USES the following command to update pandoc in the system. It is found that the pandoc corresponding to the latest version of the system can only be 1.16.
sudo apt-get install --upgrade pandoc
simply replaces pandoc in rstudio-server with pandoc in the system.
cd /usr/bin
sudo mv pandoc pandoc.bak # 备份系统中pandoc的执行文件
sudo ln -s /usr/lib/rstudio-server/bin/pandoc/pandoc pandoc # 建立软连接,将rstudio-server中的pandoc执行文件链接过来
now that the pandoc command on the system has been replaced with the one in rstudio-server, you can generate PDF reports in the command line environment.
1, problem
import maven project error cannot run
2.
code has a problem is not the latest code
3. Solve
update git pull project to import
again