Category Archives: Error

Solution to latex “too many unprocessed floats” error

This error occurred because more than 18 graphs and tables were placed in a row without any text in between.These solutions are available online:
1. Using macro package \usepackage[section]{placeins}
2. Start using \ ClearPage on each pageBut after the author used the above method, although the error is not reported, but the layout of the picture is still a bit messy.

In fact, this error is caused by the continuous placement of too many floating graphics.

The author to check the LaTex books (http://www.ctex.org/documents/latex/graphics/node2.html), 20 according to the book. Do not float the figure, remove the figure environment (that is, add pictures as non-floating graphics), the problem is solved.

Code used by the author:

\centerline{\includegraphics[width=12cm]{fig1}}
\caption{fig1}\label{fig1}
%\vspace{5mm}
\centerline{\includegraphics[width=12cm]{fig2}}
\caption{fig2}\label{fig2}
%\vspace{5mm}
\centerline{\includegraphics[width=12cm]{fig3}}
\caption{fig3}\label{fig3}
.
.
.
%\vspace{5mm}
\centerline{\includegraphics[width=12cm]{fig20}}
\caption{fig20}\label{fig20}

where vspace{5mm} can be adjusted for image spacing.
Update: If you must use the Figure environment, you can combine \ ClearPage with! H parameters are used together, such as:

\begin{figure}[!h]
\centerline{\includegraphics[width=12cm]{fig17}}
\caption{Experimental results of the 17th image frame}\label{fig17}
\end{figure}

\clearpage

\begin{figure}[!h]
\centerline{\includegraphics[width=12cm]{fig18}}
\caption{Experimental results of the 18th image frame}\label{fig18}
\end{figure}

\ ClearPage where it was at the end of the previous page.

C++ Error: terminating with uncaught exception of type std::out_of_range: vector Abort trap: 6

Toss about for a long time, finally clear the specific reason!
According to the exception prompt, vector is out of bounds, but it has not been located to which vector variable for a long time.
Write the class printf before and after the interrupt position, find the interrupted function, and print inside the function, only to find that the function doesn’t go in at all. It’s strange how you can’t go back in, no other thread, no other place to cause a crash. At this point, I should have thought to check the input of the function earlier. If the input is not correct, the function cannot enter. However, I have never encountered the situation that the input causes the function to not enter, so I did not think to check the input.
The input is a vector type, and the error is due to a problem with the access method.
Vector has a variety of access methods, which can be accessed directly in the way of array, such as VEC variable, VEC [0], or at(), vec.AT (0). There are differences between the two approaches. If veC happens to be empty, accessing the 0th element as an array will not be considered wrong, but the second access using the at method will result in the above error!!

Angular select Tag Error trying to diff ‘2’. Only arrays and iterables are allowed

In the case of binding the select tag to an array of *ngFor, the Error
Error trying to diff ‘2’. Only arrays and iterables are allowed is used. Need to change the bound array to item
in the array error demonstration

   <div class="form-group">
        <label for="partners">Hero partners</label>
        <select class="form-control" id="partners" [(ngModel)]="partners" name="partners">
            <option *ngFor="let partner of partners" [value]="partner.partnerId">{{partner.partnerName}}</option>
        </select>
    </div>

Modified to

   <div class="form-group">
        <label for="selectedPartner">Hero partners</label>
        <select class="form-control" id="selectedPartner" [(ngModel)]="selectedPartner" name="selectedPartner">
            <option *ngFor="let partner of partners" [value]="partner.partnerId">{{partner.partnerName}}</option>
        </select>
    </div>

 

Angular_ Error: Cannot assign to a reference or variable!

Cannot assign a value to a reference or variable!

<form class="form-horizontal" (ngSubmit)="login(loginForm.value)" role="form" #loginForm="ngForm">
        <div class="form-group">
          <label for="username"></label>
          <input class="form-control" required name="username" id="username" type="textbox" placeholder="Email"
            [(ngModel)]="name" #username="ngModel">

          <div *ngIf="username.invalid && (username.dirty || username.touched)" class="alert alert-danger">
            <div *ngIf="username.errors.required">
              Name is required.
            </div>
          </div>
        </div>
        <div class="form-group">
          <label for="password"></label>
          <input class="form-control" required name="password" id="password" [(ngModel)]="password" type="password"
            placeholder="Password" #passWord="ngModel">
          <div *ngIf="passWord.invalid && (passWord.dirty || passWord.touched)" class="alert alert-danger">
            <div *ngIf="passWord.errors.required">
              Name is required.
            </div>
            <div *ngIf="passWord.errors.minlength">
              Name must be at least 4 characters long.
            </div>

          </div>
        </div>
        <div class="row" style="margin-top: 40px;">
          <div class="col-sm-6">
            <!-- <a class="login-link" routerlinkactive="active" ng-reflect-router-link="/register"
              ng-reflect-router-link-active="active" href="/register"></a> -->
          </div>
          <div class="col-sm-6">
            <button type="submit" class="btn btn-primary pull-right btn-login" [disabled]="!loginForm.form.valid">
              Login</button>
          </div>
        </div>
      </form>

The input #password and the variable defined in the TS file have the same name.
Change can be

Android Error: Consumer closed input channel or an error occurred. events=0x9

Android. OS. DeadObjectException memory near r0: exception handling

android.os.DeadObjectException
08-15 14:39:32. 486: W/System. Err (1767) : an android. The OS. BinderProxy. Transact (Native Method)
486: I/ActivityManager(1767): Process com.my.Test (PID 25619) has died.
08-15 14:39:32.486: W/ActivityManager(1767): Force Removal ActivityRecord{42afefe8 com.my.tes/.MyCmge}: app died, no saved state
08-15 14:39:32. 486: W/WindowManager (1767) : the Force – o child Windows Window {441 d3f70 PopupWindow: 4299 edc8 paused = false} the from the container Window {42 ae1b88 com. My. Tes/com. My. Tes. MyCmge paused = false}
08-15 14:39:32. 491: W/System. Err (1767) : an android. The IWindow $$Proxy stubs. OffsetWindowForKeyguard (IWindow. Java: 471)
08-15 14:39:32. 491: W/InputDispatcher (1767) : channel ‘441 da238 com. My. Tes/com. My. Tes. MyCmge (server)’ ~ Consumer closed input channel or an error occurred. The events = 0 x9
08-15 14:39:32. 491: E/InputDispatcher (1767) : channel ‘441 da238 com. My. Tes/com. My. Tes. MyCmge (server)’ ~ channel is unrecoverably broken and will be disposed.
08-15 14:39:32. 491: W/System. Err (1767) : at the android. Server. Wm. WindowStateAnimator. DestroySurfaceLocked (WindowStateAnimator. Java: 803)
08-15 14:39:32. 491: W/System. Err (1767) : at the android. Server. Wm. WindowState. RemoveLocked (WindowState. Java: 832)
08-15 14:39:32. 491: W/System. Err (1767) : at the android. Server. Wm. WindowManagerService. RemoveWindowInnerLocked (WindowManagerService. Java: 2522)
08-15 14:39:32. 491: W/System. Err (1767) : at the android. Server. Wm. WindowManagerService. RemoveWindowInnerLocked (WindowManagerService. Java: 2506)
491: D/Zygote(1550): Process 25619 by signal (11)
08-15 14:39:32. 491: W/System. Err (1767) : at the android. Server. Wm. WindowManagerService. RemoveWindowLocked (WindowManagerService. Java: 2484)
08-15 14:39:32. 491: W/System. Err (1767) : at the android. Server wm. WindowState $DeathRecipient. BinderDied (WindowState. Java: 869)
08-15 14:39:32. 491: W/System. Err (1767) : an android. The OS. BinderProxy. SendDeathNotice (449) Binder. Java:
08-15 14:39:32. 491: W/System. Err (1767) : at dalvik. System. NativeStart. Run (Native Method)
491: I/AKMD2(1767): AK8975/B for Android end
08-15 14:39:32 491: D/AKMD2(1767): AKMD2: Compass Closed.
08-15 14:39:32.491: D/Sensors(1767): AKM :setDelay():handle 1, delay 20000000 ns.
08-15 14:39:32.496: D/AKMD2(1767): ACC_thread_main: update delay_MS to 66.

Since I was using someone else’s SDK, I could not change the source code, so I asked Daniel for help and used the following method to solve it easily

application
Android: hardwareAccelerated = “false”…
In the application tag to add a android: hardwareAccelerated = “false” (disable hardware acceleration)
So the problem was solved,
At the beginning, I added it to the corresponding activity tag. As a result, I found that it could run perfectly for the first time and this problem would occur again after a period of time.
To change the application, the android: hardwareAccelerated = “false” so good,

Uncaught Error: Error calling method on NPObject.

1. Error description

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. 
For more help, check http://xhr.spec.whatwg.org/.

Get the first value: undefined

Uncaught Error: Error calling method on NPObject.
Uncaught 
Error: Error calling method on NPObject.

2. Error reason

function windowOnload() {
	Report.LoadFromURL("student.grf?date="+(new Date().getTime()));
	$.ajax({
		url:"param/isPrint",
		type:"get",
		dataType:"json",
		async:false,
	}).done(function(resp){
	   if(dt.success==false){
			return;
	   }
	   var isPrint=resp.isPrint;

	   $.ajax({
		    url:"student/stu/findStu",
			type:"get",
			dataType:"json",
			data:{},
			async:false
		}).done(function(data){
		   if(!data){
			   return;
		   }
		   var report = JSON.stringify(data);
		   Report.LoadDataFromAjaxRequest(report,"application/json;charset=UTF-8");
		   Report.Print(isPrint);
		});
	});
}

When making Report by Grid++Report, whether to open the print window is controlled by a parameter isPrint; When isPrint=true, the print window is displayed, otherwise it is not displayed. However, if the query results do not have this parameter and are used directly in Print(isPrint), an Error Error will be reported calling method on NPObject

3. Solutions
Add the judgment before report.print (isPrint) USES this parameter

function windowOnload() {
	Report.LoadFromURL("student.grf?date="+(new Date().getTime()));
	$.ajax({
		url:"param/isPrint",
		type:"get",
		dataType:"json",
		async:false,
	}).done(function(resp){
	   if(dt.success==false){
			return;
	   }
	   var isPrint=resp.isPrint;

	   $.ajax({
		    url:"student/stu/findStu",
			type:"get",
			dataType:"json",
			data:{},
			async:false
		}).done(function(data){
		   if(!data){
			   return;
		   }
		   var report = JSON.stringify(data);
		   Report.LoadDataFromAjaxRequest(report,"application/json;charset=UTF-8");
		   Report.Print(isPrint?true:false);
		});
	});
}

RPC failed; curl 56 SSLRead() return error

RPC failed; curl 56 SSLRead() returned an error
Git failed during cloning or fetching with the following error:
git clone http://stash.company.com:7990/scm/proj/repo.git
Fatal:Early EOF
Fatal:Unexpected hang on remote side
Fatal:indexpack failed
Error:RPC failed; result=56, HTTP code = 200
Completion has errors, see above.
Diagnosis
Temporarily disable any firewall or antivirus software and try cloning again.
To turn on Git debug logging, do the following for different operating systems before using command line push:
On Linux
In Linux, execute the following command from the command line before executing the Git command:
export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1
On Windows
Before executing the Git command, execute the following command from the command line:
set GIT_TRACE_PACKET=1
set GIT_TRACE=1
set GIT_CURL_VERBOSE=1
Cause
Issue 1:
Error code 56 indicates that curl received a CURLE_RECV_ERROR error, which means that there is some problem in the cloning process that is preventing the data from being received. This is usually caused by network settings, firewalls, VPN clients, or antivirus software that terminates the connection before all data is transferred.

STMS communications error with system/destination rfc error when sending logon data

I. Problem

When setting up the traffic system: After executing with TCode: STMS, an error is reported: communication error with the system/destination rfc error when the login data sent

Using SM59 to view RFC connection test failed, using se38 execution program TMS_UPDATE_PWD_OF_TMSADM to change TMSADM password failed.

Second, the solution

Call the transaction SECSTORE.
Select “Execute” (F8).
In the displayed entry, if the entry /HMAC_INDEP/RFC_INTERNAL_TICKET_4_TRUSTED_SYSTEM is marked with a red light, delete the entry.
Delete the entry /HMAC_INDEP/RFC_EXTERNAL_TICKET_4_TRUSTED_SYSTEM if it is marked red in the displayed entries.

After deleting the above red record, then execute the stms selection overview – “transport route click edit and save 。。。。 and it works!

Lua: Error during loading: [string “/usr/share/wireshark/init.lua”]:45: dofile has been disabled

Run as user “root” and group “root”. This can be dangerous.
tshark: Lua:Error loading:[string
” /usr/local/share/wireshark/init]lua”]:44: dofile has been disabled
due to running Wireshark as superuser. See also
Running Wireshark as an unprivileged user
https://wiki.wireshark.org/CaptureSetup/CapturePrivileges
Confirm that lua is supported by wireshark, and also use the find command to locate init.lua.
Make sure that disable_lua = false in the init. lua file.

NPM install Error cb.apply is not a function

NPM install error cb.apply is not a function

solve:
Win + R open and run, enter % appdata% to delete NPM and NPM cache folder, and execute NPM cache clean — force
At this point, it should be OK. If not, uninstall node.js and install it again.

If not!!

Change yarn

Install yarn NPM install - G yarn

yarn install instead of NPM install

then, everything will be fine