FAQ Database Discussion Community


Runtime error on Ideone but works fine on my computer

c,arrays,runtime-error,behavior
I was writing a program for finding out Intersection of two sorted arrays in C language. The code works fine when I compile it with GCC on my machine and run it, but gives a runtime error on ideone.com. Here is the Live link to the below code: #include <stdio.h>...

NZEC error in C code on codechef

c,runtime-error
It shows runtime error NZEC in this code. #include<stdio.h> #include<stdlib.h> int main () { int i,d=0,x; char buffer [256]; //printf ("Enter a number: "); scanf("%s",buffer); i = atoi (buffer); while(i>0) { x=i%10; i=i/10; switch(x) { case 0:d=d+6; break; case 1:d=d+2; break; case 2: d=d+5; break; case 3: d=d+5; break; case...

“Run-time error '13' only when ”Fill down" used?

excel,vba,excel-vba,runtime-error
The following code is designed to only allow an entry of 1, 2 or 3 in the range of cells. If something else is entered, an error message pops up and the entry is undone. The code works perfectly unless the user fills down their response. At that point, a...

Fixing UnboundLocalError revolving around “local variable ' ' referenced before assignment.”

python,runtime-error,praw
I am trying to execute a translation with a module, though keep getting this error message relating to some of my variables: UnboundLocalError: local variable 'usedWord' referenced before assignment Here's my code for the reference: def message_translate(): for message in r.get_unread(): message_text = message.body.lower() messageList = message_text.split() for word in...

No line number shown for run-time error from Python module

