Do not use this tag to refer to the Stack Overflow website. If you have a question regarding the site, please go to http://meta.stackoverflow.com. A stack overflow occurs when too much memory is used on the call stack.
-1
votes
0answers
7 views
How to detect the origin of stack overflow on pure data
Please dear people, I'm dealing with a stack overflow on a big patch on pure data Pd and I would like to know how can I see the points which is causing it.
Thank you
2
votes
4answers
69 views
Stack Overflow Error on recursion java
I need to find the longest way (from bigger to lower) between numbers in array.
I've tried to write recursive function and got java.lang.StackOverflowError, but for the lack of knowledge I didn't ...
1
vote
1answer
23 views
SystemStackError (stack level too deep) when deleting a record
I'm getting a Stack Overflow error when deleting a record:
SystemStackError (stack level too deep):
app/controllers/orders_controller.rb:18:in `destroy'
I found another System Stack Error ...
-1
votes
0answers
59 views
File.Exists throws a stackoverflow exception [on hold]
The code is really straightforward, I've checked the location the dbFile value directs to and it's legit. Moreover, I get no information whatsoever in the exception object, only that it's a stack ...
0
votes
0answers
41 views
Encountered System.StackOverflowException in .NET3.5&AnyCpu when return a struct
I have a .net windows forms application target both .Net framework 3.5 and 4 , and target to any cpu, when I start the app with Debug(F5) in visual studio target .net 3.5, I encountered ...
0
votes
1answer
21 views
Android: Non-fatal Exception: java.lang.StackOverflowError at android.widget.TextView.canMarquee(TextView.java:6970)
I am getting stackoverflow exceptions while running my android app for sometime on devices running with OS Jelly Bean(4.2.1). This textview is a part of a item in recycler view. SOE caused the app to ...
-2
votes
0answers
41 views
overwriting eip with buffer address filled with shellcode isn't working
im trying to overflow a simple vulnerable code that i made for practice.
this is the code:
#include <stdio.h>
void prin()
{
char buffer[64];
gets(buffer);
}
int main(int argc, char **...
0
votes
2answers
48 views
JPA: When do eager fetching result in StackOverflowError?
Do we have some set of rules when we should abstain of using FetchType.EAGER?
I have heard that some of JPA frameworks (eg. Hibernate) should resolve cyclic dependencies.
Do we have some advice ...
1
vote
1answer
37 views
Importing databases in prestashop
I have a big database in Access with products I want to insert in Prestashop!
I've read about the database import in prestashop but didnt find anything about access db import. Is there a way to import ...
0
votes
1answer
44 views
Java Netbeans - How to draw on a Jpanel inside a Jpanel? (Panel constructor)
Im trying to learn Java and i have now met Jpanels, and since i'm using Netbeans i can use their "constructor" in which i can design the panel i want inside my frame.
With netbeans i made a panel ...
0
votes
0answers
56 views
Hibernate - Errors while querying, “loop” of exceptions
I'm writing again because I'm facing another apparently inexplicable problem with Hibernate. It all seems to work fine, but when I try to make a simple query it gives me a number of errors (the list ...
0
votes
4answers
42 views
Why do I get Infinite loop(Stackoverflow error) while creating an object in a class with constructor?
This is my code :
public class ConstructorsDemo{
public static void main(String a[]){
Cons1 c1 = new Cons1();
}
}
class Cons1{
Cons1 c = new Cons1();// the error is in this ...
-2
votes
0answers
60 views
Lazy<IList<T>> initialization throw 'System.StackOverflowException' [closed]
I have a list initialization which throwing 'System.StackOverflowException' , it is declared like this:
struct MyMetaData{
int Id;
int Value;
ComplexType Type;
}
public static class ...
0
votes
0answers
42 views
java.lang.StackOverflowError on Drawable.draw
When using Custom Class show a pic on TextView,
I use spanned to show A NetImage on TextView, \
code like Below
Spanned spanned = Html.fromHtml(string, new NetImageGetter(mContext, holderNormal....
0
votes
1answer
50 views
Segmentation fault on function call in C [closed]
I am solving the problem of finding the k-th smallest element in an array using a MaxHeap. My C code is as follows :
#include <stdio.h>
#include <stdlib.h>
/**
* @input A : Read only ( ...
0
votes
0answers
60 views
StackOverflowException catch C# on UWP (Windows10)
I have some recursive code in my windows10 App (UWP platform)
I know that there are no direct way to catch StackOverflowException on C#, but there is a way by using Thread class on Windows Forms API. ...
-3
votes
1answer
49 views
StackOverflowError on compilation
I have been receiving a StackOverflowError when I try to compile my Java project in IntelliJ IDEA 15.0.3.
I have read through the internet and it told me that it could be of recursive methods and ...
0
votes
1answer
28 views
Issues with tail recursion in file operations(C#)
I'm writing a program to find all files of a type on a computer(currently image files) and I'm using tail recursion to search directories in this fashion:
private void ImageSearchByDir(DirectoryInfo ...
2
votes
1answer
48 views
Java regex to match start/end tags causes stack overflow
The standard implementation of the Java Pattern class uses recursion to implement many forms of regular expressions (e.g., certain operators, alternation).
This approach causes stack overflow issues ...
1
vote
1answer
28 views
How to combine non-tail recursion + effective and synchronized memoization + bounded stack consumption in Clojure?
How can one combine non-tail recursion with synchronized memoization and bounded stack consumption (thus no risk of stack overflow) in Clojure? By synchronized memoization I mean that the memo/cache ...
0
votes
1answer
40 views
DNX causing StackOverflowException?
I have now searched the entire Google (feels like) for this type of related problem, and found nothing...
I have a .Net 4.5.1 website, when building I get a StackOverflowException, with the following ...
1
vote
0answers
71 views
Why doesn't this overflow correctly?
I'm trying to over the following function:
void function(int param){
char overflow[32];
gets(overflow);
}
I'd like to gain control of the integer parameter. This is an x86 platform.
This ...
1
vote
2answers
52 views
how to catch stack overflow error in golang
Is there any way to catch stack overflow error in golang? Currently I'm using go recover() do this job(below code snippet), looks like stack overflow error can't be caught.
defer func() {
...
0
votes
0answers
32 views
StackOverflow error wrt Spring when adding generic field to object
I have the following objects:
public abstract class Parent {
....
}
class BlueChild extends Parent {
List<GreenChild<YellowChild>> foo;
//getter and setters
}
class ...
0
votes
1answer
46 views
Stack content for g++4.8
I have written this simple piece of code for testing buffer overflow:
#include <stdio.h>
#include <string.h>
using namespace std;
int f(int x, int y, char *s){
char buf[4];
strcpy(...
0
votes
1answer
41 views
Stackoverflow exception in VS 2015 but not in VS2010 how?
There is a webservice project written in VS2010 few years ago and the problem is all code exactly same (same PC , Tested with vs2010 and 2015 with the same code) but in vs2015 it gives error on debug ...
0
votes
3answers
57 views
Why is this code not creating files?
Im trying to create files with those methods:
private boolean createFileMain(String path){
File file = new File(path);
if(file.isDirectory()){
return this.createDirectory(file);
} ...
1
vote
0answers
52 views
How to pack module into module with the same name with ocamlopt?
In OCaml, I can create module with nested module with the same name.
module X = struct
module X = struct
let x = 42
end
end
Also I can pack it with ocamlc:
ocamlc -for-pack X -c X.ml
...
0
votes
1answer
45 views
1. Why size of stack memory is fixed? [closed]
If there is only stack memory, no heap memory , what are the problems will be created? i think it will make programs very fast.
i know objects are created in heap memory.
but if objects are created ...
0
votes
0answers
49 views
iOS - Creating mach threads: How to safely setup thread stack
The mach thread api for thread creation (create_thread_running) expects the user to manually set the stack pointer for the new thread's state.
Is it safe to use any-old vm_allocate'd memory block for ...
-1
votes
1answer
35 views
SBT compile StackOverflowError
Debug shows (in line loop(null, this, this) of List.scala:
and the line parents mapConserve this of TypeMaps.scala:
How can I check what line is causing it?
SBT compile takes 361 s and it ...
0
votes
0answers
12 views
Are there any student ambassadors progragramme for stackexchange [migrated]
I join the community recently and i love it so much and i start to encourage my friends to discover it too, I'm asking if there are any ambassador programe for students ? are there any possibilities ...
0
votes
0answers
33 views
Recursive function using volley out of memory error
I am using volley library to communicate with my database.I use recursive function to check contineously my database but after a period of time seems like the recursive function stop working and i ...
0
votes
0answers
12 views
How can get my Drafted Example in Documentation Beta? [migrated]
I have drafted on example in Existing topic at end of all done I have saved as drafted, but after redirecting to another page and cam back that topic I didn't see any link or button drafted example.
...
0
votes
0answers
11 views
How to make key words of code highlight on SO [migrated]
How to make key words of code highlight on SO? When I choose C tags, it does. But sometimes the code is not C.
0
votes
0answers
40 views
How can I make this activity in a different way? RecyclerView inside RecyclerView
Vertical scrolling RecyclerView
FieldRecyclerView:
<android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/...
0
votes
0answers
22 views
Strassen Multiplication Algorithm StackOverFlow Error
I am working on implementing Straussen's Multiplication. Below is my method for multiplying them in a Divide and Conquer Approach.
public static double[][] multiply(double[][] A, double[][] B)
{ ...
-4
votes
1answer
39 views
How to save data in a for loop by Python
I am new in Python programming. I want to save the field output request
[mdb.models['Model-1'].fieldOutputRequests['F-Output-1'].setValues(variables=('S', 'U', 'SF'))]
as a text file for each loop ...
-3
votes
1answer
42 views
LongStream Java rangeClosed reduce - How to avoid a negative return?
When n is equal to 50 this function returns a negative number, is there a substitute for LongStream like a "BigIntegerStream" that allows 'n' larger?
public static long factorial(int n) {
if (n &...
1
vote
2answers
23 views
StackOverflowError - Redundant call onTextChanged
(I'm learning english... therefore, forgive me)
I'm making a app to convert bin, dec and hex. I have three EditText (Number type) and I want to do something when one of the tree contents have changed....
0
votes
2answers
64 views
Why does default value for DatePicker SelectedDate cause StackOverflow exception?
I'm new to WPF (and stackoverflow!) and have been searching for a simple way to set the default date in a DatePicker control. I would like to display the current date when the main view is opened, ...
0
votes
0answers
8 views
GNU compile-time stack checking
Our application crashed immediately upon entering main with the following:
0x0000000000492148 in main (argc=Cannot access memory at address 0x7fffff7689fc)
After using objdump we realized there ...
0
votes
1answer
24 views
Cause stack overflow through recursion
I have been working on implementing a priority queue of strings in c++ using a binary tree.
As I think the simplicity of recursion is great. I am not going to post code as I have already spent a long ...
-1
votes
1answer
43 views
How to set stackoverflow page to local time zone
Since I have became a user on stack-overflow, I'm having issues with the time stamps on questions and comments. The time stamp is not taking my local time zone. I have looked around in the profile ...
0
votes
0answers
36 views
In ES6, how the “Tail Calls” avoid the stack overflow? [duplicate]
In ES6 new features, I cannot understand the "Tail Calls", Calls in tail-position are guaranteed to not grow the stack unboundedly. Makes recursive algorithms safe in the face of unbounded inputs.
...
0
votes
1answer
39 views
rich:fileUpload stackoverflow error at AjaxOutputTracker.getAjaxOutputs
I am currently migrating to richfaces 4.5, JSF2.2 and also add primefaces-6.0 (for other feature that is not supported by richfaces)
I am using Tomcat 8 for the server.
At the xhtml file, I just put ...
0
votes
3answers
60 views
What does it mean by saying “It is impossible to recover from errors” in java? [duplicate]
Here says that it is impossible to recover from errors.
I am not sure what does it mean because I can catch Error just like Exception.
Eg:
public static void main(String args[]) {
while (true) {
...
0
votes
1answer
58 views
Recursive Stack Overflow & Odd Object Reference Java
private boolean[][] computeMainOutline(boolean[][] outline) {
int pixelValue[][] = new int [width][height];
for(int x = 0; x < width; x++)
for(int y = 0; y < height; y++)
...
-4
votes
1answer
49 views
Homework StackoverflowError
I'm doing some school exercises about implementing interfaces and I've already got the workspace and Test classes provided for me. What I have to do is basically implement the methods, run the Test ...
-5
votes
1answer
73 views
How to solve the “Exception in thread ”Thread-1“ java.lang.StackOverflowError” ? in my Application
In my application i am accessing data from another system Database through ip address communication.
So for that,if database system is offline at that time exception is occur during connection so in ...