Questions tagged [runtime-error]
Use this tag to indicate that when an application is run, it reports a runtime error or runtime exception after or during the execution of the application. Use this tag with other tags that indicate programming language being used ([java], [c++], etc.) or for standard utilities or development environments include a tag indicating the application being run ([maven], [visual-studio], [gcc], etc.).
runtime-error
9,827
questions
653
votes
11
answers
194k
views
PHP expects T_PAAMAYIM_NEKUDOTAYIM?
Does anyone have a T_PAAMAYIM_NEKUDOTAYIM?
303
votes
14
answers
442k
views
Android Studio error: "Manifest merger failed: Apps targeting Android 12" [duplicate]
I have updated my emulator version and Android SDK version to Android S (Android 12). After the update, I cannot run the project. I cannot run a Hello, World! project (empty project), but I can build ...
268
votes
21
answers
389k
views
What causes java.lang.IncompatibleClassChangeError?
I'm packaging a Java library as a JAR, and it's throwing many java.lang.IncompatibleClassChangeErrors when I try to invoke methods from it. These errors seem to appear at random. What kinds of ...
207
votes
27
answers
334k
views
Causes of getting a java.lang.VerifyError
I'm investigating the following java.lang.VerifyError:
java.lang.VerifyError: (class: be/post/ehr/wfm/application/serviceorganization/report/DisplayReportServlet, method: getMonthData signature: (...
181
votes
25
answers
6k
views
How to get users to read error messages? [closed]
If you program for a nontechnical audience, you find yourself at a high risk that users will not read your carefully worded and enlightening error messages, but just click on the first button ...
154
votes
14
answers
322k
views
ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'undefined'
I know there are a lot of same questions already posted in stack-overflow and tried different solutions to avoid the run-time error but None of them are working for me.
Component and Html Code
...
136
votes
6
answers
496k
views
Why does math.log result in ValueError: math domain error?
I was just testing an example from Numerical Methods in Engineering with Python.
from numpy import zeros, array
from math import sin, log
from newtonRaphson2 import *
def f(x):
f = zeros(len(x))
...
132
votes
19
answers
185k
views
Application Crashes With "Internal Error In The .NET Runtime"
We have an application written against .NET 4.0 which over the weekend crashed, putting the following message into the event log:
Application: PnrRetrieverService.exe Framework Version: v4.0....
123
votes
13
answers
120k
views
"query function not defined for Select2 undefined error"
Trying to use Select2 and getting this error on multiple item input/text field:
"query function not defined for Select2 undefined error"
100
votes
21
answers
59k
views
Unable to boot device in current state: Booted
Any guess on "Unable to boot device in current state: Booted" error in Xcode6 beta while running (build+run) project in Simulator. I am just running my existing project in Xcode 6 I found above ...
98
votes
11
answers
301k
views
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! when resuming training
I saved a checkpoint while training on gpu. After reloading the checkpoint and continue training I get the following error:
Traceback (most recent call last):
File "main.py", line 140, in &...
91
votes
16
answers
180k
views
javac: invalid target release: 1.8
I recently downloaded JDK 1.8.0.0_06 that comes bundled with NetBeans. I then got to find out that my JavaFx project, that I have been developing in Java 1.7 won't compile in Java 1.8, and so I ...
81
votes
13
answers
193k
views
SSL error unsafe legacy renegotiation disabled
I am running a Python code where I have to get some data from HTTPSConnectionPool(host='ssd.jpl.nasa.gov', port=443). But each time I try to run the code I get the following error. I am on MAC OS 12.1
...
80
votes
9
answers
160k
views
Matplotlib-Animation "No MovieWriters Available"
Under Linux, I've been checking out matplotlib's animation class, and it seems to work except that I cant initialise the movie writer to write out the movie.
Using either of the examples:
http://...
78
votes
4
answers
100k
views
Can't create handler inside thread that has not called Looper.prepare() inside AsyncTask for ProgressDialog
I don't understand why I'm getting this error. I'm using AsyncTask to run some processes in the background.
I have:
protected void onPreExecute()
{
connectionProgressDialog = new ProgressDialog(...
78
votes
2
answers
304k
views
Null check in VB
All I want to do is check if an object is null, but no matter what I do, if it compiles, it throws a NullReferenceException just trying to check! Here's what I've done:
If ((Not (comp.Container ...
76
votes
5
answers
231k
views
RuntimeError: CUDA out of memory. How can I set max_split_size_mb?
I found this problem running a neural network on Colab Pro+ (with the high RAM option).
RuntimeError: CUDA out of memory. Tried to allocate 8.00 GiB (GPU 0;
15.90 GiB total capacity; 12.04 GiB ...
76
votes
1
answer
25k
views
Definitive List of Common Reasons for Segmentation Faults
NOTE: We have a lot of segfault questions, with largely the same
answers, so I'm trying to collapse them into a canonical question like
we have for undefined reference.
Although we have a ...
71
votes
14
answers
166k
views
what does Error "Thread 1:EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)" mean?
I got this error:
Thread 1:EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
How can I solve this? The code works normally, but in the calculator when I click the only equal button, it gives ...
69
votes
1
answer
92k
views
where to put freeze_support() in a Python script?
I am confused about using freeze_support() for multiprocessing and I get a Runtime Error without it. I am only running a script, not defining a function or a module. Can I still use it? Or should the ...
68
votes
1
answer
29k
views
Git: error: RPC failed; result=22, HTTP code = 411
Symptoms:
Git suddenly refused to push a repository (to github in my case):
$ git push
Counting objects: 9292, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2136/2136), ...
66
votes
10
answers
105k
views
could not access the package manager. is the system running while installing android application
While installing the android application in the emulator I am getting the following error.
Please help me to resolve this error.
Error message:
emulator.exe -avd avd_name
adb wait-for-device
...
66
votes
11
answers
229k
views
"Error: Main method not found in class MyClass, please define the main method as..."
New Java programmers often encounter messages like the following when they attempt to run a Java program. (Different Java tools, IDEs and so on give a variety of diagnostics for this problem.)
Error:...
61
votes
15
answers
223k
views
NoClassDefFoundError in Java: com/google/common/base/Function
When I executing the following code:
public static void main(String[] args) {
try {
FirefoxDriver driver = new FirefoxDriver();
driver.get("http:www.yahoo.com");
} catch (...
59
votes
2
answers
346k
views
Android app unable to start activity componentinfo
I'm a new Android programmer and recently, a lot of my projects have been getting this error:
07-31 23:45:19.592: ERROR/AndroidRuntime(716): java.lang.RuntimeException: Unable to start
activity ...
53
votes
6
answers
108k
views
Double free or corruption after queue::push
#include <queue>
using namespace std;
class Test{
int *myArray;
public:
Test(){
myArray = new int[10];
}
~Test(){
delete[] myArray;
}
};
int main(...
52
votes
4
answers
95k
views
FastCGI process exceeded configured activity timeout
I have a function I built that will grab a .csv file and upload information stated then, creating an account for each user in the .csv file.
My issue is I need to be able to do this with thousands ...
51
votes
3
answers
56k
views
navigator.mediaDevices is undefined
So I've made a WebRTC screen sharing app as a self-hosted alternative to Chrome Remote Desktop and other common remote desktop / game streaming services.
My dilemma isn't navigator.mediaDevices ...
50
votes
1
answer
30k
views
Illegal remote method in java
It's the first time I use java Rmi*. I have a custom class which extends UnicastRemoteObject and implements an interface which extends remote. I think that I have implemented the methods of the ...
46
votes
5
answers
57k
views
Laravel Error: Method Illuminate\View\View::__toString() must not throw an exception
Have you seen this lovely error while working in Laravel?
Method Illuminate\View\View::__toString() must not throw an exception
I have seen it and it's incredibly annoying. I have found out two ...
44
votes
8
answers
187k
views
It says that TypeError: document.getElementById(...) is null [duplicate]
Althought I pushed a parameter to getElementById I wonder from where is this 'is null' error coming from?
TypeError: document.getElementById(...) is null
[Break On This Error]
document....
43
votes
7
answers
42k
views
Why is my Swift loop failing with error "Can't form range with end < start"?
I have a for loop that checks if a number is a factor of a number, then checks if that factor is prime, and then it adds it to an array. Depending on the original number, I will get an error saying
...
41
votes
4
answers
6k
views
Error: logging directory does not exist /var/mobile/Library/Logs/CrashReporter/DiagnosticLog/
UPDATE: SUBMIT BUG REPORTS AND REFERENCE THIS NUMBER: #18882445
I keep having this error come up randomly through various compile times (even if nothing seems wrong with the app)
[PLLogging] ***** ...
41
votes
4
answers
9k
views
Android Keystore Error "could not generate key in keystore"
I get an error trying to generate a key for certain devices. I'm able to reproduce the error on a Samsung Galaxy Note running 4.4.2.
java.lang.IllegalStateException: could not generate key in ...
39
votes
5
answers
225k
views
'int' object has no attribute '__getitem__'
import math
import os
class collection:
col = [[0 for col in range(5)] for row in range(6)]
dist = [[0 for col in range(6)] for row in range(6)]
filename = ""
result = ""
def ...
39
votes
5
answers
15k
views
How would you use Alexandrescu's Expected<T> with void functions?
So I ran across this (IMHO) very nice idea of using a composite structure of a return value and an exception - Expected<T>. It overcomes many shortcomings of the traditional methods of error ...
38
votes
2
answers
40k
views
PHP generated XML shows invalid Char value 27 message
I am generating XML using PHP library as below:
$dom = new DOMDocument("1.0","utf-8");
Doing above results in a page which shows a message on top of the output.
This page contains the following ...
38
votes
3
answers
63k
views
Unable to find type [System.IO.Compression.CompressionLevel]: make sure that the assembly containing this type is loaded
I wrote this PowerShell script to archive all log files created during a certain date range.
$currentDate = Get-Date;
$currentDate | Get-Member -Membertype Method Add;
$daysBefore = -1;
$...
37
votes
3
answers
12k
views
How to debug angular [$injector:modulerr] errors
I have a growing angular application. From time to time, I mess things up and get an error of the type:
[$injector:modulerr] Failed to instantiate module App due to:
It is often very difficult to ...
37
votes
1
answer
50k
views
Can read() function on a connected socket return zero bytes?
I know that read() is a blocking call unless I make the socket non-blocking. So I expect read() call which requests 4K of data should return a positive value ( no of bytes read) or -1 on error ( ...
36
votes
9
answers
125k
views
Unable to run Java GUI programs with Ubuntu
I am learning GUI in Java, and for that I have created a demo program:
import java.awt.*;
public class FrameDemo extends Frame {
public FrameDemo(){
super("Frame Demo");
setSize(...
35
votes
10
answers
29k
views
Is it safe to `delete this`? [duplicate]
In my initial basic tests it is perfectly safe to do so. However, it has struck me that attempting to manipulate this later in a function that deletes this could be a runtime error. Is this true, ...
35
votes
8
answers
18k
views
Activity did not call finish? (API 23)
I am getting the following error and i have no clue as to why its happening.
Error:
08-23 17:07:46.533 22454-22454/com.a.b.c E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.a.b.c, PID: ...
35
votes
8
answers
23k
views
"GenerateResource" task CLR2 runtime error
My app keeps getting this error (I'm using VS 2013, VB.NET, and Windows 8.1, by the way):
Could not run the "GenerateResource" task because MSBuild could not create or connect to a task host with ...
34
votes
19
answers
154k
views
codeigniter CSRF error: "The action you have requested is not allowed."
I enabled the csrf_protection option in codeigniter's config file, and used form_open() function to create my forms. But when I submit the form, this error occurs:
The action you have requested is ...
34
votes
5
answers
44k
views
Stripe payment example is not displaying
I am trying to create a really simple example of using Stripe payments.
This is my code:
// Create a Stripe client
var stripe = Stripe('pk_test_XSHE4IYLLy9qCPe7lW7pK4ZE');
// Create an instance ...
33
votes
3
answers
4k
views
What is "fix" in Haskell? And why does "fix error" print an infinite string? And why also "take 10 $ fix error" does the same too?
Long story short, I was watching this lecture from Simon Peyton-Jones, and at the time 21:41 he shows a quote:
I was squashing a bug, got frustrated, and typed "fix error" in ghci…
So I ...
33
votes
4
answers
119k
views
Call requires permissions that may be rejected by user
I am trying to make an application that sends location updates of a user after every five minutes. I suppose my code is working just fine but i get an error regarding the permissions that are being ...
32
votes
10
answers
84k
views
Android Device Monitor doesn't open - error on log file
In Android Studio when I try running Android Device Monitor, I get the following error on log file:
>!SESSION 2014-12-17 09:57:30.625 -----------------------------------------------
...
32
votes
2
answers
175k
views
C++ error : terminate called after throwing an instance of 'std::bad_alloc'
I use below code on eclipse and I get an error terminate "called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc".
I have RectInvoice class and Invoice class.
class Invoice {
...