python,numbers,runtime-error,line,traceback
Most Python errors produce traceback showing the line number of the offending statement. But for some reason some run-time errors do not. For instance, running "python -m mymodule.py" on a module containing just the two lines: args = {} if len(args > 2): print("this is a run-time error. Should be:...

Apache Hadoop 2.6 Java Heap Space Error

java,apache,hadoop,runtime-error,heap
I'm getting: 15/04/27 09:28:04 INFO mapred.LocalJobRunner: map task executor complete. 15/04/27 09:28:04 WARN mapred.LocalJobRunner: job_local1576000334_0001 java.lang.Exception: java.lang.OutOfMemoryError: Java heap space at org.apache.hadoop.mapred.LocalJobRunner$Job.runTasks(LocalJobRunner.java:462) at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:522) Caused by: java.lang.OutOfMemoryError: Java heap space at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.init(MapTask.java:983) at...

OpenCL causes CL_INVALID_COMMAND_QUEUE if loaded from binary

c++,runtime-error,opencl
I'm struggling saving/loading binary-kernels: If i build from source, the program runs fine. But if i write and load the kernel to binary. I get CL_INVALID_COMMAND_QUEUE calling m_prog.getCommandQueues()[iDevice].enqueueNDRangeKernel. My Platform is in both cases (from binary, from source) Intel and my device is in both cases my CPU. Maybe helpful...

“A Java Exception has occured” what might be the cause?

java,exception,jar,runtime-error,execution
When my jar is run on another computer there occurs a java exception but on my setup it runs ok. They are using Java 1.8? atleast one of them is. and my JDK is also 1.8. Could the cause of this be in META-INF? I also tried sending .class files...

ImageView Causing Crash

android,android-layout,crash,imageview,runtime-error
I am still fairly new to android development so any help is truly appreciated. I have an app that uses the light sensor to read the amount of light and display it on the screen. I am developing it on android studio. Under the title, which is a textView, is...

MonoGame renderTarget2D Error

c#,runtime-error,monogame
I start the game and everything works but after about 15 seconts the game crashes and I get this error : Error : The combination of internal formats of the attached images violates an implementation-dependent set of restrictions. This is my code : using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework; using System.Collections.Generic; namespace...

Getting possible runtime error in java at URI on line judge

java,string,exception,runtime-error
I am trying to solve a problem at URI on line judge but getting possible runtime error. I tried hard to figure out the error but cant understand where my code generates an exception. I know that its due to the code where I'm taking the input and not in...

Outputting multiple reports in access vba causes error 3014, too many tables open

database,vba,reporting-services,runtime-error,ms-access-2010
I am working writing out reports from our company database using VBA and MS Access 2010. I have almost 3000 employees and I need to write out 10 different reports for each employee and then combine those 10 reports into one pdf per employee. These files are then saved in...

Points on the same line

c++,geometry,maps,runtime-error
I was doing a practice question and it was something like this,We are given N pair of coordinates (x,y) and we are given a central point too which is (x0,y0).We were asked to find maximum number of points lying on a line passing from (x0,y0). My approach:- I tried to...

RunTime error in code c++

c++,runtime-error
I am running this code:: #include <iostream> using namespace std; int findNumbers(int number, int power); int findPow(int base, int power); int fact(int n); int main() { int n; cin >> n; cout << findNumbers(n, 1); } int findNumbers(int number, int power) { int powerOf10 = findPow(10, power); int numberTemp =...

What is the difference between Swift 2.0 do-try-catch and regular Java/C#/C++ exceptions

swift,error-handling,runtime-error,swift2
It seems that Swift 2.0 has changed from traditional ObjC (NSError returning) and Swift 1.X (Success/Failure optionals) conventions of runtime error handling, to something that looks very similar to exception handling in languages like Java/C#/C++/etc. Apple has traditionally emphasized use of NSError instead of throwing NSException for runtime errors (vs...

“TypeError: undefined is not a function” for method in schema representing user

node.js,mongodb,express,runtime-error
I'm playing around with the exercises from the 'Mean Machine' book, creating an API and authenticating a user and giving a token. I'm getting a 'TypeError: undefined is not a function' on comparePassword(). What am I doing wrong? Here's my error. server.js:69 var validPassword = user.comparePassword(req.body.password); ^ TypeError: undefined is...

Error comverting date using SimpleDateFormat

java,date,format,runtime-error,simpledateformat
I want to convert a date in format dd MMM yyyy (23 May 2015) to yyyy-MM-dd. The code I'm using: SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd MMM dd", Locale.ITALY); try { Date varDate = simpleDateFormat.parse(date); simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd", Locale.ITALY); date = simpleDateFormat.format(varDate); } catch (ParseException e) { e.printStackTrace(); } The...

Getting InputMismatchException at runtime, but compiles fine

java,exception,runtime-error
import java.util.Scanner; public class DRYeck { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); //declaration scanner System.out.println("What is given:"); System.out.print("How many sides?"); //input the number of Sides that are given System.out.println(""); double input = scanner.nextInt(); System.out.print("How many angles? "); //input the number of Angles that are given...

Running java file in cmd - error given

java,android,eclipse,runtime-error
I recently moved a project from one machine to another but I am now given an error when attempting to run java files on the new machine. I'm trying to run a java file from part of an Android project in command prompt but I am given an error. The...

Segmentation fault: 11 while running C program [closed]

c,runtime-error
I am trying to run the following code but I get Segmentation Fault after I enter the characters. Anybody has any idea of what could be happening here? I created two functions, one of them (palavra) gets one word out of a sentence and then the func compare_dicionario tries to...

Arff Loader : AttributeError: 'dict' object has no attribute 'data'

python,attributes,runtime-error,arff
I am trying to load a .arff file into a numpy array using liac-arff library. (https://github.com/renatopp/liac-arff) This is my code. import arff, numpy as np dataset = arff.load(open('mydataset.arff', 'rb')) data = np.array(dataset.data) when executing, I am getting the error. ArffLoader.py", line 8, in <module> data = np.array(dataset.data) AttributeError: 'dict' object...

library not found for -lPods-AFNetworking

ios,xcode,runtime-error,afnetworking,xcode-6.2
I am getting the following error when using AFNetworking: ''library not found for -lPods-AFNetworking'' "linker command failed with exit code 1 (use -v to see invocation)." I checked for all missing frameworks,and they are all present .Additionally this project works for other people(we pulled it from github) and I'm the...

How can I locate error: *** Error in `./a.out': free(): invalid next size (fast): 0x09767150 ***

c++,runtime-error
My main.cpp and grid.h compile successfully. The problem occurs when I use the function fill after resizing the grid. This produces an error after running the program: * Error in `./a.out': free(): invalid next size (fast): 0x0871d150 * main.cpp #include "grid.h" #include <cstdlib> #if 1 #define log(x) std::cout << x...

Syntax Error Missing Operator VBA

vba,access-vba,runtime-error
I have a Dlookup in Access 2010 that's supposed to pull a value from a query table that counts the number of checkboxes untoggled. When I run it, it gives me a 'Missing operator in query expression' here. Countboxes = DLookup("Expr1", "qryCountUntoggled", "[ProjNo =]" & Me.ProjNo & "'") I can't...

Parse: TypeError: Cannot call method 'split' of undefined at main.js:7:37

javascript,php,parse.com,runtime-error
I am trying to save a ParseObject with a server-created field of "arrWords". However, I keep getting an error of TypeError: Cannot call method 'split' of undefined at main.js:7:37 This error occurs both on my server-side code using the Parse provided SDK and in the Parse Dashboard when entering the...

Difficulties with understanding reallocating using malloc

c,memory-leaks,malloc,runtime-error
I am trying to increase the size of my collection structure using malloc instead of realloc. I'm afraid I've made mistakes while assigning variables because I'm getting: malloc: *** error for object 0x7fd46b404ac8: pointer being freed was not allocated I would really appreciate if you could give me a helpful...

Invalid 'n' argument error in readBin() when trying to load a large (4GB+ audio file)

r,audio,runtime-error,analysis,tuner
I'm trying to load a sample from a 4GB+ mono WAV file (total file duration 24h, I'm loading a 15min slice). library(tuneR) so <- readWave( "file.wav", from = 1, to = 15, units = "minutes" ) This is the traceback Error in readBin(con, int, n = N, size = bytes,...

Why does this simple C program crash at runtime?

c,string,pointers,runtime-error,strcat
I tried the following simple C program but it crashes at runtime without giving any output. What is wrong here? How can I solve this problem? #include <stdio.h> #include <string.h> int main(void) { char *s1="segmentation"; char *s2="fault"; char *s3=strcat(s1,s2); printf("concatanated string is %s",s3); } ...

Segmentation fault spoj assist

c,pointers,struct,segmentation-fault,runtime-error
I have been trying this problem on SPOJ. I have been getting run-time error (SIGSEGV) but the code works perfectly on my computer can someone tell me what is my mistake? #include<stdio.h> #include<stdlib.h> struct node { struct node * next; int x; }; int main() { struct node *head,*temp,*temp2; int...

Code executed after an error has occured

c++,crash,runtime-error
I have compiled and run the following C++ code with g++ version 4.8.2: vector<int> ivec{0,1,2}; int& iref = ivec[1]; for (int i=3;i<100;++i) ivec.push_back(i); iref = 10; cerr<<"After Error"<<'\n'; return 0; The program will crash as expected at line iref = 10;, because the reference is invalidated. But the string "After...

Error on AS3: TypeError: Error #1010: A term is undefined and has no properties

arrays,actionscript-3,exception,runtime-error
I'm trying to create a collision code involving an array of bullets and an array of zombies. But when it tried this code: for(var bu:int = 0;bu < bullets.length; bu++){ for(var zo:int = 0;zo < zombieCount.length; zo++){ if(bullets[bu].hitTestObject(zombieCount[zo])){ stage.removeChild(zombieCount[zo]); zombieCount.splice(zo, 1); stage.removeChild(bullets[bu]); bullets.splice(bu, 1); trace("hot hit") } } } I...

How can I fix the run time error (Heap corruption) in my code?

c++,algorithm,debugging,runtime-error
This is a quicksort code based on the algorithm in the book(neapolitan). the results are true but at the end of debugging it has a run time error and I can't fix it. the error is heap corruption please help me to fix or improve it(if it's wrong). thanks for...

Java Reflections 'NoClassDef' error

java,reflection,runtime-error
I'm trying to browse all classes that have implemented an interface using the custom libary Reflections. Here is my source : public static List<IModdable> getAllModClasses() { Reflections reflections = new Reflections("mod.api.core"); //getting error here Set<Class<? extends IModdable>> classes = reflections.getSubTypesOf(IModdable.class); List<IModdable> modList = new ArrayList<IModdable>(); for (Class<? extends IModdable> c...

Spring Data Neo4j 4.0.0 : StackOverFlowError

import,neo4j,runtime-error,stack-overflow,spring-data-neo4j-4
I am using the Spring Data Neo4j 4.0.0 with Neo4j 2.2.1 and I am trying to import a timetree-like object with 2 levels under the root. The saved object is built and saved at the end and at some point of the saving process, I got this StackOverFlow error: Exception...

Spritekit Swift Terminating Error

ios,swift,sprite-kit,runtime-error
I am trying to make a new app in sprite kit with a random colored background, and all I have done is set the color of the background and creating a ball in the game but it won't launch first I'll give my code and then the error. Here is...

Excel VBA Pivot Cache Type Mismatch Run-Time Error '13'

excel-vba,runtime-error,pivot-table
Thanks for any input on this. I'm trying to make a simple pivot table that is taking data from sheet "5 Month Trending May 15" and putting it onto my Pivot Table sheet called "Errors By Criticality - Pivot". When I try to set the pivot cache range with the...

Getting “method saveas of object _workbook failed” error while trying to save an XLSM as CSV

vba,excel-vba,csv,runtime-error,save-as
I'm trying to save a (macro-enabled) excel workbook as a csv file via this macro, overwriting the old one (below I had the change the name of the folder and the Sheet, but that doesn't seem to be the issue!): Sub SaveWorksheetsAsCsv() Dim SaveToDirectory As String Dim CurrentWorkbook As String...

