Category Archives: How to Fix

Abnormal crash of APP startup — pointer being free was not allocated * * set a breakpoint in malloc_ error_ break to debug

1. Problem scene
APP startup exception crashes

BlockChainStep(1332,0x7000057ad000) malloc: * error for object 0x600000008300: pointer being freed was not allocated
* set a breakpoint in malloc_error_break to debug

Second, the cause of the crash

In Xcode8 this will occur if your image resource file has 16 bitmaps or if the image display mode is P3 and the Deployment Target is below iOS9.3. (As a matter of fact, a small button appeared in the project of our company, which caused this crash. I don’t know how the designer made this special picture…) If your App needs to support the wide color functionality, you’ll have to set the Deployment Target to above iOS9.3. If your APP doesn’t need to support wide color functionality and you want to be compatible with the older versions of iOS, you’ll need to convert all the 16-bit or P3 images to 8-bit sRGB assets

3. Solutions
Convert image to 8-bit sRGB Assets format
Reference article: Xcode assets problem caused by running iOS8 crash solution

AE ram preview requires 2 or more frameworks to solve playback

After Effects error:RAM preview needs 2 or more frames to playback
 
“RAM preview requires 2 or more frames for playback “or” explained that memory capacity is too small”
 
 
Another small finding was that WHEN AE rendered by pressing the “0” button, if it said “After Effects Error :RAM Preview needs 2 or more frames to Playback “, the popular online message was that it was running out of memory, so just release it. In fact, there is a small side door, which is to check the From Current Time check box on the right. Accidentally discovered..

 
I used the English version and noticed that the RAM preview changed when I adjusted to different Settings.

in the AE menu, you can follow the following steps to find out the RAM preview memory configuration options:

so if you set the adjustment bar to the far right for the fastest preview speed, press 0 again, the following prompt may appear:

“After Effects Error :RAM Preview needs 2 or more Frames to Playback”, so this graphical option should be adjusted to avoid this error.

the other RAM preview also have different options:

I am will adjust the tie rod moved to the far left, anyway, large memory capacity (64 – bit Windows 7 of 8 gb of memory), then I am chose “From the current frame” this option, the English meaning is From now this frame (start preview), activate this option has the advantage of, avoid to start From scratch every time.

then I first move the pointer of the timeline to the place I want to review, and then press the 0 key of the keypad to start the rendering, I found that the RAM render preview can be accumulated.
although rendered will likely stop somewhere, if you press the keypad 0, can timely preview with audio clips, and then if you press the keypad 0, if memory allocation is reasonable, can also continue to accumulate, every rendering is tight as the last rendering the end point, this section after accumulation, the green line of time online will have different rendering process with time, gradually accumulate, until will run out the allocation of memory. This allows you to view long rendered content.

also:

render after press 0 can only play the part of the green line, if it is a green line between the blue line or blank, then press 0 when the preview will be stopped on the blue line starting point (or starting point of the blank, the end of the green), if you would turn it into green and sustainable, in former time pointer positioned in the green line, and choose “” From the current frame”, continue to press the keypad 0, and the green line in the middle of the blue lines or fill blank section was JiCheng green. It is recommended that you always use the 0 key of the keypad, so that you can watch long segments of accumulated content with sound. When viewing the RAM preview, if you reach the key point, press the * key on the keypad to mark, which is useful for audio editing in the future.

preview window has the “SHIFT+RAM” option, which can be rendered every other frame preview, generally defined in the project default resolution about half of the definition, and for the frame-by-frame jump preview. Also associated with this is the option “SKIP”, which allows you to choose how many frames you want to render in to save time. Above SHIFT + RAM is to skip a frame.
, of course, selects 0 to render everything (no omitted interval frames). The above two items should be noted: because some people may like to keep RAM rendering content, but you should pay attention to the interval frame parameters (1 and 2 or 0?). And possible audio spacing issues. Note that select 0: is all the spaceless render!

(CTRL+ keyboard 0 can save RAM preview content)

with audio preview, might as well CTRL+4 to activate the audio level indicator to see if the audio is overloaded…

preview has a lot to play with… As long as you stick to the zero key on your keypad, you’ll iterate over the steps, render, play, accumulate render…
green line is part of the timeline can be spliced together, mainly is the stitching together of the persistent green line, can real-time with audio playback preview, if you insist on cumulative preview render, allocated memory segment will make the corresponding adjustment, is likely to be behind the rendering gradually turn green, and in front of the green line is gradually becoming blue…

13.2 spring boot start error: whitelabel error page

13.2 Spring Boot Boot Error: Whitelabel Error Page
Problem description

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Tue Mar 28 22:25:43 CST 2017
There was an unexpected error (type=Internal Server Error, status=500).
Circular view path [login]: would dispatch back to the current handler URL [/login] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)

Cause analysis,
First, the error page is the default error page for SpringBoot. Source in: org. Springframework. Boot. Autoconfigure. Web. Servlet. Error. ErrorMvcAutoConfiguration line 151.
This error is usually caused by a configuration error, or an MVC error.
The solution
Properly configure the named presuffix of the template file in the Application.properties file:

