A-Z Popular Blog Computing Search »
Computing
 Advertisements
Related Guides
Computing Basics
Key Concepts
Software Architecture

Computing Basics
Related Topics
Robotics

Technology

11 Examples of a Runtime Error

 , updated on
A runtime error is an error that occurs while software is executing. This can be contrasted with a compile-time error that is detected when code is being built before it is run. All errors detected by users are typically runtime errors. As such, if you are a user who receives a "runtime error" message, this is essentially meaningless. The following are common types of runtime error.

Logical Errors

Logical errors such as failing to check if a file is empty before parsing its first line.

Invalid Operations

Trying to do things that can't be done such as division by zero.

Input Handling

Failing to properly validate user input and then making incorrect assumptions about that data. For example, assuming that users haven't put any non-numeric characters into a "quantity" field such that code fails when it tries use this data as a number.

Parsing

Errors related to understanding text such as scanning for "jpg" anywhere in a filename to determine a file type. This might cause a runtime error for a filename such as "jpg at the lake.mov."

Out of Bounds

Looking for things in data structures using impossible addresses. For example, trying to access position -1 in a list where positions start at 0.

Data

Unhandled data conditions. For example, a spreadsheet that assumes that a file has author related metadata such that it generates an error if this field is empty.

Integration

An error in requesting services. For example, a banking website that can't connect to a banking system that provides account balances.

Null Pointer

Code that incorrectly assumes that a variable has been initialized generating a null pointer error. For example, assuming that all customers in a database have a phone number set when some do not.

Resources

Code that eats up too many resources such as an infinite loop or code that is unable to secure resources it assumes will be present such as enough memory to process a large media file.

I/O

Errors in input and output. For example, an failed call to create a local file due to file permissions.

Synchronization

Problems that occur with multiple processes accessing the same resource at the same time. For example, multiple threads of code that try to change the same data at the same time without properly synchronizing these updates.

Notes

Runtime errors can be difficult to fix because they may impact a small number of users and be difficult to recreate. For example, a social media script that works fine on a high speed, low latency connection where the developer is sitting that starts generating runtime errors in areas where internet is slow and unreliable.

Summary

Runtime error are errors in running software. These can be difficult to detect whereby they are triggered by different combinations of user actions, data, sequences of events and operational conditions.
Overview: Runtime Error
Type
Definition
An error that occurs while software is executing.
Related Concepts
Next: Errors
More about computing:
Automation
Binary
Caching
Client-Server
Computer
Computer Examples
Computer Program
Data
Data Processing
I/O
Networking
Runtime Error
Sensors
System Program
Systems
Unicode
If you enjoyed this page, please consider bookmarking Simplicable.
 

Linux Commands

A list of unusually useful linux commands with brief explanations.

Computer Program

The definition of computer program with examples.

I/O

The definition of I/O with examples.

Row vs Column

The difference between row and column explained with examples.

Computer Skills

A list of common computer skills.

Computer Literacy

The definition of computer literacy with examples.

Unicode

A list of useful text symbols.

Arrow Text

A list of useful unicode arrows.

Computing

Examples of computing in everyday life.

Cloud

The definition of cloud with examples.

Address Space

The definition of address space with an overview.

System Error Examples

An overview of the common types of system errors with examples.

Hexadecimal Numbers

A list of the first 256 hexadecimal numbers.

Computer Examples

A list of everyday things that are computers or have computers embedded in them.

System Analysis Examples

An overview of system analysis with examples.

Full Stack

An overview of full stack development.

Application Software

An overview of application software with examples.

Computing Platform

A list of the basic types of computing platform.
The most popular articles on Simplicable in the past day.

New Articles

Recent posts or updates on Simplicable.
Site Map