11,102 questions
1
vote
1
answer
27
views
Error "error: ERR 211 Not enough local stack" while building on GeneXus 17
When building a KB in GeneXus 17, it outputs the following error:
error: ERR 211 Not enough local stack
Followed by:
warning: [BuildDaemon] Auto restarting Specifier daemon. True - AutoRestartCount:
...
-4
votes
0
answers
46
views
Do Python variable references get stored on the stack or the heap? [duplicate]
Where does the reference to a variabl e.g. x = 3 get stored in Python?
Sources on the web say that the references are stored on the stack. ex:
Stack Memory: Stack memory stores temporary data, ...
Best practices
0
votes
0
replies
33
views
Nested Navigation Not Working in AutoRoute
I’m trying to navigate between nested pages using AutoRoute, but I’m unable to route to child pages or go back using AutoRouter.of(context).back().
I have an Authentication module with multiple nested ...
0
votes
0
answers
123
views
AttributeError: 'NoneType' object has no attribute 'columns' BPTK-Py
Depreciation_DM = model.constant("Depreciation_DM")
Depreciation_DM.equation = 0.0708
DMPIncRate = model.constant("DMPIncRate")
DMPIncRate.equation = 0.0284
DMPInc = model.flow(&...
2
votes
2
answers
150
views
Location of the first value pushed onto stack in assembly (x86 I386 assembly) (gdb) (AT&T)
Consider the assembly program below:
.section .data
.section .text
.global _start
_start:
pushl $85 #make it obvious in memory
popl %ebx
movl $1, %eax
int $0x80
It ...
0
votes
0
answers
76
views
Locate return address into EXE from DllMain
I'm writing a 64-bit Windows DLL that needs to locate, on the stack, the return address that belongs to the host EXE (the place in the EXE that called into my DLL). The EXE loads my DLL and eventually ...
2
votes
1
answer
387
views
Why do relative stack addresses change each time this Windows program is run?
See (far below) how the relative stack location of the local variable x changes between runs of this program. Why does that happen? I know about ASLR and can see (looking at pLow and pHigh) that the ...
-1
votes
1
answer
59
views
Converting 2d tiff into 3d tif files - stack error
I'm working in WSL Ubuntu, writing this script in SPAM Jupyter Lab. I want to convert my 2d TIFF files into a 3d TIFF file. After stating the directory where the 2d TIFF files are, this is my code:
...
-2
votes
1
answer
119
views
Array passed as an argument does not seem to be changing [closed]
I was tasked to write up a C program to sort an array using quicksort, without using recursion.
Original array:
-25, 87, 12, -6, 91, 3, -48, 70, 19, -33, 55, 2, -18, 99, 41, -72, 63, 15, -90, 27, 8, -...
0
votes
1
answer
126
views
Balanced parens -- O(n^2), but passing on hacker rank and leetcode
I am trying to implement the classic balanced parens with stacks
So I decided to test the stupid, O(n^2) algorithm
def balanceada(string):
while True:
before = len(string)
string = ...
4
votes
2
answers
210
views
Trying to exploit the stack content with a format string, but I can't understand where it takes the output from
I am studying for my Computer Security exam and I am on the Format String Bugs section. In the notes there is this code, and I was testing it on my VM:
#include <stdio.h>
void test(char *arg) {
...
0
votes
1
answer
177
views
React Native + Expo router - TouchableOpacity not working on one screen, while it does on all the others
I've been blocked for days on this and I cannot keep wasting time on this stupid bug. I need your help.
Let's start from the working screen.
I have a _layout.tsx:
const PlansLayout = () => {
...
1
vote
1
answer
143
views
arm-none-eabi-gcc stack frame usage issue
I am using below gcc compiler to compile codebase for ARM cortex M33 with optimization -Os.
arm-none-eabi-gcc.exe (Arm GNU Toolchain 14.3.Rel1 (Build arm-14.174)) 14.3.1 20250623
Copyright (C) 2024 ...
0
votes
0
answers
62
views
stack_trace : Is there any potential issue with wrapping my app in Chain.capture()
I'm working on a Flutter app and want to improve my error reporting, especially for async errors. I came across the stack_trace package and its Chain.capture method, which seems to provide much better ...
0
votes
1
answer
69
views
tried flutter positioned in stack with media query but on different devices it doesnt work
I am working on a vpn app and on one of the screens i have to use stack for showing different widgtes over each other like gradient below and a globe svg on top and then a circularProgressIndicator on ...
3
votes
3
answers
126
views
Stack Smashing with strtol
I'm trying to learn about C and how to use its functions, etc. The man pages suggested to use strtol instead of atoi, so I came up with this code which works without issues:
#include <stdio.h>
#...
0
votes
1
answer
74
views
Null in a dereferenced Stack Pointer in Rust on Cortex-M4 (nRF52833)
When developing a Rust no_std bootloader for my micro:bit v2.21 (Cortex-M4, nRF52833), I have encountered a weird error.
The bootloader jumps to the main application using cortex_m::asm::bootstrap(sp, ...
1
vote
3
answers
90
views
Scheme stack-like object
Trying to build a very simple stack structure :
(define (make-stack lst)
(lambda message
(case (car message)
((see) (newline) (write lst))
((empty?) (null? lst))
((push) (begin
...
1
vote
0
answers
60
views
Why is are the arguments to a function I'm putting onto the stack in Uiua not being in the right order later in the function?
My current code is supposed to have a function, SINESYNTH, that takes 2 arguments (length and frequency) and make an audio clip of that length at that note. my code currently looks like:
TOFREQ ← ×220˜...
1
vote
2
answers
76
views
Why defining string within a function scope allocates it on heap instead of a stack? [duplicate]
According this awesome article there is an interesting case with two given examples:
A:
B:
And there is an explanation for A:
Unfortunately you have not taken into account that such Strings will ...
0
votes
1
answer
111
views
Can we traverse stack in FIFO order without custom logic?
My teammate asked if we can traverse stack in FIFO (First In First Out) order. I say stack itself maintain LIFO order in it but we can traverse it in FIFO manner by using another stack or list. Then ...
2
votes
1
answer
80
views
Where did I mess up using the stack in 68k Assembly (recursive factorial)
I'm trying to implement a recursive factorial function in M68K assembly using the stack to pass parameters. The code almost works: the recursion and multiplication behave as expected, and D0 contains ...
1
vote
4
answers
393
views
How to solve a modified version of Leetcode Valid Parentheses?
I recently had an interview where I was asked to solve a modified version of this question on leetcode. Instead of checking if the string is valid you are supposed to count the minimum number of ...
0
votes
0
answers
33
views
SwiftUI Horizontal Scroll of columns with max width and adjusted height
I’m working on a kanban-style app with a horizontal scroll view of columns representing different states. Each column contains some text elements. I want the columns to adjust their width based on the ...
2
votes
1
answer
63
views
Is it possible to automate color code for stacked column plot in Power BI and have correct label names at the same time?
I have a very simple fruit_sales dataset as shown:
Fruit
Sales
Apple
10
Banana
40
Guava
20
I imported this data from an Excel file in Power BI. And I plotted it as a stacked column chart as shown. I ...
1
vote
1
answer
65
views
Lua stack and vararg functions
I'm curently exploring Lua (5.4.7) vm implementation, it's relatively simple but i can't figure our how return works in case of vararg functions.
functions with fixed amount of params are quite simple,...
3
votes
0
answers
164
views
Is there a way to determine the stack size limit / end point within a running UEFI application?
I have a fairly large UEFI application (2.1MB UPX compressed) that has a number of functions that allocate reasonably large data structures on the stack (kilobytes). I'd like to add some debug code ...
0
votes
2
answers
61
views
how to place one container over another container - Flutter
I am trying to do this particular design for the Login page.
But the result I got it is on below:
The code I tried is:
Stack(
fit: StackFit.passthrough,
...
1
vote
1
answer
96
views
Why does calling two functions in a single statement not affect the value? [duplicate]
In this code:
// Stack using LinkedList //
#include <stdio.h>
#include <stdlib.h>
struct Node {
int data;
struct Node* next;
};
struct Node* top = NULL;
short isEmpty(void) {
...
2
votes
1
answer
79
views
Flutter drag image inside the bounds of a bigger image
Stack of big image and small image, and I want to be able to move the small image around the bounds of the big image, but not outside
Hi,
As the title says, I want to be able to move an image inside ...
0
votes
0
answers
66
views
What's funny about sparcv9 processors' or Solaris' stack handling?
I am maintaining Professor David Turner's interpreter for Miranda
and it now works on aarch, amd, arm, chrp, evbarm, loongarch, mips, powerpc, riscv and x86, 32-bit and 64-bit, big-endian and little-...
0
votes
1
answer
61
views
Function exits program instead of returning to previous call [closed]
trying to make this a minimal reproduction of the problem. If I run the following code as follows:
select client (enter 2)
select client from list (enter 2)
hit return twice
The program terminates ...
0
votes
1
answer
73
views
Flutter Stack Widget onTap function not working
Here I'm facing a issue on Flutter stack widget ontap function.Many time i'm tring to do it , but i can't.
Here is a demo image, where I want to call onTap function.
Here is my code :
import 'dart:...
0
votes
2
answers
127
views
Valid parenthesis problem passes tests but fails when I submit
I'm currently trying to solve the Valid Parenthesis problem on Leetcode, in Java, that goes as follows:
Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if ...
1
vote
0
answers
47
views
Visual Studio Code Haskell extension fails to find ghc version
I get following error in VSCode:
However, when I run this command in shell manually it works fine:
% stack --stack-yaml /home/user/haskell/h5/stack.yaml exec ghc -- --numeric-version
9.8.2
My stack....
0
votes
0
answers
154
views
In my Portainer container: How can I export stack details (services) of stacks that are created outside of Portainer (type=swarm,control=limited)?
I have a portainer on a remote server with containers inside. With following code I can list stacks and the stack details of the containers without problem, when the control of the stacks are "...
0
votes
0
answers
26
views
do I have to add all the SEH stuff in the x64 windows calling convention
Writing a c compiler that generates MASM and uses ml64 to assemble and link. I read a lot about the x64 windows calling convention and it seemed that I did not have to add all the SEH plumbing, in ...
-3
votes
1
answer
102
views
Recursive parsing of flat list as nested structure
This is sort of a follow up to How to parse a nested structure presented as a flat list?. Read it for the long explanation.
My current code:
def parse(code: list, top=True) -> tuple:
print(code)...
0
votes
1
answer
94
views
Why is my output different after each execution of the program?
So I am new to java and was trying to learn about simple data structure and wrote a program in bluej to pop in a stack. However after compiling and executing the program the output is different each ...
6
votes
1
answer
216
views
Can a C compiler legally reject a program if its call stack depth exceeds a fixed limit at compile time?
I've read that C doesn't mandate a minimum stack size, leaving it implementation-defined. But could a conforming C compiler refuse to compile a program if it detects--say, through static analysis--...
0
votes
0
answers
58
views
How to handle the exception, when stack is empty(character element of string accesses an empty stack)?
I have problem with my program on C++, witch checks an valid brackets.
If i want to check ')', i get segmentation error.
Example:
input: (())
output: Yes
input: (()
output: No
input: ())
output: back()...
1
vote
1
answer
191
views
EIGEN: Advice needed for memory allocation
I am trying to write an efficient multistep solver in C++ using the Eigen library. To do so, I need a few variables that keep track of the history. One of them is of type Eigen::VectorX<Eigen::...
0
votes
2
answers
46
views
GestureDetector causes move of the wrong item in stack
I want to have 2 movable widgets in a flutter's stack.
I created a stack with red and blue containers, wrapped with GestureDetector and Positioned
and they moved well.
when I tried to have the item ...
0
votes
2
answers
115
views
Rearrange linked list by position parity using single stack
I'm working on an algorithm to rearrange a singly linked list based on node positions using only a single stack as auxiliary space. The goal is to modify the linked list such that all nodes at odd ...
3
votes
0
answers
94
views
Why is my stack in kernel memory virtual address space?
I have a simple C program which declares two local variables, one initialized, one uninitialized, like so:
#include <stdio.h>
int main() {
int local_var_1 = 0;
int local_var_2;
...
0
votes
1
answer
74
views
parsing a file using fscanf [closed]
I am trying to parse this input file temperatures.txt, but currently I am having trouble with formatting the input correctly. I have tried many renditions so now I am looking for help.
The issue I am ...
0
votes
0
answers
134
views
I am having a lab about quick sort in 'RISC-V'. I have done something but my recursive part kept buggy
I guess is stack pointer problem but I can't fix it. Here is my code:
.global _start
.data
array1: .word -5 24 -8 45 -15 24 11 7 0 125
hi: .word 9
lo: .word 0
newline: .asciz "\n"
space: ....
0
votes
1
answer
65
views
Is it possible to synchronize y-axis of three different stacked column plots in Power BI?
I have a Power BI page in which I want to visualize installed capacity of 3 scenarios at the same time with 3 different plots. I have filtered scenario to visualize results in each plot.
However, the ...
1
vote
1
answer
100
views
Does the call instruction write something onto the stack? For example, things like environment variables?
I am currently running a C++ program in which I have used the heap to simulate the stack and employed assembly language to place relevant information (such as memory addresses) into registers, thereby ...
0
votes
0
answers
26
views
Maximum call stack exceeded
Issue:
I used Clerk middleware, but it didn't work, and I encountered a Maximum Call Stack Error. Additionally, my middleware.ts file sometimes doesn’t compile.
Here’s my middleware.ts file:
import { ...