spring.mvc.view.prefix=/WEB-INF/jsp/
spring.mvc.view.suffix=.jsp

In addition, in earlier versions of Springboot, MVC was not included in the key.

spring.view.prefix: /WEB-INF/jsp/
spring.view.suffix: .jsp

This configuration is version 1.1 after class, in the org. Springframework. Boot. Autoconfigure. Web. Servlet. WebMvcProperties class. The above annotation @ConfigurationProperties(prefix = “spring.MVC “) indicates the key.
Accordingly, the template files should be placed in the correct directory. For the above configuration, the corresponding directory can be:

/src/main/webapp/WEB-INF/jsp/
/src/main/resources/META-INF/resources/WEB-INF/jsp

The default directory for common SpringBoot template files is as follows:

# THYMELEAF (ThymeleafAutoConfiguration)
spring.thymeleaf.cache=true # Enable template caching.
spring.thymeleaf.check-template=true # Check that the template exists before rendering it.
spring.thymeleaf.check-template-location=true # Check that the templates location exists.
spring.thymeleaf.enabled=true # Enable Thymeleaf view resolution for Web frameworks.
spring.thymeleaf.encoding=UTF-8 # Template files encoding.
spring.thymeleaf.excluded-view-names= # Comma-separated list of view names that should be excluded from resolution.
spring.thymeleaf.mode=HTML5 # Template mode to be applied to templates. See also StandardTemplateModeHandlers.
spring.thymeleaf.prefix=classpath:/templates/ # Prefix that gets prepended to view names when building a URL.
spring.thymeleaf.reactive.max-chunk-size= # Maximum size of data buffers used for writing to the response, in bytes.
spring.thymeleaf.reactive.media-types=text/html # Media types supported by the view technology.
spring.thymeleaf.servlet.content-type=text/html # Content-Type value written to HTTP responses.
spring.thymeleaf.suffix=.html # Suffix that gets appended to view names when building a URL.
spring.thymeleaf.template-resolver-order= # Order of the template resolver in the chain.
spring.thymeleaf.view-names= # Comma-separated list of view names that can be resolved.


# FREEMARKER (FreeMarkerAutoConfiguration)
spring.freemarker.allow-request-override=false # Set whether HttpServletRequest attributes are allowed to override (hide) controller generated model attributes of the same name.
spring.freemarker.allow-session-override=false # Set whether HttpSession attributes are allowed to override (hide) controller generated model attributes of the same name.
spring.freemarker.cache=false # Enable template caching.
spring.freemarker.charset=UTF-8 # Template encoding.
spring.freemarker.check-template-location=true # Check that the templates location exists.
spring.freemarker.content-type=text/html # Content-Type value.
spring.freemarker.enabled=true # Enable MVC view resolution for this technology.
spring.freemarker.expose-request-attributes=false # Set whether all request attributes should be added to the model prior to merging with the template.
spring.freemarker.expose-session-attributes=false # Set whether all HttpSession attributes should be added to the model prior to merging with the template.
spring.freemarker.expose-spring-macro-helpers=true # Set whether to expose a RequestContext for use by Spring's macro library, under the name "springMacroRequestContext".
spring.freemarker.prefer-file-system-access=true # Prefer file system access for template loading. File system access enables hot detection of template changes.
spring.freemarker.prefix= # Prefix that gets prepended to view names when building a URL.
spring.freemarker.request-context-attribute= # Name of the RequestContext attribute for all views.
spring.freemarker.settings.*= # Well-known FreeMarker keys which will be passed to FreeMarker's Configuration.
spring.freemarker.suffix= # Suffix that gets appended to view names when building a URL.
spring.freemarker.template-loader-path=classpath:/templates/ # Comma-separated list of template paths.
spring.freemarker.view-names= # White list of view names that can be resolved.

# GROOVY TEMPLATES (GroovyTemplateAutoConfiguration)
spring.groovy.template.allow-request-override=false # Set whether HttpServletRequest attributes are allowed to override (hide) controller generated model attributes of the same name.
spring.groovy.template.allow-session-override=false # Set whether HttpSession attributes are allowed to override (hide) controller generated model attributes of the same name.
spring.groovy.template.cache= # Enable template caching.
spring.groovy.template.charset=UTF-8 # Template encoding.
spring.groovy.template.check-template-location=true # Check that the templates location exists.
spring.groovy.template.configuration.*= # See GroovyMarkupConfigurer
spring.groovy.template.content-type=test/html # Content-Type value.
spring.groovy.template.enabled=true # Enable MVC view resolution for this technology.
spring.groovy.template.expose-request-attributes=false # Set whether all request attributes should be added to the model prior to merging with the template.
spring.groovy.template.expose-session-attributes=false # Set whether all HttpSession attributes should be added to the model prior to merging with the template.
spring.groovy.template.expose-spring-macro-helpers=true # Set whether to expose a RequestContext for use by Spring's macro library, under the name "springMacroRequestContext".
spring.groovy.template.prefix= # Prefix that gets prepended to view names when building a URL.
spring.groovy.template.request-context-attribute= # Name of the RequestContext attribute for all views.
spring.groovy.template.resource-loader-path=classpath:/templates/ # Template path.
spring.groovy.template.suffix=.tpl # Suffix that gets appended to view names when building a URL.
spring.groovy.template.view-names= # White list of view names that can be resolved.


