# US 2019/0356804 A1 · Image processing apparatus, method for controlling the same, and computer-readable storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0356804 A1
- Document ID: US20190356804A1
- Status: Published application
- Kind: A1
- Application number: 16/398,425
- Filed: 2019-04-30
- Published: 2019-11-21
- Earliest claimed: 2018-05-17
- Assignees: Canon Kabushiki Kaisha
- Applicants: Canon Kabushiki Kaisha
- Inventors: Yuto Sasaki
- Web page: https://patentgrep.com/patent/US20190356804A1

## CPC

- H04N 1/00938: {Software related arrangements, e.g. loading applications (program loading in general G06F9/445)}
- H04N 1/00925: {Inhibiting an operation}
- H04N 1/0096: {Simultaneous or quasi-simultaneous functioning of a plurality of operations (H04N1/32545 takes precedence; multiprogramming arrangements of computers G06F9/46)}
- H04N 1/0097: {Storage of instructions or parameters, e.g. customised instructions or different parameters for different user IDs}
- H04N 2201/0094: Multifunctional device, i.e. a device capable of all of reading, reproducing, copying, facsimile transception, file transception
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An image processing apparatus compares a total memory usage obtained from the obtained memory usages of the respective image processes and the memory usage when the requested new image process is executed, with an allowable memory capacity representing a memory usage allowed to be used in a process of executing the plugin application; and, in a case where the total memory usage does not exceed the allowable memory capacity as a result of the comparison, executes the new image process, and in a case where the total memory usage exceeds the allowable memory capacity, notifies a request source of an error representing that the new image process cannot be executed owing to an insufficient memory, without executing the new image process.

## Claims

### Claim 1

An image processing apparatus capable of executing a plurality of image processes by one or more plugin application, the apparatus comprising:
a memory device that stores a set of instructions; and
at least one processor that executes the set of instructions to:
in a case where execution of a new image process by a plugin application is requested during execution of image processes by a plugin application, search for a plugin application capable of executing the new image process;
obtain a memory usage when the new image process by the plugin application is executed, which is held together with the searched plugin application, and memory usages of the respective image processes already running by the plugin application;
compare a total memory usage obtained from the obtained memory usages of the respective image processes and the memory usage when the requested new image process is executed, with an allowable memory capacity representing a memory usage allowed to be used in a process of executing the plugin application; and
in a case where the total memory usage does not exceed the allowable memory capacity as a result of the comparison, execute the new image process, and in a case where the total memory usage exceeds the allowable memory capacity, notify a request source of an error representing that the new image process cannot be executed owing to an insufficient memory, without executing the new image process.

### Claim 2 (depends on 1)

The image processing apparatus according to claim 1, wherein the at least one processor executes instructions in the memory device to:
in a case where a new image process by a native application is requested during execution of image processes by a native application preinstalled in the image processing apparatus, search for a native application capable of executing the new image process;
obtain a memory usage when the new image process by the native application is executed, which is held together with the searched native application, and memory usages of the respective image processes already running by the native application;
compare a total memory usage obtained from the obtained memory usages of the respective image processes and the memory usage when the requested new image process is executed, with an allowable memory capacity representing a memory usage allowed to be used in another process in which the native application operates, different from the process in which the plugin application operates; and
in a case where the total memory usage does not exceed the allowable memory capacity as a result of the comparison, execute the new image process, and in a case where the total memory usage exceeds the allowable memory capacity, notify a request source of an error representing that the new image process cannot be executed owing to an insufficient memory, without executing the new image process.

### Claim 3 (depends on 1)

The image processing apparatus according to claim 1, wherein the at least one processor executes instructions in the memory device to:
in a case where a new image process by a native application is requested during execution of image processes by a native application preinstalled in the image processing apparatus, determine whether parallel processing can be executed, from a memory usage when the new image process by the native application is executed and memory usages of the respective image processes already running by the native application; and
in a case where the parallel processing cannot be executed as a result of the determination, sequentially execute the new image process and the already running image processes, and in a case where the parallel processing can be executed, execute in parallel the new image process and the already running image processes.

