Skip to content

Instantly share code, notes, and snippets.

@tmzhuang
tmzhuang / keybase.md
Last active January 26, 2022 19:13
Keybase proof

Keybase proof

I hereby claim:

  • I am tmzhuang on github.
  • I am kapitol (https://keybase.io/kapitol) on keybase.
  • I have a public key ASCUz8IwYacFaYDC_5yzRISUPB7ZMvPB55RcIZGhbz70Kwo

To claim this, I am signing this object:

2021-01-27 15:32:54,828: Initializing lutris
2021-01-27 15:32:55,659: Downloading DXVK releases to /home/tzhuang/.local/share/lutris/runtime/dxvk/dxvk_versions.json
2021-01-27 15:32:55,660: Runtime updated. Initialization complete.
2021-01-27 15:32:55,660: Lutris 0.5.8.3
2021-01-27 15:32:55,660: Using NVIDIA drivers 460.39 for x86_64
2021-01-27 15:32:55,661: GPU: GeForce GTX 1080 Ti
2021-01-27 15:32:55,661: GPU: 10DE:1B06 3842:6393 (nvidia drivers)
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/lutris/gui/widgets/sidebar.py", line 377, in on_game_start
self.running_row.show()
# Show tooltips on test data
hover = HoverTool(
tooltips=[
('Test', '$name'),
('Date', '@created_at_{%F}'),
('Branch', '@branch_'),
('Revision', '@revision_'),
(metric, '@$name{0.0}')],
formatters={
'created_at_': 'datetime', # use 'datetime' formatter for 'date' field
struct Stage {
struct UIElementContainer asUIElementContainer;
unsigned int backgroundColor;
struct STDUMap gamepads; // int,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::hash<int>,std::equal_to<int>,std::allocator<std::pair<int const,std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >
int lastTimeMS;
struct UIElement *textInputTarget;
bool done;
};
struct __cppobj __attribute__((aligned(8))) Stage : UIElementContainer
{
XDL_Color backgroundColor_;
std::unordered_map<int,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::hash<int>,std::equal_to<int>,std::allocator<std::pair<int const,std::basic_string<char,std::char_traits<char>,std::allocator<char> > > > > gamepads_;
int lastTimeMS_;
UIElement *textInputTarget_;
bool done_;
};
(gdb) bt
#0 0x00007fdc522533cb in std::ios_base::ios_base (this=0x7fff90da2cc8) at /build/gcc/src/gcc/libstdc++-v3/src/c++11/ios.cc:76
#1 0x00000000005013e5 in std::basic_ios<char, std::char_traits<char> >::basic_ios (this=0x7fff9204d788)
at /usr/local/gcc-4.8.1-for-linux64/include/c++/4.8.1/bits/basic_ios.h:456
#2 std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream (__m=(std::_S_in | std::_S_out),
this=0x7fff9204d720, __in_chrg=<optimized out>, __vtt_parm=<optimized out>)
at /usr/local/gcc-4.8.1-for-linux64/include/c++/4.8.1/sstream:538
#3 XDL_LoadTextureFile (textureFilename=0x1a5eae8 "texture/title.m0.0.png", callback=
0x4917b0 <TextureLoader::imageLoaded(unsigned int, void*)>, userData=0x1ea7220) at client/xdl/XDL.cc:940
#4 0x00007fdc4ce9aa8d in ?? () from /usr/lib/libffi.so.7
(gdb) bt
#0 0x00007f4e47c99738 in pypy_g_W_CTypePtrBase_convert_to_object () from /usr/lib/libpypy3-c.so
#1 0x00007f4e47cd591a in pypy_g_W_CData_getitem () from /usr/lib/libpypy3-c.so
#2 0x00007f4e47aad9b2 in pypy_g_BuiltinCode2_fastcall_2.part.0 () from /usr/lib/libpypy3-c.so
#3 0x00007f4e47ab0649 in pypy_g_funccall.star_2 () from /usr/lib/libpypy3-c.so
#4 0x00007f4e4812f1f6 in pypy_g_get_and_call_function.star_1 () from /usr/lib/libpypy3-c.so
#5 0x00007f4e482bf991 in pypy_g_list_BINARY_SUBSCR__AccessDirect_None () from /usr/lib/libpypy3-c.so
#6 0x00007f4e47b4822d in pypy_g_dispatch_bytecode__AccessDirect_None () from /usr/lib/libpypy3-c.so
#7 0x00007f4e47afee02 in pypy_g_handle_bytecode__AccessDirect_None () from /usr/lib/libpypy3-c.so
#8 0x00007f4e480dae4b in pypy_g_portal_7 () from /usr/lib/libpypy3-c.so
#include "MaxRectsBinPack.h"
#include <vector>
using namespace rbp;
MaxRectsBinPack mbp;
std::vector<Rect> dst;
int MaxRectsBestShortSideFit = MaxRectsBinPack::RectBestShortSideFit; ///< -BSSF: Positions the rectangle against the short side of a free rectangle into which it fits the best.
$ python builder.py
generating build/_remote.c
(already up-to-date)
setting the current directory to '/home/tzhuang/proj/sbpe/build'
running build_ext
building '_remote' extension
gcc -pthread -DNDEBUG -O2 -fPIC -DSUBHOOK_STATIC -I/home/tzhuang/.pyenv/versions/sbpe/include -I/home/tzhuang/.pyenv/versions/pypy3.6-7.3.1/include -c _remote.c -o ./_remote.o
_remote.c: In function ‘SDL_Init’:
_remote.c:1917:2: warning: implicit declaration of function ‘kickstart’ [-Wimplicit-function-declaration]
1917 | kickstart();
python builder.py
generating build/_remote.c
(already up-to-date)
setting the current directory to '/home/tzhuang/proj/sbpe/build'
running build_ext
building '_remote' extension
gcc -pthread -DNDEBUG -O2 -fPIC -DSUBHOOK_STATIC -I/home/tzhuang/.pyenv/versions/sbpe/include -I/home/tzhuang/.pyenv/versions/pypy3.6-7.3.1/include -c _remote.c -o ./_remote.o
_remote.c: In function ‘SDL_Init’:
_remote.c:1917:2: warning: implicit declaration of function ‘kickstart’ [-Wimplicit-function-declaration]
1917 | kickstart();