Mount error (112): host is down


centos7 minial system when sharing directory with a storage device, use mount-t cifs-o username=”***”,password=”***” \\ \ storage device IP \\ directory name \\ directory name, system error mount error(112): Host is down, after performing yum install cifs-utils and smb-related dependencies, mount -t cifs-o vers=1.0,username=”***”,password=”***” \\ \ storage device IP \ directory name \\ directory name, load successfully, this situation mainly involves two problems:
1, cifs and SMB. SMB (Server Message Block) is also known as CIFS(Common Internet File System), an application layer network transport protocol (developed by Microsoft and Intel in 1987). The main function of SMB is to enable machines on the network to share computer files, printers, serial ports, communications and other resources. It also provides certified interprocess communication skills. It is mainly used on Windows machines. CIFS is a protocol developed by Microsoft based on SMB and extended to the Internet. It has nothing to do with the specific OS; CIFS is available after Samba is installed on Unix. It enables a program to access files on a remote Internet computer and request the services of that computer. CIFS USES client/server mode. The client requests the server application on the remote server to serve it. The server gets the request and returns the response.
CIFS is a public or open version of the SMB protocol and is used by Microsoft. The SMB protocol is now a LAN protocol for accessing and printing server files. Like the SMB protocol, CIFS runs at a high level, rather than at the bottom, as TCP/IP does. CIFS can be seen as an implementation of application protocols such as file transfer protocol and hypertext transfer Protocol. Ii. The first packet sent by cifs protocol contains version information. Mount vfstype
mount vfstype
DOS fat16 file system: msdos
Windows 9x fat32 file system: vfat
Windows NT NTFS
mount Windows file network sharing: SMBFS
UNIX(LINUX) file network sharing: NFS

Java prompt unmappable character for encoding solution

We Java developers may often encounter unmappable Character for Encoding errors. The reason for this error is that the source code contains characters not included in the GBK encoding. The solution: The source code contains characters not included in the GBK encoding.

• delete the character
• save the source code file as utf-8 encoding

unmappable character for encoding error. However, after looking it up on the Internet, we know that the class file of Java USES utf-8 encoding. Test2.java is compiled to Test2.class, including the utF-8 encoding conversion process.

solution

0

1

2

copy code copy code
compile javac-encoding GBK test2. Java runs java-dfile.encoding = “GBK” test2

3

Arduino reports an error when writing a custom library file to solve the problem of not name of type, not declared in this scope

The first time I tried to write an Arduino library file, I failed to compile it.
Here’s a summary of where things go wrong.
We usually create our own library directories and files under the Arduino/Libraries directory. Note, however, that the Libraries directory is read-only by default.
Once we’ve created the library, it’s time to use it. When we open up the Arduino application and start writing the application, when we import our custom library, the library in the Libraries directory will automatically copy to our projects folder.
Then the problem comes. When we write the libraries that need to be modified due to errors, when we modify the libraries in the library directory, the libraries in the project directory have not been modified, so the compilation is still stubborn and cannot pass. The solution in this case is to modify the library files in the project directory.

The compiler always declares variables that are not declared because the library file is not included or because the library file does have syntax errors.
does not name of type
xxx was not declared in this scope

This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.
Arduino: 1.0.6 (Windows 7), Board: “Arduino Uno”
sketch_dec23a:6: error: ‘LightClass’ does not name a type
sketch_dec23a.ino: In function ‘void setup()’:
sketch_dec23a:12: error: ‘light’ was not declared in this scope
sketch_dec23a.ino: In function ‘void loop()’:
sketch_dec23a:17: error: ‘light’ was not declared in this scope

fatal error LNK1120: 1 unresolved externals

Experiment error note.

OpenGL.obj : error LNK2001: unresolved external symbol “public: __thiscall CGLFont::CGLFont(void)” (??0CGLFont@@QAE@XZ)
Exe: Fatal Error lnK1120:1 Unresolved Externals

Error message: Unresolvable external symbol “public: Thiscall CGLFont::CGLFont(void)” code refers to content (such as functions, variables, or labels) that the linker cannot find in the library and object files.
some people on the Internet say there are two possible reasons: “1. The program lacks lib files in project -> 2. Add the required lib file to the link in setting.”

“2. In a program, functions are only declared undefined, and this problem is most likely caused by misspelling the name of the function when defining the function.”
http://wenda.tianya.cn/question/3e750b81a3b043cf