Skip to main content

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
Filter by
Sorted by
Tagged with
653 votes
11 answers
194k views

PHP expects T_PAAMAYIM_NEKUDOTAYIM?

Does anyone have a T_PAAMAYIM_NEKUDOTAYIM?
Peter Turner's user avatar
  • 11.3k
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 ...
DSF.Inc's user avatar
  • 3,181
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 ...
Zombies's user avatar
  • 25.6k
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: (...
Jeroen Wyseur's user avatar
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 ...
Jameel Moideen's user avatar
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)) ...
ramanunni.pm's user avatar
  • 1,649
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....
ALEXintlsos's user avatar
  • 1,879
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"
Daniel Morris's user avatar
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 ...
ajay's user avatar
  • 3,335
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 &...
Ido Do's user avatar
  • 981
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 ...
Program-Me-Rev's user avatar
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 ...
Gianmarco Broilo's user avatar
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://...
Paradise's user avatar
  • 1,468
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(...
mlevit's user avatar
  • 2,706
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 ...
Ky -'s user avatar
  • 31.7k
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 ...
eli's user avatar
  • 761
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 ...
CodeMouse92's user avatar
  • 6,888
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 ...
legolas's user avatar
  • 735
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 ...
László's user avatar
  • 4,114
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), ...
firedev's user avatar
  • 21k
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 ...
arunkumar.p's user avatar
  • 1,775
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 (...
vijaymsc's user avatar
  • 611
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 ...
Slicekick's user avatar
  • 2,169
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(...
Mihai Neacsu's user avatar
  • 2,075
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 ...
David Biga's user avatar
  • 2,793
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 ...
MilkyDeveloper's user avatar
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 ...
Range's user avatar
  • 709
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 ...
cbloss793's user avatar
  • 1,649
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....
mcan's user avatar
  • 2,042
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 ...
lagoon's user avatar
  • 6,507
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] ***** ...
Aggressor's user avatar
  • 13.5k
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 ...
Eric's user avatar
  • 419
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 ...
here_to_learn's user avatar
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 ...
Alex's user avatar
  • 717
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 ...
Prashant's user avatar
  • 2,055
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; $...
user avatar
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 ...
avrono's user avatar
  • 1,670
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 ( ...
kumar's user avatar
  • 2,736
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(...
codeomnitrix's user avatar
  • 4,199
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, ...
Cristián Romo's user avatar
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: ...
olfek's user avatar
  • 3,380
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 ...
soulblazer's user avatar
  • 1,198
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 ...
Mojtaba's user avatar
  • 854
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 ...
daniel8x's user avatar
  • 1,070
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 ...
Enlico's user avatar
  • 26.6k
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 ...
Aman Verma's user avatar
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 ----------------------------------------------- ...
Doug's user avatar
  • 1,803
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 { ...
andressophia's user avatar

1
2 3 4 5
197