Figure out the reason for java.lang.NoClassDefFoundError in program for LSD count sort in java

java,string,sorting,runtime-error
I am trying to write a program for LSD (Least Significant Digit) Count sort in Java to sort strings of fixed length by count sort method applied at a particular position of string. It compiles fine but at run time, it gives java.lang.NoClassDefFoundError. I have tried searching net for it...

MatPlotLib RTE xdata and ydata must be same length

python,matplotlib,graph,runtime-error
I'm able to get my plot to animate correctly and display what I need. However when I launch my program, I get a series of errors that don't impact the program, that I would like dealt with. The error comes back to manager.canvas.draw, where MatPlotLib spews out a few hundred...

Accessing data stored in .CSV file

perl,csv,runtime-error
I have written a very simple script that is supposed to output the 2nd element of the 2nd line of a CSV file. However, when I run it I get the following error message: "Uncaught exception from user code: CSV parse error: EIF - CR char inside unquoted, not part...

The ConnectionString property has not been initialized error with VB.NET

vb.net,runtime-error,connection-string
I am trying to fill a datagrid with data from access, but every time I run this program i get an error saying ConnectionString property has not been initialized i have tried everything i know. Can someone please help Private Sub RefreshData() cnn = New OleDb.OleDbConnection cnn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\My_db.accdb"...

