On Wed, 18 Jul 2012 16:34:27 +0900 (KST) woohyun <[email protected]> said:
ok i looked at this. at first i went "ho! bug in edje"... then i went "oooooooooooooooooooooooooooooooooooh bug in embryo. that's rare!"... and then finally i went "OMG.... THAT'S WHY! crap!!!" problem is this. you call message() from the animator. message takes varargs - embryo style. problem is u push a string (array of vars) onto the stack to call.. but embryo is a very dumb lang... it doesnt know how to pass an array (string) on the stack of a varargs func as it doesnt have a type like str[] to tell it to make it such a thing, so it takes the first value of your array and puts that on the stack... and amazingly it doesnt fall over in a stinking heap! it gracefully keeps working. thank god for that. so as such calling message like u do is not possible. c code can call it because it is able to swizzle embryo runtime to force it to place a string array on the params stack. embryo itself cant quite manage this :(. well not reliably/the same way. the solution i put in svn. have a flip_up/dn() func that explicitly takes a string (str[]). :) > Hello, all. > I've spent some hours for trying to fix current elm_flipselector bug. > But failed to fix :( > > The bug can be reproduced by following steps. > (1) elementary_test -> (2) flip selector -> (3) Click the first flip > selector -> > (4) Push rapidly "Down arrow key" in your keyboard several times. -> > (5) Only "E" displayed. (it should be "Elementary" or "Edje" or "Ecore" or ..) > > In flip selector's edc file, I've found the reason of this problem. And I > made a test code. (The test code wants to display "Elementary", but "l" is > not displayed. only "Eementary" is shown.) > > As you can see in attached problem.edc file, "message" script function calls > "abc" script function. if "abc" function uses argument for setting string to > a TEXT part, the text is shown without some characters. (exactly to say, the > number of "not shown" characters is same with the number of arguments in > "abc" function) > > In "_embryo_str_snprintf", I've checked that "_embryo_data_string_get" > returns wrong string. > > If you test with more arguments for "abc", more characters will not be > displayed. > > This usage of script functions is wrong ? Or a bug of edje/embryo ? > > Help me ~~~ -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