### Claim 4 (depends on 3)

The image processing apparatus according to claim 3, wherein the at least one processor executes instructions in the memory device to:
dynamically determine whether the parallel processing is possible for each page of the image process.

### Claim 5 (depends on 3)

The image processing apparatus according to claim 3, wherein the at least one processor executes instructions in the memory device to:
in a case where an execution memory for executing an image process cannot be allocated, send an error representing that the image process cannot be executed.

### Claim 6 (depends on 1)

The image processing apparatus according to claim 1, wherein in a case where the request source receives the error, the request source requests the new image process again after a lapse of a predetermined time.

### Claim 7 (depends on 2)

The image processing apparatus according to claim 2, wherein a request source of the new image process by the native application operates in a process different from a process in which the new image process is executed.

### Claim 8

An image processing apparatus capable of executing a plurality of image processes in a first execution environment for executing a program described in a first programming language and a second execution environment for executing a program described in a second programming language, the apparatus comprising:
a memory device that stores a set of instructions; and
at least one processor that executes the set of instructions to:
in a case where execution of a new image process by a first application described in the first programming language is requested during execution of image processes in the first execution environment, search for a first application capable of executing the new image process;
obtain a memory usage when the new image process by the first application is executed, which is held together with the searched first application, and memory usages of the respective image processes already running in the first execution environment;
compare a total memory usage obtained from the obtained memory usages of the respective image processes and the memory usage when the requested new image process is executed, with an allowable memory capacity representing a memory usage allowed to be used in the first execution environment; and
in a case where the total memory usage does not exceed the allowable memory capacity as a result of the comparison, execute the new image process, and in a case where the total memory usage exceeds the allowable memory capacity, notify a request source of an error representing that the new image process cannot be executed owing to an insufficient memory, without executing the new image process.

### Claim 9 (depends on 8)

The image processing apparatus according to claim 8, wherein the at least one processor executes instructions in the memory device to:
in a case where a new image process by a second application described in the second programming language is requested during execution of image processes in the second execution environment, search for a second application capable of executing the new image process;
obtain a memory usage when the new image process by the second application is executed, which is held together with the searched second application, and memory usages of the respective image processes already running in the second execution environment;
compare a total memory usage obtained from the obtained memory usages of the respective image processes and the memory usage when the requested new image process is executed, with an allowable memory capacity representing a memory usage allowed to be used in the second execution environment; and
in a case where the total memory usage does not exceed the allowable memory capacity as a result of the comparison, execute the new image process, and in a case where the total memory usage exceeds the allowable memory capacity, notify a request source of an error representing that the new image process cannot be executed owing to an insufficient memory, without executing the new image process.

### Claim 10 (depends on 8)

The image processing apparatus according to claim 8, wherein the at least one processor executes instructions in the memory device to:
in a case where a new image process by a second application described in the second programming language is requested during execution of image processes in the second execution environment, determine whether parallel processing can be executed, from a memory usage when the new image process by the second application is executed and memory usages of the respective image processes already running in the second execution environment; and
in a case where the parallel processing cannot be executed as a result of the determination, sequentially execute the new image process and the already running image processes, and in a case where the parallel processing can be executed, execute in parallel the new image process and the already running image processes.

### Claim 11 (depends on 10)

The image processing apparatus according to claim 10, wherein the at least one processor executes instructions in the memory device to:
dynamically determine whether the parallel processing is possible for each page of the image process.

### Claim 12 (depends on 10)

The image processing apparatus according to claim 10, wherein the at least one processor executes instructions in the memory device to:
in a case where an execution memory for executing an image process cannot be allocated, send an error representing that the image process cannot be executed.

### Claim 13 (depends on 8)

The image processing apparatus according to claim 8, wherein in a case where the request source receives the error, the request source requests the new image process again after a lapse of a predetermined time.

### Claim 14 (depends on 1)