'NSInternalInconsistencyException' ?'The layout constraints still need update after sending

ios,ipad,crash,runtime-error,uialertview
I am facing a problem, i have a forgot password option in which i have placed a uialertview with input field. UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Forgot Password?" message:@"Please enter your username to retrieve password" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Ok", nil]; [alertView setAlertViewStyle:UIAlertViewStylePlainTextInput]; [alertView show]; when app is launch it works fine...

W/CameraBase﹕ An error occurred while connecting to camera: 0

java,android,camera,runtime-error,android-camera
There was a similar question but it went unresolved: W/CameraBase﹕ An error occurred while connecting to camera: 0 on camera.open() call I have an app which (naturally) is using the camera. Its been working fine. However with no code changes, between builds, the app started crashing (verified no code changes...

Debug Assertion Failed! Expression: __BLOCK_TYPE_IS_VALID(pHead->nBlockUse) when deleting

c++,debugging,runtime-error,sdl,sdl-2
My friend and I were updating our Tetris like project to be more dynamic (allow any size shapes instead of only 4 tiled shapes), upgrading from arrays to vectors. Everything worked fine before but now we get the error from the title whenever a shape reaches the floor. This is...

RuntimeError: deleteUI: Object 'Animation_Copy_Tool' not found

python,user-interface,runtime-error,maya
Getting this error when pressing the "Close Window" button in my UI. This button should delete the UI window but isn't. Full traceback: Error: deleteUI: Object 'Animation_Copy_Tool' not found. Traceback (most recent call last): File "", line 36, in closeBtnCmd RuntimeError: deleteUI: Object 'Animation_Copy_Tool' not found. # # Animation Copy...

Excel VBA - Deleting objects from sheet triggers run-time error

excel-vba,runtime-error
I am getting this run-time error "The index into the specified collection is out of bounds." The goal is to remove all objects from my worksheet. I was using the code below for quite some time and it worked fine before it suddenly started triggering the error. Dim obj As...

Using method source(edge) of Package Graphs.jl in Julia on Juliabox.org

graph,runtime-error,julia-lang
Take a look at the following simple code example: Pkg.add("Graphs") using Graphs gd = simple_graph(20, is_directed=true) # directed graph with 20 nodes nodeTo = 2 for nodeFrom in vertices(gd) # add some edges... if(nodeTo != 20) add_edge!(gd, nodeFrom, nodeTo) nodeTo +=1 end end for i in edges(gd) # Print source...

Php code shows offset error

php,oop,templates,file-io,runtime-error
I am a beginner of smarty php templating system and I'm going through a book Smarty PHP Template Programming. The very first example on chapter 2 is as follows. In the root folder, we have a file named data.txt with the following information. Title=> Building Websites with VB.NET and DotNetNuke...

Java Printing Wrong Answer to Arithmetic Equation [duplicate]

java,math,runtime-error,println
This question already has an answer here: Is floating point math broken? 18 answers System.out.println("3.14 - 5 = " + (3.14 - 5)); This statement shows 3.14 - 5 = -1.8599999999999999 in console when the answer is -1.86. How would I be able to fix this error and what...

NameError: global name not defined when calling method inside class

function,python-2.7,runtime-error
I'm trying to call a different function inside the same class from my main function and I can seem to figure where the error is. I keep getting this error relating to functions not being defined and I'm not sure how to resolve it: NameError: global name 'results' is not...

C - Print the 5th letter of each word read from a text file

c,file-io,runtime-error
I wanted to find the 5th letter from every word after reading from the text file. I do not know where I am wrong. After entering the file path, I am getting a pop up window reading read.c has stopped working. The code: #include<stdio.h> #include<conio.h> int main(void){ char fname[30]; char...

jQuery cannot load plugin file using ajax before calling the plugin function, thus, gives kind of weird result

jquery,ajax,runtime-error,eventtrigger
I am trying to load jsvascript files at runtime like this <script type="text/javascript" src="jquery/jquery.js"></script> <script type="text/javascript"> var SRC_URL = 'http://localhost/mytest/scripts/'; var scripts = [ 'jquery/colorbox/jquery.colorbox.js', 'app/mbro.js' ]; for (var x = 0; x < scripts.length; x++) { sUrl = SRC_URL + scripts[x]; $.ajax({ url: sUrl, dataType: "script", async: false, success:...

Using comparison function for the key type for sets results in runtime error

c++,c++11,set,runtime-error,decltype
I've read this question and it does not help me. My question is: Why am I getting a runtime error when using a comparison function for the key type for set as below? multiset<Phone, decltype(comp)*> phones { Phone(911), Phone(112) }; //^^^^^^^^^^^^^^^ In VC2013 it gives me this for the above...

Errors while running compiled swi-prolog code

prolog,runtime-error,swi-prolog
If I take the prolog file main_write.pl: main :- open('test.txt', write, S, [encoding(utf8)]), write(S, 'Hello world!'), close(S). and then compile it using a command: swipl -q --toplevel=main --stand_alone=true -o c_main_write -c main_wite.pl I get c_main_write file and when I run it, I get the following errors: ./c_main_write ERROR: /usr/lib/swi-prolog/library/filesex.pl:57: Initialization...

Why is a “user breakpoint” called when I run my project with imported .lib, not when code is inline?

c++,visual-c++,dll,runtime-error,breakpoints
The Situation I am writing a wrapper library for GPIB communications for setting up specific instruments according to a clients specifications to automate some of their processes. I have to use C++ and the old '98 compiler in VC++ 6.0 running on a Windows NT machine to maintain compatibility with...

What is wrong with my code? I want to make a 'card-flip' animation in Android

java,android,xml,runtime-error,android-animation
Here's my Main Activity: public class Main extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); if (savedInstanceState == null) { getFragmentManager() .beginTransaction() .add(R.id.container, new CardFrontFragment()) .commit(); } } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it...

addition of distinct substrings of multiple strings to a Treeset

java,string,nullpointerexception,runtime-error,treeset
Question - You are given n strings w1, w2, ......, wn. Let Si denote the set of strings formed by considering all unique substrings of the string wi. A substring is defined as a contiguous sequence of one or more characters in the string. More information on substrings can be...

VBA Run-time error 3075

access-vba,syntax-error,runtime-error
I'm trying to write an SQL query in VBA but it's not working. Not sure why, its a simple SELECT query. Below is my SQL query: strSQLPharmContact = "SELECT TOP 1 tbl_Contacts.ID, tbl_Contacts.idSite, tbl_Contacts.role, tbl_Contacts.name, tbl_Contacts.email, tbl_Contacts.phone, tbl_Contacts.involvement, tbl_Contacts.Taken" _ & "FROM tbl_Contacts " _ & "WHERE (((tbl_Contacts.role)= 'Pharmacist') AND...

Sudoku Solver - Scilab

algorithm,runtime-error,sudoku,backtracking,scilab
I wrote a program in SciLab that solves sudoku's. But it can only solve sudoku's that always have a square with 1 possible value. Like very easy and easy sudoku's on brainbashers.com . Medium sudoku's always reach a point that they do not have a square with 1 possible value....

App Crashes But Method Still Works?

java,android,exception-handling,android-asynctask,runtime-error
I am trying to delete an item in my listview but keep getting an ArrayOutOfBoundException yet my LOG shows successful deletion from my Localhost and if you open it back it reflects the changes... Not to sure how to fix the Exception that causes my app to crash? Any Ideas?...

Logic error when adding to a database

mysql,database,vb.net,runtime-error
In my program, the user has the ability to group students together into a class. In my code, there seems to be some weird logic error; my database links a group to the students with a StudentsGroups table. While an input should look like this: +---------------------+----------------------------------+ | studentsgroups | groups...

How can I get rid of segmentation error?

c++,runtime-error
My goal is to find the maximum value of (minimum of p consecutive number)*p. Here 1<=p<=N and 1<=N<=100000 and 1<=number<=1000000.I have partially solved the problem.But for some cases I am getting this runtime error. " terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc This application has requested the...

ANOVA with repeated measures factors: Error using model.table

r,runtime-error,anova
I am following the example in this webpage about Single Factor Designs With Repeated Measures. I the end i wish to compute the Grand mean using model.tables. Everytime i get this error message: model.tables(aov.out,"means") Error in FUN(X[[1L]], ...) : eff.aovlist: non-orthogonal contrasts would give an incorrect answer these are my...

Error when i try to install npm with putty

amazon-ec2,npm,install,runtime-error
here is what i get when i try to execute this command (the 3rd command - in ec2 amazon) The next step is to install NPM(Node package manager). Type the following commands: 1. git clone https://github.com/isaacs/npm.git 2. cd npm **3. sudo make install** and here is the error i get:...

Sudoku Solver Scilab

algorithm,runtime-error,sudoku,backtracking,scilab
I am trying to write a program that solves sudoku's using backtracking. I'm using scilab at the moment. I keep getting errors in my recursive algorithm, I must be doing something wrong. Any help is welcome. I put my error code at the bottom. /////////////////////////////////////////////////////////////////////////// ////////////////////////// Check Sudoku /////////////////////////////// ///////////////////////////////////////////////////////////////////////////...

Class destructor, runtime error: Unhandled exception - Stack overflow

c++,runtime-error,stack-overflow,destructor,unhandled-exception
The destructor for List appears to work, but having trouble with the destructor for Element and List_iter: Unhandled exception : 0xC00000FD: Stack overflow (parameters: 0x00000001, 0x002E2F78). List: #ifndef GUARD_List_h #define GUARD_List_h #include "Element.h" #include "List_iter.h" template <typename T> class List { public: List() : begins(new Element<T>), ends(new Element<T>), Element_count(0) {...

PySide.QtGui RuntimeError: '__init__' method of object's base class not called …but it was

python,initialization,runtime-error,qtgui
Some environment basics Python Version: 3.4.2 OS: Windows 8.1 Searching so far, I suspect this other question is related to my issue at hand, but I'm not sure how I'm replicating enough of the same conditions--probably my lack of in-depth python knowledge. Simplified code to reproduce issue: Base Class from...

JavaScript runtime error: Unspecified error

javascript,runtime-error
My requirement is to return data URL. But, when I run the application, there is an run-time error: JavaScript runtime error: Unspecified error. Here is the code that I have used. Temp path is the path where is location of image is. var canvas = document.createElement("canvas"); var context = canvas.getContext("2d");...

Run time error 462 Access VBA using Excel

excel,ms-access,access-vba,runtime-error
I occasionally get a run time error when trying to open/manipulate Excel files using Access VBA. The error is "Run-Time error '462': The remote server machine does not exist or is unavailable What is frustrating is that the error occurs only for certain files and not others and in different...

Error on SIMPLE ANDROID OCR

android,android-studio,runtime-error,ocr,tess-two
When I tried the Simple Android OCR (https://github.com/GautamGupta/Simple-Android-OCR) in ANDROID STUDIO it gave me a runtime error as shown in the picture. Can anyone help me with this? ![Runtime error occured when tried to run][2] 06-03 12:44:31.904 17051-17051/com.startup.vrvijay.liccamera E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.startup.vrvijay.liccamera, PID: 17051 android.util.SuperNotCalledException: Activity {com.startup.vrvijay.liccamera/com.startup.vrvijay.liccamera.MainActivity} did...

Receiving unlink() error after it has been successful

php,runtime-error,unlink
this might be a really stupid question but I am getting the following error after the code has successfully deleted the file and I can not work out why, the code is very simple it gets the name and path of the file to be deleted from the database and...

is there a difference between running an executable and debugging it in Visual Studio?

c++,visual-studio-2010,winapi,runtime-error,visual-studio-debugging
I'm writing a piece of code in Windows which uses both winapi messagebox and some dynamic memory for RS232 application I saw a strange situation when the same application creates different error when I run it in debugging mode (using VS2010 and step-in debugging) and running it as an executable...

Compile command works but Run command is not responsive

c++,runtime-error
Here is my c++ code to read an integer, double it and then print it out on the screen: #include <iostream> int doubleNumber(int x) { return 2 * x; } int main() { using namespace std; int x; cin >> x; cout << doubleNumber(x) << endl; return 0; } I...

JPA ERROR: relation does not exist

java,postgresql,jpa,runtime-error,eclipselink
I can't figure out what I'm doing wrong. I'm learning JPA mapping to a relational DB, by following some tutorials on the web, but can't find one that is straightforward. When I run my project, it gives me an error. I guess it's upon persisting em.persist();. If I comment that...

Checking cells contain data before printing - Run-Time error

excel-vba,runtime-error
I've been doing some work on a spreadsheet for work that I've, up until this point, been able to solve issues for hunting around online. I'm relatively new to VBA and have built most of this from researching online so it may be a pretty rubbish way to do it....

Python fibonacci code error

python,runtime-error,fibonacci
I'm trying to write code that iteratively finds the nth fibonacci number. I've written my code below (using a bottom-up approach) but I get the following error. Can you please explain what the error is? Thanks. def fib2(n): if n == 1 or n == 2: return 1 myarr =...

access sub runs once then Error '91': object variable not set

excel,vba,ms-access,access-vba,runtime-error
Thank you for any help in advance, I have an Access database which contains the following code. It is setup to open an defined excel file, locate the last row and add 1 to the value of that row in the next row below, save etc... It does this the...

Symfony 2 unable to pass entity repository to form

php,forms,symfony2,runtime-error
I have a form with a drop down and a set of checkboxes, i've used entity form field type to get the values via DB. it works with one of the entity but not with the other. i have this code seperately inside AddBadgesType there is NO AddBadges entity <?php...

'str' object is not callable in python

python,visual-studio,runtime-error
I'm calling this function password() in the password() function, hoping that it would start over. Then comes the 'str' object error. code: import time def sleepFor(sleepForInt): time.sleep(sleepForInt / 1000) def newScreen(): # adte it says for itemNew in range(26): print("\n") def logo(): # ^~- newScreen() print("\t\t\t\tLeigh Studio") indent(6) return None...

What causes a runtime error in this code

c++,runtime-error
I'm working on the UVA problem 12468 Zapping. I've checked several test cases and it works successfully but when I submit this solution to UVA online judge it judged it as runtime error. Where can the error be? Please explain your answer. #include <iostream> #include <cmath> using namespace std; int...

runtime error in customAdapter

java,android,listview,runtime-error,android-arrayadapter
I'm trying to create a list of Card view using a custom adapter. I have defined the layout of a single row of list, consisting a card view and imageview/textviews in it, in a separate .xml file. I'm using a custom srrsy adapter. My app crashes when I try to...

What does these errors mean? Assembly Language

assembly,visual-studio-2013,runtime-error,masm,xor
; This program checks for even or odd parities inside of an array. Displays 1 if even or 0 if odd. Include Irvine32.inc TRUE = 1 FALSE = 0 .data str1 BYTE "Even Parity", 0 str2 BYTE "Odd Parity", 0 str3 BYTE "The block of data under checking is: ",...

How does function named connect() prevent MPI C program from running?

c,function,runtime-error,mpi,main
I was writing a project using MPI for a parallel programming course, and decided to name one of my functions connect(). But whenever I tried to mpirun the program (using recent versions of Open MPI on Linux and OS X), I would receive output from the connect() function, even if...

Initializer list reference type safety

c++,compiler-errors,runtime-error,pass-by-reference
Below is some test code I expect to print "Hello world" twice. In fact, it prints "Hello world" once and then throws an Access Exception. The code to print both of the messages are near-identical: #include <iostream> #include <vector> using namespace::std; class VectorWrap1 { public: vector<string>& v; // *** Reference...

re-alloc Invalid Pointer runtime error

c,pointers,runtime-error,realloc
Code below merges 2 sorted arrays A and B of size n1 and n2 respectively. Merged output needs to be stored in A. (No need to go through entire code) Doubt: While re-allocating A, I am getting a run-time error. Why? int* temp = (int*)realloc(A,sizeof(int)*(n1+n2)); if(temp != NULL) A =...

non-numeric argument to binary operator, AR(1) model

r,for-loop,runtime-error
I have an exercise to do where I have to run the following AR(1) model: xi =c+φxi−1+ηi (i=1,...,T) I know that ni ~ N(0,1) ; x0 ~ N(c/(1-φ),1/(1-φˆ2)); c= 2 ; φ = 0.6 I am trying to do a for loop. My code is the following: n <- rnorm(T,...

error(“some string”) only shows error, not error + string

c++,error-handling,runtime-error
I'm learning c++ through Stroustrup's PP&P Using C++ and I've got to the chapter five which says: "In fact, in std_lib_fa cilities.h we supply an error() function that by default terminates the program with a system error message plus the string we passed as an argument to error()." Here is...

checking whether a file with header is empty

excel,vba,excel-vba,runtime-error
I am writing a VBA code to check whether some other files are empty or not. These files all have headers so I want to check whether the "A2" cell is empty or has a zero length. My code is below, file1, dir1, dirfile1 are filename, directory, path. I am...

Microsoft Access VBA Run Time Error 2465

vba,ms-access,access-vba,runtime-error,ms-access-2010
I am currently working on a form to update fields in my database. The button (cmdFind) is meant to find the record for the part # (entered into text box txtFindPart), and then populate the data into In1-52 and out1-52. When I run it I get Run-time Error 2465 Microsoft...

Android Studio can't find Resuorces

java,android,android-studio,runtime-error,getresource
This is the error message which shows up when I run the apk on my virtual device. 05-03 13:00:03.652 2354-2354/de.hochrad.hochradapp I/art﹕ Not late-enabling -Xcheck:jni (already on) 05-03 13:00:05.966 2354-2354/de.hochrad.hochradapp D/AndroidRuntime﹕ Shutting down VM 05-03 13:00:05.970 2354-2354/de.hochrad.hochradapp E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: de.hochrad.hochradapp, PID: 2354 java.lang.RuntimeException: Unable to start activity ComponentInfo{de.hochrad.hochradapp/de.hochrad.hochradapp.MainActivity}:...

java scanner does not accept two words with space in between

java,runtime-error,java.util.scanner,space
I'm trying to create a simple project that will ask the user true or false and if true then the scanner is gonna keep storing the category name in an arraylist. And it works fine until you enter two words with a space in the category name "first second" for...

Error when executing insertion query

sql,runtime-error,duplicate-removal,insertion
How to avoid duplicate data before inserting. I used the below code but I'm getting this error. No column name was specified for column 1 of 'temp'. No column name was specified for column 2 of 'temp'. No column name was specified for column 3 of 'temp'. No column name...

Error (Run-time error 5) will not raise when “On error resume next” is active

vba,error-handling,runtime,runtime-error
I've provided the actual code I'm using below. The exact condition I'm trying to handle is the strCurrentRev argument as a zero-length string. (e.g. strCurrentRev="") If I comment out the error handling statements, trying to execute the ASC method on a zero-length string throws Run-Time Error 5 for "invalid procedure...

2D Array of objects with virtual child methods -> “vtable referenced from” error

c++,arrays,xcode,runtime-error,virtual
In my header for the Tile class, I defined a pure virtual method with no definition in the implementation: virtual void setVals(int ID) = 0; The two classes which inherit Tile (Terrain and Actor) both overwrite the setVals method with the implementations: void Terrain::setVals(int ID){ switch(ID){ case 1 : GFX_...

What is wrong with Nodejs?

node.js,express,runtime-error,middleware,multer
I am using multer to handle upload image. app.use(multer({ dest: './public/photos', rename: function (fieldname, filename) { return filename+Date.now(); }, onFileUploadStart: function (file) { console.log(file.originalname + ' is starting ...') }, onFileUploadComplete: function (file) { console.log(file.fieldname + ' uploaded to ' + file.path) //a='asass'; done=true; } })); app.post('/api/photo',function(req,res){ if(done==true){ //ERROR here...

Error in running program in hadoop?

java,hadoop,runtime-error,bigdata
My program in hadoop 2.7 of wordcount gives error on terminal on running even when it doesn't shows any error in eclipse . hadoop jar WordCount.jar WordCount user/amandeep/file.txt wordcountoutput Error shown is below :- Exception in thread "main" java.lang.ClassNotFoundException: WordCount at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at...

How to determine data point that gives error?

r,error-handling,runtime-error
I have a code in R that reads, one line at the time, through a data.frame and if a certain set of conditions is met, changes the value of one of the variables in the data.frame. In pseudo code: for(i in 1:nrow(data)) { if (conditions on data[i,]) { change value...

Android SQLIte No Such Table Error - On Click

android,database,eclipse,sqlite,runtime-error
Good afternoon, I am trying to create a database for a monthly assessment form as part of my, it will be the second table of my application first being login details. I followed the same format but am getting "NO SUCH TABLE" followed by my variable name. I was hoping...

Android Retrofit error HTTP method annotation is required (e.g., @GET, @POST, etc.)

java,android,runtime-error,retrofit
I am having an issue with my Retrofit code, and I seem to be either missing something or not fully understanding what I need done. Here is a full copy of my error. I am not using ProGuard, but I did already apply all of the exceptions are you suppose...

Can't run libgdx app on Android emulator

opengl,libgdx,runtime-error
I get this error: Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Libgdx requires OpenGL ES 2.0 I tried to change the target api and marked use GPU in the emulator configuration. but still get error. what else can I try?...