logs archiveBotHelp.net / Freenode / #3dsdev / 2015 / September / 1 / 2
shuffle2
if the files are uncompressed you can just grep the raw disk for some plaintext
(Action) has done this
also if it caused a dump, grep the memory in *that*?
smea
shuffle2 yeah
it's not a big deal, tdvs was just a glorified file browser
the important stuff is all in the ninjhax backend
endrift
I wish I knew how to debug this crash
shuffle2
?
endrift
mGBA just crashes randomly, but only on the 3DS
But I don't have an exception handler so it just hardlocks the system
Lectem
Well... If you really want to find where it crashes you could somehow instrument your code and get it to write every function call into a file
A bit overkill but well
At least you'd know where it crashes
Normmatt
or just ask profi200/yellows8 to run it on their setup as they can dump the exception data
vaguerant
profi200 did run it as a CIA and said it stopped crashing.
shuffle2
is there no way to trap exceptions in your app or are you lazy? :P
Normmatt
there is but its not documented
Lectem
[00:16] (shuffle2) is there no way to trap exceptions in your app or are you lazy? :P <- are you talking about c++ exceptions ? O.o if yes its not what we're talking about
vaguerant
endrift, Does it crash even in the menu?
Checking that myself now. Hasn't yet.
shuffle2
no i meant like SEH
or however arm11 kernel is giving them to you
endrift
vaguerant: did that involve recompiling it?
I'm half convinced I'm compiling it wrong
vaguerant
No, just running the nightly.
endrift
as a cia?
ABigDeal
profi recompiled it
vaguerant
Oh, sorry, yes, profi200 did recompile it.
As a CIA.
endrift
I wonder if they threw out my toolchain and did it by hand
Lectem: https://github.com/Lectem/3ds-cmake/blob/master/DevkitArm3DS.cmake#L49 is that D supposed to be there?
shuffle2
i'm gonna go with no
smea
"is that D supposed to be there"
ABigDeal
mrc p15, 0, r3, c13, c0, 3; add r3, r3, 0x40; stmia r3, {r0-r2}
shuffle2
ABigD
ABigDeal
function, stackbottom, exceptionbuffer
howdy shuffle2
smea
<shuffle2> ABigD
´ÉÞjßÉ)
shuffle2
it switches stacks for exception handler?
ABigDeal
for user's exception handler
exceptionbuffer holds context to get at old stack and registeress
shuffle2
what is function's prototype
archshift
oh, smea's awake apparently
10:00 PM, time to sleep
ABigDeal
void handler(void* buffer1, void* buffer2);
buffer1 holds pointer to exception type
buffer2 is exception context
shuffle2
cool beans
ok did you fix it yet endrift ? :)
endrift
I'm confused
oh
so the value that's in r3 that I get out of mrc is a pointer to an exception handling thing?
ABigDeal
it's a pointer to a structure for lots of things
endrift
well sure
ABigDeal
it's used for passing data for ipc among many other things
0x40 into that struct is a member structure that can hold exception hanlding info
endrift
right
sure, I can try that and see what happens
will file handles still be good?
or should I open a new one?
or how else will I get info out...
ABigDeal
handles should still be fine (I think)
endrift
ok
ABigDeal
you can print to screen
endrift
I guess so
will the GPU still work? :P
vaguerant
You've got a screen to spare.
ABigDeal
it should
shuffle2
the kernel should just not execute the faulting thread and switch to the handler
vaguerant
Oh, I've still got my 3DS on the menu since an hour ago when I started checking if it crashed in the menu.
shuffle2
so i'd just assume everything works until proven otherwise :p
vaguerant
So I guess it doesn't crash in the menu.
ABigDeal
I think you want like 0x60 bytes for the exceptionbuffer. that should be enough for registers and everything
endrift
no it doesn't crash in the menu
ABigDeal: linear heap or will normal heap work fine?
ABigDeal
both are fine. doesn't require linear memory mapping
endrift
ok
hmm
ABigDeal: it doesn't appear to have worked
yeah that's not actually doing anything
I CAN write to the memory, but it doesn't appear to do anything when the game crashes
ABigDeal
maybe the thread local storage struct changed between versions
I'm running 4.4 here
endrift
oh, yeah...
I'm on 9.9
shuffle2
are you doing it on the thread that's crashing?
endrift
I'm only using one thread, so yeah
http://3dbrew.org/wiki/Thread_Local_Storage looks like 0x40 is just in the scratch space
ABigDeal
it's not documented
endrift
ok...well, it's not doing anything anyway
smea
the TLS user mode exception dump thing will only work if a specific debugger flag is set
which you cant set without higher level of privilege
iirc it does work by on any machine for fpu exceptions though so i guess theres that
shuffle2
what is this? http://pastie.org/private/n0qcq5flvot2ayofnydtwg
endrift
I can put it on a 9.2 O3DS
and do debugging from there, if there's a way to do that
furyhunter
ahh FUCK
has someone imported a regular n3ds
endrift
um. Well. I figured out why the LTO build is crashing
« prev 1 2 3 4 5 6 next »