stack-overflow

Stackoverflow: Caused by nested views?

那年仲夏 提交于 2019-12-28 02:08:10
问题 I'm having a crash when refreshing a view inside a SlidingTray (custom SlidingDrawer coming from the top). I'm not sure what causing it.. but my first guess is that it's due to the number of nested layouts... What is the maximum number of nested layouts? Is it device specific, how can I be sure if that's the cause? If it's not, any of these things is causing it.. what is? The stacktrace: E/AndroidRuntime( 2199): FATAL EXCEPTION: main E/AndroidRuntime( 2199): java.lang.StackOverflowError E

Segmentation fault in assembly code + C

♀尐吖头ヾ 提交于 2019-12-25 12:47:15
问题 I am trying to debug a segmentation fault in my assembly code. Here is the GDB output Program received signal SIGSEGV, Segmentation fault. 0x0000000000424c50 in restore_context() (gdb) disassemble restore_context Dump of assembler code for function restore_context: 0x0000000000424c44 <+0>: mov 0x8(%rsp),%rax 0x0000000000424c49 <+5>: mov 0x38(%rax),%rsp 0x0000000000424c4d <+9>: mov (%rax),%rdx =>0x0000000000424c50 <+12>: mov %rdx,(%rsp) 0x0000000000424c54 <+16>: mov 0x18(%rax),%rbx

StackOverflowError while implementing QuickSort

烂漫一生 提交于 2019-12-25 09:29:46
问题 I am trying to implement an QuickSort algorithm on an ArrayList. However, I am getting a Exception in thread "main" java.lang.StackOverflowError at sorting.QuickSort.quickSort(QuickSort.java:25) at sorting.QuickSort.quickSort(QuickSort.java:36) at sorting.QuickSort.quickSort(QuickSort.java:36) at sorting.QuickSort.quickSort(QuickSort.java:36) at sorting.QuickSort.quickSort(QuickSort.java:36) ... I am not sure as to why is there an overflow. Below is my implementation: public static void

Applets loading very slow on Java 8u 45 with stack overflow error while it works fine with Java 7

牧云@^-^@ 提交于 2019-12-25 06:14:24
问题 I am getting a Stackoverflow error on Java Console while opening the Applets over network on Java Version 8 build 1.8.0_45-b15 . The applet gets loaded but takes around 8 minutes and the same works fine in any of the Java 7 versions over the network . Can anyone please help .. The stacktrace is as follows . java.lang.StackOverflowError at java.security.AccessController.doPrivileged(Native Method) at sun.security.provider.PolicyFile.getPermissions(Unknown Source) at sun.security.provider

Applets loading very slow on Java 8u 45 with stack overflow error while it works fine with Java 7

做~自己de王妃 提交于 2019-12-25 06:14:11
问题 I am getting a Stackoverflow error on Java Console while opening the Applets over network on Java Version 8 build 1.8.0_45-b15 . The applet gets loaded but takes around 8 minutes and the same works fine in any of the Java 7 versions over the network . Can anyone please help .. The stacktrace is as follows . java.lang.StackOverflowError at java.security.AccessController.doPrivileged(Native Method) at sun.security.provider.PolicyFile.getPermissions(Unknown Source) at sun.security.provider

PdfCopyForms in ITextSharp causing a Stack Overflow error

假装没事ソ 提交于 2019-12-25 02:47:29
问题 In this method I am trying to grab the input fields from one PDF document, paste them onto another document, and print out the result as a pdf file. The result would be a new PDF file which has the input fields of the first PDF and the static content of the second PDF. I wrote some code that I thought would perform this task, but I ran into a StackOverflow error each time "copier.close()" is executed. This is the error that it throws: An unhandled exception of type 'System

PdfCopyForms in ITextSharp causing a Stack Overflow error

依然范特西╮ 提交于 2019-12-25 02:47:11
问题 In this method I am trying to grab the input fields from one PDF document, paste them onto another document, and print out the result as a pdf file. The result would be a new PDF file which has the input fields of the first PDF and the static content of the second PDF. I wrote some code that I thought would perform this task, but I ran into a StackOverflow error each time "copier.close()" is executed. This is the error that it throws: An unhandled exception of type 'System

Why is my FormClosing event handler throwing a stack overflow exception?

拜拜、爱过 提交于 2019-12-25 02:46:54
问题 I want to validate input on two textboxes on my form if the user clicks the close/"red X" button. I assigned an event handler to the FormClosing property of the Form, but when I click it, the program goes into an infinite loop and then throws the stack overflow exception. Here is my code: private bool _Cancel(object sender, EventArgs e) { if (((this.textboxFirstName.Text != null) && (this.textboxFirstName.Text != string.Empty)) || ((this.textboxLastName.Text != null) && (this.textboxLastName

When would I write a non-tail recursive function in Scala?

浪子不回头ぞ 提交于 2019-12-25 02:30:01
问题 Since non-tail recursion calls use stack frames like Java does, I'd think you'd be using it very sparingly, if at all. This seems however severely restrictive given it's one of the most important tools. When can I use non-tail recursion functions? Also, are there plans to remove the memory restriction in the future? 回答1: In the same situations where it would be safe in Java, where the dataset you are working with never grows huge and the performance isn't critical/hot path of your app. Also,

SQLite stack overflow when running a bulk INSERT OR REPLACE with 500 rows: why?

随声附和 提交于 2019-12-25 02:15:09
问题 (See update at bottom of question for more to-the-point info.) My code is constructing a SQL bulk INSERT OR REPLACE query with 500 rows (4 int32 and 2 int64 fields, for a total of 6 columns). From here and from experience, I know that the maximum limit for bulk insert of rows in SQLite is 500 rows. A shortened example of the bulk insert query that my program is constructing, but with only 2 rows, is: INSERT OR REPLACE INTO "VG_INSTANCE_DATA_B" ( year , yield , ccode , month , DATETIME_ROW