The image processing apparatus according to claim 1, wherein the memory usage when an image process is executed is held for each function included in the image process.

### Claim 15

A method for controlling an image processing apparatus capable of executing a plurality of image processes by one or more plugin application, the method comprising:
in a case where execution of a new image process by a plugin application is requested during execution of image processes by a plugin application, searching for a plugin application capable of executing the new image process;
obtaining a memory usage when the new image process by the plugin application is executed, which is held together with the searched plugin application, and memory usages of the respective image processes already running by the plugin application;
comparing a total memory usage obtained from the obtained memory usages of the respective image processes and the memory usage when the requested new image process is executed, with an allowable memory capacity representing a memory usage allowed to be used in a process of executing the plugin application; and
in a case where the total memory usage does not exceed the allowable memory capacity as a result of the comparison, executing the new image process, and in a case where the total memory usage exceeds the allowable memory capacity, notifying a request source of an error representing that the new image process cannot be executed owing to an insufficient memory, without executing the new image process.

### Claim 16

A method for controlling an image processing apparatus capable of executing a plurality of image processes in a first execution environment for executing a program described in a first programming language and a second execution environment for executing a program described in a second programming language, the method comprising:
in a case where execution of a new image process by a first application described in the first programming language is requested during execution of image processes in the first execution environment, searching for a first application capable of executing the new image process;
obtaining a memory usage when the new image process by the first application is executed, which is held together with the searched first application, and memory usages of the respective image processes already running in the first execution environment;
comparing a total memory usage obtained from the obtained memory usages of the respective image processes and the memory usage when the requested new image process is executed, with an allowable memory capacity representing a memory usage allowed to be used in the first execution environment; and
in a case where the total memory usage does not exceed the allowable memory capacity as a result of the comparison, executing the new image process, and in a case where the total memory usage exceeds the allowable memory capacity, notifying a request source of an error representing that the new image process cannot be executed owing to an insufficient memory, without executing the new image process.

### Claim 17

A non-transitory computer-readable storage medium storing a computer program for causing a computer to execute each step in a method for controlling an image processing apparatus capable of executing a plurality of image processes by one or more plugin application, the control method comprising:
in a case where execution of a new image process by a plugin application is requested during execution of image processes by a plugin application, searching for a plugin application capable of executing the new image process;
obtaining a memory usage when the new image process by the plugin application is executed, which is held together with the searched plugin application, and memory usages of the respective image processes already running by the plugin application;
comparing a total memory usage obtained from the obtained memory usages of the respective image processes and the memory usage when the requested new image process is executed, with an allowable memory capacity representing a memory usage allowed to be used in a process of executing the plugin application; and
in a case where the total memory usage does not exceed the allowable memory capacity as a result of the comparison, executing the new image process, and in a case where the total memory usage exceeds the allowable memory capacity, notifying a request source of an error representing that the new image process cannot be executed owing to an insufficient memory, without executing the new image process.

### Claim 18

A non-transitory computer-readable storage medium storing a computer program for causing a computer to execute each step in a method for controlling an image processing apparatus capable of executing a plurality of image processes in a first execution environment for executing a program described in a first programming language and a second execution environment for executing a program described in a second programming language, the control method comprising:
in a case where execution of a new image process by a plugin application is requested during execution of image processes by a plugin application, searching for a plugin application capable of executing the new image process;
causing an obtaining unit to obtain a memory usage when the new image process by the plugin application is executed, which is held together with the searched plugin application, and memory usages of the respective image processes already running by the plugin application;
comparing a total memory usage obtained from the obtained memory usages of the respective image processes and the memory usage when the requested new image process is executed, with an allowable memory capacity representing a memory usage allowed to be used in a process of executing the plugin application; and
in a case where the total memory usage does not exceed the allowable memory capacity as a result of the comparison, executing the new image process, and in a case where the total memory usage exceeds the allowable memory capacity, notifying a request source of an error representing that the new image process cannot be executed owing to an insufficient memory, without executing the new image process.
