logs archiveBotHelp.net / Freenode / #3dsdev / 2015 / September / 4 / 1
endrift
it's a void* at the moment
profi200
The kernel will also make sure it starts at a 8 byte aligned address. If not it adjusts the address.
endrift
I did use memalign so
anyway uh
does the crash log include the thread it's on?
oh it does but not in a useful way
profi200
https://gist.github.com/profi200/d3586a3956e356375ce4
It is missing an allocator.
A naive/dirty thread class.
shuffle2
i feel there was major opportunity lost by not calling it ironfail
endrift
profi200: oh do I need to call svcControlMemory?
instead of malloc?
profi200
It is just for safety. It maps the stack elsewhere so if it under- or overflows it will crash instead of overwriting the heap.
endrift
I see
I have *no* idea what's breaking then
profi200
ctrulibs mem management is not good. That is some free shared memory which is not meant for this but ctrulib already uses all mem which could be used as stack.
endrift
I wonder if I'm just corrupting state somewhere else first
since like
it all seems to check out, then I make the thread
this is so weird
it's totally crashing in the primary thread
the memory is allocated, I verified
the entry point is non-zero
Citra appears to jump to zero in this
profi200
http://gbatemp.net/threads/release-pokemini-3ds-pokemon-mini-emulator.396450/#post-5650596
(Action) bets it's sf2dlib.
endrift
what's the way to lock a mutex? svcWaitSynchronization?
yuriks
yeah
endrift
I MIGHT be running a debug build of Citra at the moment
(it's super handy, thanks)
ughhh it (almost) works in Citra
but it works better in Citra than it does on hardware ;_;
profi200: I've reupped a version that "works" in Citra, but I expect the problem isn't actually fixed in this one https://endrift.com/files/mGBA-test.3dsx
I'm probably gonna have to call this one off if I can't figure out why I can't start a thread
I should probably file that PR for sf2dlib
The_Cholbs
oops
hi
yuriks
oh, they're getting smarter huh
yifanlu
what happened to the bot?
and that was definitely a person
yuriks
oh
I assumed it wasn't highlighted
but it was
yifanlu
multiple times
yuriks
donttalktome: poke
yifanlu
lol
yuriks
strange...
ABigDeal
it wasn't a normal mesg
it was a notification
yuriks
oh, indeed
ABigDeal
also, that doesn't ping me, so heh
stupid APT changed the applet info structure on me between versions. I was RE'ing the latest one and when trying to debug on my 4.4 things weren't matching up. damn ninty
shuffle2
they're on to you
yuriks
we need more ops :P
profi200
You should only op people you can trust.
endrift: Can't test until evening. Was sleeping.
endrift
profi200: ok, that's fine
I fixed the hang btw
yuriks
profi200: yeah, just said that because yifanlu had temporarily left, so smea was left as the only op
profi200
You mena the annoying freeze?
endrift
yep
profi200
*mean
What was it?
endrift
I also made a change that *should* speed things up a bit, but it depends on a new build of sf2dlib/xerpi merging a PR
gspWaitForPPF was sometimes just...hanging
for no apparent reason
removing it fixed the hang with no apparent ill effect
I noticed that the place where blargSNES does approximately the same thing doesn't have that call
yuriks
so it wasn't the cache flush you mentioned?
endrift
nope
turns out I commented both out at the same time
yuriks
so I guess that yeah, ctrulib really needs some timeouts there
endrift
anyway!
it works great now
yuriks
also, I have a feeling I know why it randomly hangs...
endrift
I still want to dump sf2dlib though
profi200
Timeouts are just workarounds.
endrift
^
yuriks
a long time ago I looked into that code and discussed it with someone, I think plutoo, about how the GSP shared mem handler in ctrulib didn't properly use atomics to pop from the interrupt queue
at the time I was trying to figure out why the second memory fill interrupt seemed to never fire
endrift
I can tell the toolchain still needs some polish :/
yuriks
*twitch*
profi200
These timeouts also break GPU stuff.
endrift
:(
(Action) hides
yuriks
endrift: I'm not annoyed at you, more like I'm having PTSD here lol
endrift
I got that
yuriks
on the bright side, I just got it to render things
endrift
:D!
now rebase
profi200
If it locks and you just continue it breaks other stuff at some point.
yuriks
// Rows are in the order w z y x, because ctrulib is literally worse than Hitler
profi200
lol
yuriks
(rows of a matrix uniform)
endrift
uh it just locked up again
ummm
yuriks
well, so much for that
endrift
welp
profi200
Where is that pull request. I only see a fix for VRAM texture clearing.
endrift
that's the sf2dlib patch
« prev 1 2 3 4 next »