text:
ECG Data

Nice job on this app! I wanted to ask if you have plans to incorporate the ECG characteristics in the future, as I see the UUIDs are called out in the .py file. Thanks for any info!

@zanovis you'll see now I'm connecting to the sensors with a python package I've written that also has support for ECG
https://github.com/kieranabrennan/blehrm/blob/master/blehrm/clients/polar_h10.py

source: gharchive/issue

authors: kieranabrennan zanovis

repo: kieranabrennan/every-breath-you-take

license: MIT

license_type: permissive

license_source: github-api


text:
Slower execution when compared with Pytorch 2.1.2 + CU 11.8 + xformers 0.0.23.post1

I just updated my environment to 2.5.0 + CU 12.4 + xformers 0.0.28.post2, and it seems that it is slower and if I have a few images to loads, it will stop for a while before processing next image (at Florence2Run node). In the past, processing 10 images took about 40 secs now it needs 100 secs. Are there anything I can do to speed up?

Issue gone after updating to Pytorch 2.5.1 + CU 12.4 (xformers 0.0.28.post3)


text:
Fix verify_signature in Python 3

We were not properly accounting for the fact that the hashing functions in Python 3 take bytestrings.
Note that in Python 3, the body of the HTML request must be a bytestring when passed into the verify_signature function, this is consistent with how Flask and other HTTP libraries work.
Fixes #14

@mmailhot :+1:

source: gharchive/pull-request

authors: cgurnik mmailhot

repo: kikinteractive/kik-python

license: mit

license_source: bigquery


text:
Failed to start DB cause it is stopped - ionic angular

there is error showing on ionic angular with the latest version
not able to connect the Database.
by doing
let isStopped = false; in nativeIonicBackend.ts file
error is resolve
let isStopped = true;
database is not started yet
`
async initialize() {
if (isStopped)
throw new Error("Failed to start DB- cause it is stopped");
    db = await SQLite.create({
      name: dbName,
      location: "default",
    });

    if (isStopped) {
      await db.close();
    }
  },

`
is isStopped  is always true so its not creating database

I faced the same issue just now, using tauri-backend. Seems like nothing is setting it to false 🤷

i have made a service in angular
`
import { Injectable } from '@angular/core';
import { SQLite, SQLiteObject } from '@awesome-cordova-plugins/sqlite/ngx';
import {
buildAsyncQueryRunner,
getTime,
IDbBackend,
initJobsState,
IPrimitiveValue,
IQuery,
IQueryResult,
IRunRes,
ITransactionOpts,
} from "@kikko-land/kikko";
@Injectable({
providedIn: 'root'
})
export class SqliteService {
constructor( public sqlite:SQLite,) { }
async ionicBackend(dbName:string) {
let sqlDB = await this.sqlite.create({
    name:`${dbName}.db`,
    location: 'default',
  });

// console.log('db',JSON.stringify(sqlDB));
return () => {
  let isStopped = false;
  let db: SQLiteObject | undefined = undefined;
  const jobsState = initJobsState();

  const runQueries = async (
    queries:
      | { type: "usual"; values: IQuery[] }
      | {
          type: "prepared";
          query: IQuery;
          preparedValues: IPrimitiveValue[][];
        }
  ): Promise<IRunRes[]> => {
    if (!db) {
      throw new Error(`Failed to run queries, db not initialized`);
    }

    const res: IRunRes[] = [];

    const queriesToRun =
      queries.type === "usual"
        ? queries.values
        : queries.preparedValues.map(
            (v): IQuery => ({
              text: queries.query.text,
              values: v,
            })
          );
    for (const q of queriesToRun) {
      const startTime = getTime();
      // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
      const execResult = await (async () => {
        try {
          // eslint-disable-next-line @typescript-eslint/no-unsafe-return
          return await db.executeSql(q.text, q.values);
        } catch (e) {
          if (e instanceof Error) {
            e.message = `Error while executing query: ${q.text} - ${e.message}`;
          }
          throw e;
        }
      })();

      // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
      const rows: IQueryResult = new Array(execResult.rows.length);

      // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
      for (let i = 0; i < execResult.rows.length; i++) {
        // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
        rows[i] = execResult.rows.item(i);
      }

      const end = getTime();

      res.push({
        rows: rows,
        performance: {
          execTime: end - startTime,
        },
      });
    }

    return res;
  };

  const queryRunner = buildAsyncQueryRunner({
    async execPrepared(query: IQuery, preparedValues: IPrimitiveValue[][]) {
      return await runQueries({ type: "prepared", query, preparedValues });
    },
    async execUsualBatch(queriesToRun: IQuery[]): Promise<IRunRes[]> {
      return await runQueries({ type: "usual", values: queriesToRun });
    },
    async rollback() {
      if (!db) {
        throw new Error(`Failed to run queries, db not initialized`);
      }
      await db.executeSql("ROLLBACK");
    },
  });

  return {

    async initialize() {
      if (isStopped)
      throw new Error("Failed to start DB - cause it is stopped");

      db =  sqlDB;

      if (isStopped) {
        await db.close();
      }
    },
    async execQueries(
      q:
        | { type: "usual"; values: IQuery[] }
        | {
            type: "prepared";
            query: IQuery;
            preparedValues: IPrimitiveValue[][];
          },
      transactionOpts?: ITransactionOpts
    ) {
      const startedAt = getTime();
      const res = await queryRunner.run(jobsState, q, transactionOpts);
      const endAt = getTime();

      return {
        ...res,
        performance: {
          ...res.performance,
          totalTime: endAt - startedAt,
        },
      };
    },
    async stop() {
      isStopped = true;

      if (db) {
        await db.close();
      }
    },
  };
};

}
}
`
and in start function
`
let ionicBackend = await this.sqliteKikko.ionicBackend(this.dbName);
this.sqliteDb = ionicBackend().initialize();
console.log("sqlite", this.sqliteDb);
        console.log("db_start");
        await initDbClient({
          dbName: this.dbName,
          dbBackend: ionicBackend ,
          plugins: []
        }).then(async (dbConnect)=>{
          this.kikkoDb = dbConnect ;
        }).catch(e => console.log("db",e));

`
hope it help

repo: kikko-land/kikko


text:
Deep flat-file convention causing wrong route added

If we add something like this
- a+
  - b+
    - index.tsx

This would generate route for a+/b+ and a/b at the same time.

Odd. The + are removed and treated like you used .
a+/b+/index.tsx should map to a.b.index.tsx
Can you show me the remix.config?

The content of remix.config
const { flatRoutes } = require("remix-flat-routes");

/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
  devServerBroadcastDelay: 1000,
  ignoredRouteFiles: ["**/.*"],
  server: "./server.js",
  serverBuildPath: "functions/[[path]].js",
  serverConditions: ["worker"],
  serverDependenciesToBundle: "all",
  serverMainFields: ["browser", "module", "main"],
  serverMinify: true,
  serverModuleFormat: "esm",
  serverPlatform: "neutral",
  future: {
    unstable_tailwind: true,
    unstable_postcss: true,
    v2_routeConvention: true,
  },
  routes: (defineRoutes) => {
    return flatRoutes("routes", defineRoutes);
  },
};

My actual routes looks like this
<Route path="admin+/users+" file="routes/admin+/users+/index.tsx" />
    <Route path="admin" file="routes/admin+/_layout.tsx">
      <Route path="users/edit/:id?" file="routes/admin+/users+/edit.($id).tsx" />
      <Route path="users/" index file="routes/admin+/users+/index.tsx" />
      <Route path="users/new" file="routes/admin+/users+/new.tsx" />
    </Route>

Ah, you can't use v2_routeConvention and remix-flat-routes at the same time.
v2 doesn't support the + convention.

I see. I thought the routes function would take over the route generation.
Thanks for the explanation.

You are right! Change that fix the issue

authors: kiliman zhuhaow

repo: kiliman/remix-flat-routes


text:
Index was out of range error

Hello
Getting this error every time I open the program, clicking the "Apply" button or finishing quick setting. As the result, settings are not applying. Pic 2 is coming after the first one (it's saying application is shutting down) but nothing happens.

By the way russian translate is bad and breaking the interface, how can I change it to english?

hello
It seems like the app settings are messed up.
Do the following to reset and try again.

Additional -> Reset config

change language

Additional -> Advanced settings -> App language

Resetting config helped, thanks. Its weird, because it was my 1st launch and already with broken config.
And that "Config file" submenu in russian looks like file setup/configuration, and the buttons are "Setting", "Save settings" and "reload".

It seems that a problem occurred during the initialization process.
Thank you for reporting the worng text! I'll fix it

authors: Dmitryqq killkimno

repo: killkimno/MORT


text:
Updating stuff for deployment outside initial plant

Redo :

install script
update script
correct bugs at startup

Update globals variable and their use in email and other stuff.

repo: kiloutyg/efnc


text:
Documentation of setup for BioBERT and neleval

First of all, thanks for sharing this repo!
However, I have a bit of trouble reproducing the results, maybe you can help.

Running the training script

python run_e2e_span.py  --data_dir data/BC5CDR/processed_data --model_type bert --output_dir o utput --do_train --n_gpu 1 --model_name_or_path ./biobert_v1.1_pubmed
yields different errors.
If I use the BioBERT checkpoint from here https://github.com/dmis-lab/biobert:
I get the error: OSError: file ./biobert_v1.1_pubmed/config.json not found
If, however, I use this checkpoint https://huggingface.co/dmis-lab/biobert-v1.1/tree/main
I'm getting OSError: Error no file named ['pytorch_model-1000000.bin', 'tf_model.h5', 'model.ckpt.index'] found in directory ./biobert-v1.1/ or from_tf set to False

neleval

The Readme states that evaluation is run with ./neleval/BC5CDR-AllSpan/gold.csv. How do I get this file? Is it some produced as part of running the e2e_span script?
Thanks in advance!

Hi,
Thanks for your interest in our paper.

If you are using https://github.com/dmis-lab/biobert, please rename the bert_config.json file in ./biobert_v1.1_pubmed to config.json. Alternatively, you can specify the path to the config file using the --config_name argument in the training script.
If you are using https://huggingface.co/dmis-lab/biobert-v1.1/tree/main, please rename pytorch_model.bin to pytorch_model-1000000.bin.

gold.csv will be created when you do inference on the trained model. Use the --do_eval argument to do so. Then copy the gold.csv file to a directory named BC5CDR-AllSpan.

I hope this is helpful.

Thank you so much! Regarding 1. I tried the second option (using the HuggingFace model) and actually progressed a bit further. However, now I am getting an error
01/25/2022 12:12:17 - INFO - __main__ -   Loading features from cached file data/BC5CDR/processed_data/cached_train_biobert-v1.1
Traceback (most recent call last):
  File "run_e2e_span.py", line 1071, in <module>
    main()
  File "run_e2e_span.py", line 1021, in main
    global_step, tr_loss = train(args, model, tokenizer)
  File "run_e2e_span.py", line 76, in train
    train_dataset, _, _ = load_and_cache_examples(args, tokenizer)
  File "run_e2e_span.py", line 725, in load_and_cache_examples
    all_mention_start_indices = torch.tensor([f.mention_start_indices for f in features], dtype=torch.long)
ValueError: expected sequence of length 16 at dim 1 (got 9)

Do you have any hints what might be the problem?

use --overwrite_output_dir, --overwrite_cache, and --use_hard_and_random_negative during training. During inference use --use_all_candidates

authors: kingsaint phlobo

repo: kingsaint/BioMedical-EL


text:
fix(vite.config): mdi icon convert camelCase to kebab-case

When the previous solution encounters mdiBattery80, it will be converted to mdi-battery-8-0.
When using mdi-battery-80, an error that the icon cannot be found will be prompted.
This solution first converts uppercase letters and then matches one or more numbers.
There are some weird names here, such as mdiBattery10Bluetooth.  : )

Thank you very much!


text:
terminal: pasting causes cursor to go to end of line

E.g. imagine I have a line
foo baz

and I have my cursor on the space and bar  in the clipboard. Pasting will properly modify the line, but will move my cursor to the end (i.e. to the z in baz), rather than, as expected, the end of the paste (the space in bar ).

FYI @tadad @dr-frmr (not sure who owns this part of terminal).

fixed in develop!

authors: dr-frmr hosted-fornet nick1udwig

repo: kinode-dao/kinode


text:
Some improvements for network policy advisor

Align "--namespace" and "--namespaces" flags
Add --output option for report comman

@alban I think these changes are still relevant.

repo: kinvolk/inspektor-gadget


text:
Support overlayfs on btrfs after moby's new release

Currently we don't support btrfs as underlying device's filesystem, mainly because moby doesn't allow it. Linux kernel 4.7 or newer already supports overlayfs on btrfs, but moby started to support since https://github.com/moby/moby/pull/33281 (2017-05-19). The commit has not been included in any release so far. Even the most recent release 17.05.0-ce doesn't have it.
So we need to wait for a while until moby released a new version with it, as well as Container Linux includes the new version. Then we can allow overlayfs on btrfs.
/cc @iaguis

fixed by #193

Right. Thanks!

authors: dongsupark jonboulle

repo: kinvolk/kube-spawn


text:
index.php

hi
thank for sharing good source but i am running this code if am facing index.php problem each and every open page from admin.
http://localhost/shopping/admin/publish  Problem
http://localhost/shopping/index.php/admin/publish right

@vikaskumarmca This is not a problem. You can load admin/publish with index.php before and without :).

authors: kirilkirkov vikaskumarmca


text:
DropperSelectedRow never called

i followed the instructions to the word and it didn't work
then i tried some other variations and it didn't work as well
no need for code because i'm doing what you wrote
the framework looks great! i really hope to use it
thanks :)

Hey! I created a new project and followed my instructions again, but I wasn't able to replicate the issue you are having.
Here is my View controller:

class ViewController: UIViewController {
    let dropper = Dropper(width: 75, height: 200)
    @IBOutlet weak var dropButton: UIButton!

    override func viewDidLoad() {
        super.viewDidLoad()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    @IBAction func buttonSelected() {
        if dropper.status == .hidden {
            dropper.items = ["Item 1", "Item 2", "Item 3", "Item 4"] // Item displayed
            dropper.theme = Dropper.Themes.white
            dropper.delegate = self
            dropper.cornerRadius = 3
            dropper.showWithAnimation(0.15, options: Dropper.Alignment.center, button: dropButton)
        } else {
            dropper.hideWithAnimation(0.1)
        }
    }
}

extension ViewController: DropperDelegate {
    func DropperSelectedRow(_ path: IndexPath, contents: String) {
        print(path)
        print(contents)
    }
}

authors: kirkbyo ocnur

repo: kirkbyo/Dropper


text:
Transport auto doesn't run value through sanitize_callback

Using 4.0.20
I have a text field where users can put in a number or a CSS value like 30px, 2rem, 2em, etc. If an integer is added, my sanitize_callback adds px at the end. Using transport => auto just uses the integer value in the CSS. This may be a product of how transport auto works in JS only, but I wanted to confirm.

Hi @JiveDig , thanks for confirming this.
From what I understand, the postMessage CSS output will output the value based on:

how the control handle the value and then displaying it to the markup via content_template method in PHP or via JS part of the control.
what the control prints into the JS object (via to_json() method in PHP)
how the JS part of the control handles that object
and how the JS part of the control handles the value returned from the customizer

In your use-case, let's say you enter 11 to the text input. Your custom sanitize_callback will add px to it before it's saved to the database. But the control still seeing the value as 11 instead of 11px. In this case, you would need a custom JS to handle this in order to make the CSS output generated by postMessage works as expected. You might already know, the filter name is kirkiPostMessageStylesOutput.
You might also already have the script for that. So, this is just an example to do that:
(function () {
  /**
   * Check if the provided value is a numeric.
   *
   * @see https://stackoverflow.com/questions/175739/built-in-way-in-javascript-to-check-if-a-string-is-a-valid-number#answer-175787
   *
   * @param {string|number} str The provided value.
   * @return bool
   */
  function isNumeric(str) {
    // Number is a numeric.
    if ("number" === typeof str) return true;

    // We only process strings.
    if ("string" !== typeof str) return false;

    // Use type coercion to parse the entirety of the string (`parseFloat` alone does not do this) and ensure strings of whitespace fail.
    return !isNaN(str) && !isNaN(parseFloat(str));
  }

  /**
   * Function to hook into `kirkiPostMessageStylesOutput` filter.
   *
   * @param {string} styles The styles to be filtered.
   * @param {string|Object|int} value The control's value.
   * @param {Object} output The control's output argument.
   * @param {string} controlType The control type.
   *
   * @return {string} The filtered styles.
   */
  function stylesOutput(styles, value, output, controlType) {
    // These checks are just example :).
    if ("kirki-generic" !== controlType) return styles;
    if (!isNumeric(value)) return styles;

    styles +=
      output.element +
      "{" +
      output.property +
      ": " +
      value + "px" +
      ";\
		}";

    return styles;
  }

  // Hook the function to the `kirkiPostMessageStylesOutput` filter.
  wp.hooks.addFilter("kirkiPostMessageStylesOutput", "kirki", stylesOutput);
})();

We also do custom JS in some controls such as in control-react-colorful, field-typography, and field-dimensions to make the CSS output of postMessage output the styles in the expected format. There, people can check where to enqueue, and what are the dependencies.

authors: JiveDig contactjavas

repo: kirki-framework/kirki


text:
feat(s3): autoDeleteObjects log group allows retention period and removal policy definitions

Issue #24815
Closes #24815
Reason for this change
S3 bucket autoDeleteObjects leaves behind a log group for each bucket that uses the feature.  This results in a lot of cruft, especially in test accounts, which should be configurable by the bucket owner.  The account limit for log groups is 10,000 and I've got test accounts that have hit this limit several times.
Description of changes

Creates a log group rather than relying on the underlying custom-resource to create it automatically (a side effect of using CfnResource for AWS::Lambda::Function)
Sets a default retention period of 90 days on the log group (I picked a number)
Sets a default removal policy of delete on the log group (I don't think anyone wants these after they delete a bucket)
Denies the custom-resource Lambda role permission to create a log group (prevents log group recreation on delete)
Adds log group name as an optional to the interface of the custom-resource.  This is plumbed into the loggingConfig and results in an undefined entry if not provided.

Description of how you validated changes
Unit tests in addition to some simple functional tests.
When making a bucket with autoDeleteObjects enabled I wanted to confirm that the log group for the lambda was, in fact, gone after I deleted the stack.  This is how I found that I needed to modify the permission of the Lambda role to deny log group creation.
I also confirmed that the custom-resources which do not provide a log group name still produce a log group and logs within.
Also, over 100 snapshot tests (RIP me).
Checklist

[x] My code adheres to the CONTRIBUTING GUIDE and DESIGN GUIDELINES

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

There are about 10 snapshot tests which are failing that I'm unable to resolve on my own and I could use some help in running them.  I believe that a few of them are because I'm using an internal AWS account so hopefully they just need to be run from someone's not-quite-so-special account.

Oh, I definitely did something wrong on opening this PR I have no idea what though, changing to a draft.

Opened this backwards.  Closing.

Actual PR: https://github.com/aws/aws-cdk/pull/29698


text:
Open source NVIDIA drivers

It would be nice to update the repository and add the nvidia-open package 😃
(sway with native wlroots works for me without artifacts)

The open source kernel drivers only support GPUs from the 3xxx series onwards and I only have a 1660, so I won't be able to test it.

Nvm, it does support 16xx and 20xx series aswell. Fixed and added an option to use proprietary module

Got it, let's hope for better support for the open source driver.

authors: git-bruh nvidiaLinuxUser

repo: kiss-community/grepo


text:
Removed deprecated class PrioQueueForInts and its tests

The PrioQueueForInts class is deprecated and there is no NetworKit class using it.

This is uncontroversial. I will just merge it.

repo: kit-parco/networkit


text:
runbeforeSendingCallbacks errors on undefined each

This may be entirely to do with some oddity of the project where I'm trying to switch to Zttp (Lumen v5.1.7, due to requirements back when it was built and lack of time/resources to rework it in 5.5 or full Laravel), but the changes in runBeforeSendingCallbacks in commit 7b6dddc8c824671a460de8a093acc92a40f4ffe8 throw an error for me on any request, including a simple get with no parameters:

$response = Zttp::get('https://github.com');

PHP error:  Undefined property: Illuminate\Support\Collection::$each in [...]/vendor/kitetail/zttp/src/Zttp.php on line 178

Using kitetail/zttp v0.3.0 and illuminate/support v5.1.41.
Illuminate\Support\Collection definitely has the each function, but I'm probably in over my head as to what I'm doing wrong. If I switch back to array_reduce and [] instead of collect(), there are no errors and the call behaves as expected. Any idea what I'm running up against? Again, fully expecting it to be something on my end (and I'm not expecting help with that) with the older Lumen/Illuminate versions in play rather than a Zttp issue, but I figured I could check.

I bet this is because we use the collect helper function and Lumen already has it defined so we are getting an old version of the Collection class. Not at my computer right now but I'll double check this when I get home 👍🏻

So the issue is unfortunately somewhat complex, I've opened an issue on the package we use with more details:
https://github.com/tightenco/collect/issues/54
I'm going to rename this issue to match the root cause and will think if there's a good interim solution.

I ran into this on a pretty blank API project that had laravel/tinker in its dependencies. Tinker apparently installed illuminate/support v 5.2.x when depending on the latest tinker.

authors: 10bass adamwathan dakira

repo: kitetail/zttp


text:
🛑 Quasar RPC is down

In d482ad7, Quasar RPC (https://quasar-rpc.kitkat.zone) was down:

HTTP code: 502
Response time: 426 ms

Resolved: Quasar RPC is back up in a8b9bef after 13 minutes.


text:
🛑 Vinos Divertidos is down

In 025448c, Vinos Divertidos (https://vinosdivertidos.es) was down:

HTTP code: 500
Response time: 7877 ms

Resolved: Vinos Divertidos is back up in 6d0252c.


text:
Error after inserting non-ASCII char from Cliboard to TextInput widget

Xubuntu 14.10, Python 2.7.8.
Inserting non-ASCII char "Д" by Control+V into the TextInput widget

[INFO              ] [Logger      ] Record log in /root/.kivy/logs/kivy_15-01-22_0.txt

 [INFO              ] Kivy v1.9.0-dev
 [INFO              ] [Python      ] v2.7.8 (default, Oct 20 2014, 15:05:19)
 [GCC 4.9.1]
 [INFO              ] [Factory     ] 173 symbols loaded
 [INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif, img_pygame, img_pil (img_ffpyplayer ignored)
 [INFO              ] [Window      ] Provider: pygame(['window_egl_rpi'] ignored)
 [INFO              ] [GL          ] OpenGL version <3.0 Mesa 10.3.2>
 [INFO              ] [GL          ] OpenGL vendor <Intel Open Source Technology Center>
 [INFO              ] [GL          ] OpenGL renderer <Mesa DRI Intel(R) Sandybridge Mobile >
 [INFO              ] [GL          ] OpenGL parsed version: 3, 0
 [INFO              ] [GL          ] Shading version <1.30>
 [INFO              ] [GL          ] Texture max size <8192>
 [INFO              ] [GL          ] Texture max units <16>
 [INFO              ] [Window      ] virtual keyboard not allowed, single mode, not docked
 [INFO              ] [Text        ] Provider: pygame
 [INFO              ] [Video       ] Provider: pygst
 [INFO              ] [OSC         ] using <multiprocessing> for socket
 [INFO              ] [ProbeSysfs  ] device match: /dev/input/event5
 [INFO              ] [MTD         ] Read event from </dev/input/event5>
 [INFO              ] [Base        ] Start application main loop
 [INFO              ] [MTD         ] </dev/input/event5> range position X is 1212 - 5756
 [INFO              ] [MTD         ] </dev/input/event5> range position Y is 996 - 4876
 [INFO              ] [MTD         ] </dev/input/event5> range touch major is 0 - 0
 [INFO              ] [MTD         ] </dev/input/event5> range touch minor is 0 - 0
 [INFO              ] [MTD         ] </dev/input/event5> range pressure is 0 - 255
 [INFO              ] [MTD         ] </dev/input/event5> axes invertion: X is 0, Y is 0
 [INFO              ] [GL          ] NPOT texture support is available
 [INFO              ] [Clipboard   ] Provider: pygame(['clipboard_dbusklipper'] ignored)
 [INFO              ] [Base        ] Leaving application in progress...
 Traceback (most recent call last):
   File "/home/johndoe/kivy-master/examples/RST_Editor/main.py", line 61, in <module>
     Editor().run()
   File "/usr/lib/python2.7/dist-packages/kivy/app.py", line 824, in run
     runTouchApp()
   File "/usr/lib/python2.7/dist-packages/kivy/base.py", line 484, in runTouchApp
     EventLoop.window.mainloop()
   File "/usr/lib/python2.7/dist-packages/kivy/core/window/window_pygame.py", line 381, in mainloop
     self._mainloop()
   File "/usr/lib/python2.7/dist-packages/kivy/core/window/window_pygame.py", line 348, in _mainloop
     self.modifiers):
   File "_event.pyx", line 697, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:6788)
   File "_event.pyx", line 1159, in kivy._event.EventObservers.dispatch (kivy/_event.c:11470)
   File "_event.pyx", line 1083, in kivy._event.EventObservers._dispatch (kivy/_event.c:11066)
   File "/usr/lib/python2.7/dist-packages/kivy/core/window/__init__.py", line 149, in _on_window_key_down
     return self.dispatch('on_key_down', keycode, text, modifiers)
   File "_event.pyx", line 697, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:6788)
   File "_event.pyx", line 1159, in kivy._event.EventObservers.dispatch (kivy/_event.c:11470)
   File "_event.pyx", line 1083, in kivy._event.EventObservers._dispatch (kivy/_event.c:11066)
   File "/usr/lib/python2.7/dist-packages/kivy/uix/textinput.py", line 2017, in keyboard_on_key_down
     self.paste()
   File "/usr/lib/python2.7/dist-packages/kivy/uix/textinput.py", line 1388, in paste
     data = Clipboard.paste()
   File "/usr/lib/python2.7/dist-packages/kivy/core/clipboard/__init__.py", line 88, in paste
     return self._paste()
   File "/usr/lib/python2.7/dist-packages/kivy/core/clipboard/__init__.py", line 106, in _paste
     data = self.get(mime_type)
   File "/usr/lib/python2.7/dist-packages/kivy/core/clipboard/clipboard_pygame.py", line 35, in get
     text = text.encode('utf-8')
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)

Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

I have the same error.
It looks like pygame.scrap.get() returns string, and the following text.encode('utf-8') works correctly with unicode string.
The following patch fixed the issue for me:
diff --git a/kivy/core/clipboard/clipboard_pygame.py b/kivy/core/clipboard/clipboard_pygame.py
index 6f053ec..8dfbac3 100644
--- a/kivy/core/clipboard/clipboard_pygame.py
+++ b/kivy/core/clipboard/clipboard_pygame.py
@@ -31,8 +31,8 @@ class ClipboardPygame(ClipboardBase):
     def get(self, mimetype='text/plain'):
         self.init()
         text = pygame.scrap.get(mimetype)
-        if PY2:
-            text = text.encode('utf-8')
+        # if PY2:
+        #     text = text.encode('utf-8')
         return text

     def put(self, data, mimetype='text/plain'):

@hey-sancho
It's strange, but there is no any answer from kivy developers...

I cannot seem to reproduce it on windows with master. Perhaps if it's already bytes we should not encode it again.

closed via 33bfc526add488571b2dadea7771579a9cbb9042

authors: akshayaurora hey-sancho macropas matham

repo: kivy/kivy


text:
Multisamples causing GL error

I created 2 .exe packages for windows according to the documentation. I used stable and dev version kivy. And I have a problem - stable version detects opengl version 2.1 and dev version - 1.1
log files
stable
[INFO              ] Logger: Record log in C:\Users\maxim_000\.kivy\logs\kivy_15-08-13_6.txt
[WARNING           ] [Config      ] Upgrading configuration in progress.
[WARNING           ] [Config      ] Older configuration version detected (14 instead of 13)
[INFO              ] Kivy: v1.9.0
[INFO              ] Python: v2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)]
[INFO              ] Factory: 173 symbols loaded
[INFO              ] Image: Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO              ] Text: Provider: sdl2
[INFO              ] OSC: using <thread> for socket
[INFO              ] Window: Provider: sdl2
[INFO              ] GL: GLEW initialization succeeded
[INFO              ] GL: OpenGL version <2.1.0 - Build 8.15.10.1872>
[INFO              ] GL: OpenGL vendor <Intel>
[INFO              ] GL: OpenGL renderer <Mobile Intel(R) 4 Series Express Chipset Family>
[INFO              ] GL: OpenGL parsed version: 2, 1
[INFO              ] GL: Shading version <1.20  - Intel Build 8.15.10.1872>
[INFO              ] GL: Texture max size <4096>
[INFO              ] GL: Texture max units <16>
[INFO              ] Shader: fragment shader: <No errors.>
[INFO              ] Shader: vertex shader: <No errors.>
[INFO              ] Shader: program: <No errors.>
[INFO              ] Window: auto add sdl2 input provider
[INFO              ] Window: virtual keyboard not allowed, single mode, not docked
[INFO              ] GL: NPOT texture support is available
[INFO              ] Base: Start application main loop
[INFO              ] Base: Leaving application in progress...

dev
[INFO              ] Logger: Record log in C:\Users\maxim_000\.kivy\logs\kivy_15-08-13_5.txt
[INFO              ] Kivy: v1.9.1-dev
[INFO              ] Python: v2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)]
[INFO              ] Factory: 177 symbols loaded
[INFO              ] Image: Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO              ] Text: Provider: sdl2
[INFO              ] OSC: using <thread> for socket
[INFO              ] Window: Provider: sdl2
[INFO              ] GL: GLEW initialization succeeded
[INFO              ] GL: OpenGL version <1.1.0>
[INFO              ] GL: OpenGL vendor <Microsoft Corporation>
[INFO              ] GL: OpenGL renderer <GDI Generic>
[INFO              ] GL: OpenGL parsed version: 1, 1
[CRITICAL          ] GL: Minimum required OpenGL version (2.0) NOT found!

OpenGL version detected: 1.1

Version: 1.1.0
Vendor: Microsoft Corporation
Renderer: GDI Generic

Try upgrading your graphics drivers and/or your graphics hardware in case of problems.

The application will leave now.

I have the same issue with 1.9.1-dev :
[INFO              ] [Logger      ] Record log in C:\Documents and Settings\gfj138\.kivy\logs\kivy_15-08-25_22.txt
[INFO              ] [Kivy        ] v1.9.1-dev
[INFO              ] [Python      ] v2.7.10 |Continuum Analytics, Inc.| (default, May 28 2015, 17:02:00) [MSC v.1500 32 bit (Intel)]
[INFO              ] [Factory     ] 177 symbols loaded
[DEBUG             ] [Cache       ] register <kv.lang> with limit=None, timeout=None
[DEBUG             ] [Cache       ] register <kv.image> with limit=None, timeout=60
[DEBUG             ] [Cache       ] register <kv.atlas> with limit=None, timeout=None
[INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
[DEBUG             ] [Cache       ] register <kv.texture> with limit=1000, timeout=60
[DEBUG             ] [Cache       ] register <kv.shader> with limit=1000, timeout=3600
[INFO              ] [Text        ] Provider: sdl2
[INFO              ] [OSC         ] using <thread> for socket
[WARNING           ] [Input       ] WM_Touch/WM_Pen not supported by your version of Windows
[INFO              ] [Window      ] Provider: sdl2
[INFO              ] [GL          ] GLEW initialization succeeded
GL: glGenFramebuffers is NULL, try to detect an extension
GL: available extensions: GL_WIN_swap_hint GL_EXT_bgra GL_EXT_paletted_texture
GL: No framebuffers extension is supported
GL: Any call to Fbo will crash !
[INFO              ] [GL          ] OpenGL version <1.1.0>
[INFO              ] [GL          ] OpenGL vendor <Microsoft Corporation>
[INFO              ] [GL          ] OpenGL renderer <GDI Generic>
[INFO              ] [GL          ] OpenGL parsed version: 1, 1
[CRITICAL          ] [GL          ] Minimum required OpenGL version (2.0) NOT found!

and 1.9.0
[INFO              ] [Kivy        ] v1.9.0
[INFO              ] [Python      ] v2.7.10 |Continuum Analytics, Inc.| (default, May 28 2015, 17:02:00) [MSC v.1500 32 bit (Intel)]
[INFO              ] [Factory     ] 173 symbols loaded
[INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO              ] [Text        ] Provider: sdl2
[INFO              ] [OSC         ] using <thread> for socket
[WARNING           ] [Input       ] WM_Touch/WM_Pen not supported by your version of Windows
[INFO              ] [Window      ] Provider: sdl2
[INFO              ] [GL          ] GLEW initialization succeeded
[INFO              ] [GL          ] OpenGL version <3.1.0 - Build 6.14.10.5398>
[INFO              ] [GL          ] OpenGL vendor <Intel>
[INFO              ] [GL          ] OpenGL renderer <Intel(R) HD Graphics 4000>
[INFO              ] [GL          ] OpenGL parsed version: 3, 1
[INFO              ] [GL          ] Shading version <1.40 - Intel Build 6.14.10.5398>
[INFO              ] [GL          ] Texture max size <8192>
[INFO              ] [GL          ] Texture max units <16>
[INFO              ] [Shader      ] fragment shader: <No errors.>
[INFO              ] [Shader      ] vertex shader: <No errors.>
[INFO              ] [Shader      ] program: <No errors.>
[INFO              ] [Window      ] auto add sdl2 input provider
libpng warning: iCCP: known incorrect sRGB profile
[INFO              ] [Window      ] virtual keyboard not allowed, single mode, not docked

As I understand it - for determining the version of opengl responsible kivy.graphics. I'm assuming commit history here https://github.com/kivy/kivy/commits/master/kivy/graphics?page=1 3eb5b4844105fe83349a59612f8850e73622c26c found that it works, and since f15283ffd99b226e6cfe9c99d18d1010176aea21 error exists. So either this error because of a commit or error corrections for some is the above-mentioned package.

Error in this commit fd54e811f9c9413d22a2486920ed8d89ae84fc11

What is precisely the error ? Did you succeed in correcting this error ?

I dont succeed( Error on these lines - https://github.com/kivy/kivy/commit/fd54e811f9c9413d22a2486920ed8d89ae84fc11#diff-b91d9923ff01305495e47990f1ac7951R85
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, ...)
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, ...)

If you set any values to these attributes - error exists. Why - i dont know. I'm looking for a solution, but so far without results.

I do not get exactly what you are trying to do and what error you are fighting against... Do you have compilation errors ?
Googling the issue, I found a thread related to a game using OpenGL where a user had the same issue (other games detecting correct OpenGL driver with OpenGL >= 2.0, but this game only using the default Microsoft driver with OpenGL 1.1.0) => see https://betaguide.wz2100.net/viewtopic.php?f=4&t=11314&sid=a20074f87518a1a6a6d39bb97cabd18b&start=0 . At the end, the game detected the correct driver when he user changed the driver acceleration mode from quality to performance. Can this help us in solving the issue ?

OK, maybe it will help, I'll read it and think about it. There is one way that circumvents the problem but not solve it. Just remove the 124 and 125 lines in https://github.com/kivy/kivy/blob/master/kivy/core/window/_window_sdl2.pyx.

sdementen  Do you have compilation errors ?
No, i didn`t have them.
At the end, the game detected the correct driver when he user changed the driver acceleration mode from quality to performance.
Perhaps a similar thing can be done by working with the registry or installing a SDL_GL_SetAttribute.

Commenting lines 124+125 did not solve the issue.
However, by skipping entirely the new code related to multisamples, ie change line 116 into
if multisamples > 0 and False:

it did work.
Thank you for your help !

This is a show stopper bug we need to either find a solution or revert this before 1.9.1

This version works for me https://github.com/kivy/kivy/commit/c394fa891d34fbc37224e2c5b713140d6dc216a2 .About better fix the problem - for support SDL_GL_MULTISAMPLEBUFFERS requires the GL_ARB_multisample extension(according this sdl.beuc.net/sdl.wiki/SDL_GLattr) , and i don`t have it.
Need to add a check for this extension, and in his absence - set in config multisamples to 0. I'll try to do it
Perhaps there is another solution, the information here link_to_SO_1 link_to_SO_2 link_to_SO_3 can help to find it, or make sure that it is not (I had not understand due to poor knowledge of English and even less knowledge in SDL and opengl)

I dont know how to fix it. I know that for the code you need to write, but I dont know where it should be

LaTeX-Python confirmed on irc that it seems to happen with integrated GPUs, he uses this processor and was running a packaged app. His code runs without problems on machines with a dedicated graphics card.
@Kazun3500 i'm unsure if that commit is the real trigger, LaTeX tried with multisamples 0 (which stops the relevant part of the patch from executing) and the crash happened the same way.
Could you check if running the source code shows the same issue, or does it crash only with a packaged app? What is your processor model and driver version?

@dessant running the source code shows the same issue.
And for me setting multisamples to 0 helps to avoid crashes.
Processor version - Celeron(R) Dual-Core CPU T3500 @ 2.10GHz × 2, driver version - i will say a little bit later. And - i have integrated GRU.

driver version -6.3.9600.16384, driver provider - Microsoft. Now I try to find a driver from Intel.

driver version -6.3.9600.16384, driver provider - Microsoft.  I can`t find driver from intel. And i checked again - setting multisamples to 0  helps to avoid crashes, and depends on multisamples count it shows different lists avaliable gl extensions
with 0
GL: glGenFramebuffers is NULL, try to detect an extension
GL: available extensions: GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_blend
_color GL_EXT_abgr GL_EXT_texture3D GL_EXT_clip_volume_hint GL_EXT_compiled_vert
ex_array GL_SGIS_texture_edge_clamp GL_SGIS_generate_mipmap GL_EXT_draw_range_el
ements GL_SGIS_texture_lod GL_EXT_rescale_normal GL_EXT_packed_pixels GL_EXT_sep
arate_specular_color GL_ARB_multitexture GL_EXT_texture_env_combine GL_EXT_bgra
GL_EXT_blend_func_separate GL_EXT_secondary_color GL_EXT_fog_coord GL_EXT_textur
e_env_add GL_ARB_texture_cube_map GL_ARB_transpose_matrix GL_ARB_texture_env_add
 GL_IBM_texture_mirrored_repeat GL_EXT_multi_draw_arrays GL_NV_blend_square GL_A
RB_texture_compression GL_3DFX_texture_compression_FXT1 GL_EXT_texture_filter_an
isotropic GL_ARB_texture_border_clamp GL_ARB_point_parameters GL_ARB_texture_env
_combine GL_ARB_texture_env_dot3 GL_ARB_texture_env_crossbar GL_EXT_texture_comp
ression_s3tc GL_ARB_shadow GL_ARB_window_pos GL_EXT_shadow_funcs GL_EXT_stencil_
wrap GL_ARB_vertex_program GL_EXT_texture_rectangle GL_ARB_fragment_program GL_E
XT_stencil_two_side GL_ATI_separate_stencil GL_ARB_vertex_buffer_object GL_EXT_t
exture_lod_bias GL_ARB_occlusion_query GL_ARB_fragment_shader GL_ARB_shader_obje
cts GL_ARB_shading_language_100 GL_ARB_texture_non_power_of_two GL_ARB_vertex_sh
ader GL_NV_texgen_reflection GL_ARB_point_sprite GL_EXT_blend_equation_separate
GL_ARB_depth_texture GL_ARB_texture_rectangle GL_ARB_draw_buffers GL_ARB_pixel_b
uffer_object GL_WIN_swap_hint GL_EXT_framebuffer_object GL_EXT_texture_sRGB GL_A
RB_color_buffer_float GL_ARB_half_float_pixel GL_ARB_texture_float GL_NV_conditi
onal_render GL_EXT_texture_swizzle
GL: EXT_framebuffer_object is supported

with 2
GL: glGenFramebuffers is NULL, try to detect an extension
GL: available extensions: GL_WIN_swap_hint GL_EXT_bgra GL_EXT_paletted_texture
GL: No framebuffers extension is supported
GL: Any call to Fbo will crash !

I confirm that i have this problem with a Windows 10 machine and with Virtualbox Windows machines.
Config.set('graphics', 'multisamples', '0') solve the problem.

@lupin3rd - can you give more details where exactly (file, line, kivy version) you made the change so I can try this on a win7pro 32bit machine?

Just to share an update about this, a work to have ANGLE available on Windows (ANGLE is a project that translate OpenGL instructions to DirectX instructions, used by Firefox, Chrome, etc.) My personnal wish is to have ANGLE by default on windows, and prevent theses kind of issues. ANGLE require DirectX 9, which is the default version installed on Windows 10, so no graphics drivers installation are required!

I tested my app on lots of different machines, Windows 10 and Windows 7. I have no problems with the latest stable 1.9.1 or the latest 1.9.2-dev on these machines. But none of them works on my tablet samsung slate 700t with Windows 10. The workaround with multisamples does not work either.

I think I'm having the same issue as @jegger, works fine on Windows 8.1 on one of my machines, but when testing my packaged app on Windows 10 I get the 1.1 error:

I did some further testing:

On a Windows 10 (64bit) it does not work (as described in my last comment)
On a Windows 7 (32bit, in a virtual-machine) it does work
Could it be related to the architecture (32/64bit?) What do you have @steinnes ?

I created via Pyinstaller3.3-dev (and kivy latest master) a:

single file executable: Does work on Win10 and Win7
folder based executable: Does show OpenGL error on Win10, but not on Win7

@jegger, there have been substantial graphics changes since the last stable release, you might want to test master too.

@dessant Today I tried it with the latest kivy build (windows wheel https://kivy.org/downloads/appveyor/kivy/Kivy-1.9.2.dev0-cp27-cp27m-win32.whl)
I built with pyinstaller (also latest master branch) a folder based executable on windows 10 (virtual machine 64bit). This runs on the virtual machine itself but runs into this error on the other physical windows10 64bit machine. When building a pyinstaller single file executable it works on both windows 10 installations (virtual an physical). I don't get this...

Try setting the environment to KIVY_GL_BACKEND=sdl2 and see if that fixes
it. That needs to be set before kivy is imported. You can set it in environ
before the first kivy import.
On Jan 18, 2017 11:16 AM, "Dominique Burnand" notifications@github.com
wrote:
@dessant https://github.com/dessant Today I tried it with the latest kivy
build (windows wheel https://kivy.org/downloads/
appveyor/kivy/Kivy-1.9.2.dev0-cp27-cp27m-win32.whl)
I built with pyinstaller (also latest master branch) a folder based
executable on windows 10 (virtual machine 64bit). This runs on the virtual
machine itself but runs into this error on the other physical windows10
64bit machine. When building a pyinstaller single file executable it works
on both windows 10 installations (virtual an physical). I don't get this...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/kivy/kivy/issues/3576#issuecomment-273521033, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABkW_iRWtsJUmrmsCumyZef905gklotKks5rTjrYgaJpZM4FrD4a
.

@matham Thanks for your input. I tried setting the variable by: os.environ["KIVY_GL_BACKEND"] = "sdl2" before any kivy imports in my main file. I can confirm that the flag is recognized when I run the script on the machine on which there is no error. The log shows: "Backend used glew" without the variable beeing set and "Backend used sdl2" with the env-variable set to sdl2.
But this does not seems to change anything:
Here is the full log when the error is happening: http://codepad.org/QnEvh6Gl

I think you'll have to debug it on your machine since none of us can reproduce it. The place to look at is https://github.com/kivy/kivy/blob/master/kivy/core/gl/init.py and https://github.com/kivy/kivy/blob/master/kivy/graphics/opengl_utils.pyx#L240.
I'd also try to add the referenced _kivy_opengl_required_func to sys (e.g. sys._kivy_opengl_required_func = lambda *largs: 1) which will make kivy ignore that the version is too low. Maybe kivy will still work or it could crash.

I get this error too. I tried all the below (separately an together) but I still get the same error.
Config.set('graphics', 'multisamples', '0')
sys._kivy_opengl_required_func = lambda *largs: 1
os.environ["KIVY_GL_BACKEND"] = "sdl2"

[INFO              ] [Window      ] Provider: sdl2
[INFO              ] [GL          ] GLEW initialization succeeded
[INFO              ] [GL          ] OpenGL version <b'1.1.0'>
[INFO              ] [GL          ] OpenGL vendor <b'Microsoft Corporation'>
[INFO              ] [GL          ] OpenGL renderer <b'GDI Generic'>
[INFO              ] [GL          ] OpenGL parsed version: 1, 1
[CRITICAL          ] [GL          ] Minimum required OpenGL version (2.0) NOT found!

OpenGL version detected: 1.1

Version: b'1.1.0'
Vendor: b'Microsoft Corporation'
Renderer: b'GDI Generic'

Try upgrading your graphics drivers and/or your graphics hardware in case of problems.

The application will leave now.
GL: glGenFramebuffers is NULL, try to detect an extension
GL: available extensions: GL_WIN_swap_hint GL_EXT_bgra GL_EXT_paletted_texture
GL: No framebuffers extension is supported
GL: Any call to Fbo will crash !

Process finished with exit code 1

Any other ideas?

Same problem here guys!! Running windows 10 64bit. confirmed i have opengl 3.2 but still detecting opengl 1.1

Just a mention, the same OpenGL 1.1 error is available on Appveyor, so if this gets solved, it might be a nice test case.

kivy_17-02-24_3.txt
I am also getting this misidentifying error.
I tried running the /share/kivy-examples/demo/showcase/main.py file and got that error.
It worked after I edited the main.py file and added the following two lines just after the rest of the import statements:
from kivy import Config
Config.set('graphics', 'multisamples', '0')
Currently running on:
Manufacturer: Acer
Computer Model: Asprie Z3-715
Intel i5 6400T CPU @ 2.2GHz
8GB RAM
64-bit Windows 10
Integrated Graphics: Intel HD 530 with Shared Memory
Dedicated Graphics: Nvidia Geforce 940M with 2GB RAM

The issue is with Windows 10 support for interested graphics, had this problem with a Java library, changed to the last SDK version before windows 10 was released and the issue was fixed

@encloinc Can you explain what you mean? What error did you get in the java library? Also, you changed the sdk version of what? When compiling Angle?

Btw, @KeyWeeUsr The problem with appveyor being 1.1 will likely never be fixed since they literally don't have a graphics card. So that's the version windows is limited to I believe. But I could be wrong, since they do seem to have DirectX support.

@matham I think they really have DirectX, so if we can force kivy to use angle on appveyor, it might test this (or the 4971 part at least).

There seems to be a mishmash of issues in this thread. Let's use this thread for cases where gl detection issues are solved by Config.set('graphics', 'multisamples', '0'), regardless of the gl backend being used.
If that is not the case, please open a new issue, describing the error you get.

I was using JDK v#121 for the library https://libgdx.badlogicgames.com/ , when I switched the JDK version to an older one that was not built around Windows 10, (I switched to v51), the opengl error on java went away.

@KeyWeeUsr Yes, they do have DirectX installed, but that is different from the graphics driver. That link is just for the software package, it doesn't mean the graphics driver would also work.

I should have my head examined. I already enabled the tests on appveyor using angle with 3.5+ as you can see here: https://ci.appveyor.com/project/KivyOrg/kivy/build/1.0.719/job/j7k7c123ojwt0ba9#L1080. So the tests already work there with angle.
It could be other people who have problems is because they are lacking some dll. Appveyor comes preinstalled with the direct3d sdk so it has all the dlls. I can probably test on appveyor to see what other dlls it depends on

Reproduced on a PC I don't really have a stable access to, but these are the specs from dxdiag. I'll try angle if there will be a chance to do so:

Win 10 Education 64bit Build 14393
Intel Core2 Quad Q9400 (6M Cache, 2.66 GHz, 1333 MHz FSB)
Intel GMA 4500M
I think it's this machine

I had no errors such as:
GL: glGenFramebuffers is NULL, try to detect an extension
GL: available extensions: GL_WIN_swap_hint GL_EXT_bgra GL_EXT_paletted_texture
GL: No framebuffers extension is supported
GL: Any call to Fbo will crash !

just a simple log without any issues + OpenGL 1.1 error at the end, although the CPU should support the required OpenGL version (or at least he and he say so).

@KeyWeeUsr, is it fixed by Config.set('graphics', 'multisamples', '0')? If not, please open a separate issue.

@dessant I'm not quite sure if it is an issue as I didn't really find anything OpenGL > 1.1 in there and even WebGL checker reports no WebGL2 support (so probably just no DLL available). Anyway, I checked today even with disabled multisamples. It did nothing, but that was rather expected and using angle fixed the error, therefore I guess it's just that - a missing DLL.

As @dessant mentioned, this thread has become full of too many issues and suggestions. @jeeger's (#5071) new ticket summarizes the remaining issues. Please follow any remaining discussion there.
Note: I have a work laptop which reproduces the issues as discussed there. I can run any requested tests or make this machine available remotely upon request. In the meantime, I will continue investigating and discussing on that thread.
Thanks

Sorry, you're thinking of @jegger
☺
Am 29. März 2017 12:07:29 MESZ schrieb Richard Larkin notifications@github.com:

As @dessant mentioned, this thread has become full of too many issues
and suggestions. @jeeger's (#5071) new ticket summarizes the remaining
issues. Please follow any remaining discussion there.
Note: I have a work laptop which reproduces the issues as discussed
there. I can run any requested tests or make this machine available
remotely upon request. In the meantime, I will continue investigating
and discussing on that thread.
Thanks
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/kivy/kivy/issues/3576#issuecomment-290044678

--
Diese Nachricht wurde von meinem Mobiltelefon gesendet.

Comments not related to multisamples have been deleted, let's reopen this.

Kivy 1.10.0 was released!
So I installed it right away to check.
Alas the problem stays the same.
I still need to add
from kivy import Config
Config.set('graphics', 'multisamples', '0')

to the kivy showcase "share\kivy-examples\demo\showcase\main.py" to get it to run.
The showcase itself runs, apart from the scatter demo, which just does nothing.
Tried on Win7 Pro 32bit, Python 3.6.1 32 bit, Intel HD on board graphics.
(Core i5), driver 8.15.10.2281 (not updatable)

Did anyone try it with the sdl2 backend (KIVY_GL_BACKEND=sdl2) or the angle backend for py3.5+ (pip install kivy.deps.angle and KIVY_GL_BACKEND=angle_sdl2)?

@matham can you give beginner friendly instructions on how to activate KIVY_GL_BACKEND=angle_sdl2 assuming I have performed pip install kivy.deps.angle on python 3.6.1 and am now about to start share\kivy-examples\demo\showcase\main.py?

Hmm, that is very strange, I don't see how that error could occur with the last release.

@mborus, dozens of posts have been deleted from this thread to bring it to a usable state, please do not go off-topic, and debug your angle issues on irc or the mailing list.

I also have same experience with python 3.6 but not with python 2.7.
My apps running well with python 2.7 but have false detected about opengl version and can't find any solution yet.
Every solution I try including angle and multisamples didn't work.

the issue seems to be persisting still in my machine windows 10   I have also tried the above solutions to see the issue...

import os
os.environ['KIVY_GL_BACKEND'] = 'angle_sdl2'
import kivy
Adding this to the top of my script is the work around I'm using on windows 10, kivy 1.10.0, python 3.6.2.

I want to clarify:
from kivy import Config Config.set('graphics', 'multisamples', '0')
Does not resolve my error.

RESTART: C:/Users/AppData/Local/Programs/Python/Python36-32/kivy_label.py
[INFO   ] [Logger      ] Record log in C:\Users\Corie.kivy\logs\kivy_17-09-05_15.txt
[INFO   ] [Kivy        ] v1.10.0
[INFO   ] [Python      ] v3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:14:34) [MSC v.1900 32 bit (Intel)]
[INFO   ] [Factory     ] 194 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [OSC         ] using  for socket
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] GLEW initialization succeeded
[INFO   ] [GL          ] No framebuffers extension is supported
[INFO   ] [GL          ] Backend used
[INFO   ] [GL          ] OpenGL version <b'1.1.0'>
[INFO   ] [GL          ] OpenGL vendor <b'Microsoft Corporation'>
[INFO   ] [GL          ] OpenGL renderer <b'GDI Generic'>
[INFO   ] [GL          ] OpenGL parsed version: 1, 1
[CRITICAL] [GL          ] Minimum required OpenGL version (2.0) NOT found!
OpenGL version detected: 1.1
Version: b'1.1.0'
Vendor: b'Microsoft Corporation'
Renderer: b'GDI Generic'
Try upgrading your graphics drivers and/or your graphics hardware in case of problems.
The application will leave now.

However,
import os os.environ['KIVY_GL_BACKEND'] = 'angle_sdl2'
does.  I'm not sure if this is the same or related issue.

Should we apply the:
Config.set('graphics', 'multisamples', '0')
On windows machines only? Will there be a performance impact on other platforms if applied globally, such as on Android,  iOS or OSX?

It's only a problem on windows AFAIK.

Thanks.  What I meant was, by setting this config option regardless of the platform is running on, will it have any detrimental performance impact?

I don't think so. From the docs, Sets the MultiSample Anti-Aliasing (MSAA) level. Increasing this value results in smoother graphics but at the cost of processing time. which seems to imply that a lower level will only increase performance. But it may look worse.
I'd just do
import platform
from kivy.config import Config
if platform.system() == 'Windows:
    Config.set('graphics', 'multisamples', '0')'

Perfect. Thank you.

This worked for me
import os
os.environ['KIVY_GL_BACKEND'] = 'angle_sdl2'
from kivy import Config
Config.set('graphics', 'multisamples', '0')

What would be ideal is to allow the default multisample value, but pre-emptively set it to zero only if:

platform is windows
compatibility issue is detected

Basically, how do we test ahead of time before Kivy crashes out? I'd like to have the optimal graphics for the 99% of our software installations out there.

I don't think that is possible. You need to run the app twice, once to see if there's an issue, at which point you need to terminate python because gl is already initialized and then you have to run it again with the "fix".
So we have no way to detect the issue and then adjust the setting. You can make it available as a config option that your user changes if they have issues.

Not work for me:
Pc config :

Intel GPU with updated driver:

Source test:
`
import kivy
kivy.require('1.10.0')
import os
os.environ['KIVY_GL_BACKEND'] = 'angle_sdl2'
from kivy import Config
Config.set('graphics', 'multisamples', '0')
from kivy.app import App
from kivy.uix.button import Button
class TestApp(App):
def build(self):
return Button(text='Hello World')
TestApp().run()>
`
Occours:
Python 3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:14:34) [MSC v.1900 32 bit (Intel)] on Walmir-not, Standard
[INFO   ] [Logger      ] Record log in C:\Users\Walmir.kivy\logs\kivy_17-09-29_7.txt
[INFO   ] [Kivy        ] v1.10.0
[INFO   ] [Python      ] v3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:14:34) [MSC v.1900 32 bit (Intel)]
[INFO   ] [Factory     ] 194 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [OSC         ] using  for socket
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [Window      ] Activate GLES2/ANGLE context
[CRITICAL] [Window      ] Unable to find any valuable Window provider.
sdl2 - RuntimeError: b'Could not initialize EGL'
File "C:\Python36\lib\site-packages\kivy\core_init_.py", line 67, in core_select_lib
cls = cls()
File "C:\Python36\lib\site-packages\kivy\core\window\window_sdl2.py", line 140, in init
super(WindowSDL, self).init()
File "C:\Python36\lib\site-packages\kivy\core\window_init_.py", line 899, in init
self.create_window()
File "C:\Python36\lib\site-packages\kivy\core\window\window_sdl2.py", line 269, in create_window
self.fullscreen, resizable, state)
File "kivy\core\window_window_sdl2.pyx", line 142, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window (kivy\core/window_window_sdl2.c:2782)
File "kivy\core\window_window_sdl2.pyx", line 57, in kivy.core.window._window_sdl2._WindowSDL2Storage.die (kivy\core/window_window_sdl2.c:1872)
[CRITICAL] [App         ] Unable to get a Window, abort.
Exception ignored in: 'kivy.properties.dpi2px'
Traceback (most recent call last):
File "C:\Python36\lib\site-packages\kivy\utils.py", line 496, in get
retval = self.func(inst)
File "C:\Python36\lib\site-packages\kivy\metrics.py", line 174, in dpi
EventLoop.ensure_window()
File "C:\Python36\lib\site-packages\kivy\base.py", line 127, in ensure_window
sys.exit(1)
SystemExit: 1
[CRITICAL] [App         ] Unable to get a Window, abort.
Please, any suggestions for a lost beginner?
Tks.

The issue is still happening on Windows 7 x64 (2011 computer, but still...). I have an Intel HD Graphics Arrandale. The way to fix it is to place:
from kivy import Config
Config.set('graphics', 'multisamples', '0')

Before any kivy import. Another way to fix just on the current machine is to modify the %HOMEPATH%\.kivy\config.ini to change multisamples = 2 into multisamples = 0.

I do have a compliant openGL on my Windows 10 laptop:

But even with those addition in my code
import os
os.environ['KIVY_GL_BACKEND'] = 'angle_sdl2'
from kivy import Config
Config.set('graphics', 'multisamples', '0')

I get the 1.1 version error ...

The full log:
[INFO   ] [Logger      ] Record log in C:\Users\Jean-Pierre\.kivy\logs\kivy_18-04-21_14.txt
[INFO   ] [Kivy        ] v1.10.0
[INFO   ] [Python      ] v3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bit (AMD64)]
[INFO   ] [Factory     ] 194 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO   ] [OSC         ] using <thread> for socket
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] GLEW initialization succeeded
[INFO   ] [GL          ] No framebuffers extension is supported
[INFO   ] [GL          ] Backend used <glew>
[INFO   ] [GL          ] OpenGL version <b'1.1.0'>
[INFO   ] [GL          ] OpenGL vendor <b'Microsoft Corporation'>
[INFO   ] [GL          ] OpenGL renderer <b'GDI Generic'>
[INFO   ] [GL          ] OpenGL parsed version: 1, 1
[CRITICAL] [GL          ] Minimum required OpenGL version (2.0) NOT found!

OpenGL version detected: 1.1

Version: b'1.1.0'
Vendor: b'Microsoft Corporation'
Renderer: b'GDI Generic'

Try upgrading your graphics drivers and/or your graphics hardware in case of problems.

The application will leave now.

This is really very problematic !

@Archanciel
[INFO   ] [Python      ] v3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bit (AMD64)]

Anaconda overrides a lot of libraries with their own versions. Please try again with a CPython from python.org

Thanks for the suggestion, dolang. I did uninstall Python Anaconda 3.6.4 and installed CPython 3.6.5 instead, but this did not solved the problem. But I finally found the solution thanks to a contribution on an Intel graphical card forum. The idea is to use Shims to solve a driver compatibility problem. See the end of the thread here for a description of the solution.

Thank you for contributing your solution back. It might be able to help someone else with the same problem.

@gutcheschiro ,Thanks
It worked for me.
import os
os.environ['KIVY_GL_BACKEND'] = 'angle_sdl2'
import kivy
I'm using on windows 10, kivy 1.10.0, python 3.6.4

Is this is still present on 1.10.1? If so, would it make sense to alter the order of
https://github.com/kivy/kivy/blob/b4d3e7d0db67c9ad23dff8c48c4a275bafb9d76b/kivy/graphics/cgl.pyx#L59
so sdl2 is picked first (at least on windows)?

Is this is still present on 1.10.1? If so, would it make sense to alter the order of
https://github.com/kivy/kivy/blob/b4d3e7d0db67c9ad23dff8c48c4a275bafb9d76b/kivy/graphics/cgl.pyx#L59
so sdl2 is picked first (at least on windows)?

In Kivy 2.2.1 that code picks sdl2 or gl. Does that mean this can be closed?

authors: Archanciel Julian-O Kazun3500 Kerang KeyWeeUsr Naveenkariyappa Walpa Zen-CODE akshayaurora amitmarathe brentpicasso codypace68 dessant dolang encloinc gutcheschiro jeeger jegger jimanvlad lrq3000 lupin3rd matham maxcrow mborus schitzN sdementen steinnes sushihuye tito tshirtman


text:
Rare should equal failure with dictionary comparison [Remastered].

Well, as I tell before
dictionaries equal doesn't work well.
I would like to narrow down the area for inspection, but I could only give you a clue:
git: yourkarma/jwt
branch: master ( latest release, for example, 2.0.2 )
JWTSpec.m
describe encoding -> context claims set -> it decode claims set and verify it correctly.
steps to reproduce:

download latest release.
open JWT.xcworkspace
cleanup everything.
run tests.
do 4 - 3 - 4 - 4 - 4 - 3 - 4 or whatever order you'd like.
catch results as failure of example mentioned above.

Thanks for the remastered version! 😁
So I guess the problem is still occurring? Is it possible to reduce your test case at all? That is, does a dictionary comparison fail stochastically when not using code from the JWT project?
I ask because Kiwi uses -[NSObject isEqual:] for its equality matcher -- there isn't any special code path when comparing NSDictionary. For two dictionaries to only sometimes not be equal, I'd be forced to suspect either:

All Kiwi equality comparisons fail stochastically, or...
...Apple's -[NSDictionary isEqual:] sometimes returns different values.

I think the more likely explanation is that something in the JWTSpec_encoding_claims_set_decode_claims_set_and_verify_it_correctly test has a race condition, which causes the two dictionaries to not be equal sometimes.
Of course, it's possible there's some bug I'm overlooking in Kiwi. Reducing the test case would help find that, too!

@modocache hey, how could I isolate this test?
Is it possible to move it to single spec file?
I think no, because kiwi doesn't allow to run single test :(
Single test project as an option?

Hey @lolgear! Yeah, I think a new Xcode project with just this test, and just the source code it's testing, will probably help isolate the problem better.

@modocache
check master branch:
https://github.com/lolgear/JWT
Inspection -> SherlockHolmes project. ( In spec you could find steps to reproduce issue )

@modocache any update?

Not yet, sorry! Will try to find a spare minute during a weekend soon.

Or if you have some spare time before I do, you could take a look at the Kiwi internals to try and figure it out!

authors: lolgear modocache

repo: kiwi-bdd/Kiwi


text:
feat: support for multiple examples

Implements #589
Updates:

add specs/openapi/examples to hold the logic for retrieving examples from endpoints
add support for OpenAPI examples

Tests:

add unit tests for retrieving examples from "examples"
add tests to make sure the static_parameter objects are created correctly

Note:

Implementation allows the "example" and "examples" keywords to be used at the same time. We get all examples from "examples", and if "example" is used also, we create one more strategy using the "example" values.

One concern I have is that, when a request body has multiple mediaTypes, we retrieve examples from the "first" mediaType. However, because the API def is a dictionary, we don't know that calling next(iter(media_types_dict)) actually gives the first mediaType.
The important thing is that we get examples from the same mediaType that is used in specs/openapi/serialization. But I don't know that we can rely on getting the same mediaType because different dictionaries may have different hashing functions.

Great job! Re: dictionaries - I assume, that there might be corner-cases on non-CPython implementation of Python 3.6, but not sure how important it is to handle as we only declare CPython compatibility in pyproject.toml. Also, I don't know if PyPy has the same implementation detail as CPython for dicts on 3.6 (it might be, because that dicts impl came originally from PyPy) - otherwise, I am not sure if we need to support other implementations, that don't guarantee insertion ordering for dicts. I.e. I'd like to know what would be the affected space before taking action on this regard.

repo: kiwicom/schemathesis


text:
🛑 Thainess is down

In 1844861, Thainess (https://thainess.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Thainess is back up in 0db381b.

repo: kizzna/uptime


text:
confusing example on helper - color for prompt only needed - no matching brackets, completions etc.

Hello,
I have seen the example file but i find it quite confusing.
I do not need bracket matching, file completions or hinting, just plain colored prompt with some ANSI string (i got e.g. from colored crate, or manually written).
Can I add highlight_prompt functionality, without all the "underlated" traits (completion, hints, validations, ...)?
There are some references to colored_prompt in the example code, but helper has extra methods & traits that seem completely unrelated to the prompt higlighting, and it's not clear whether they can/should be replaced with some placeholder code to keep other functionality intact.

There is also an example with only an highlighter: https://github.com/kkawakam/rustyline/blob/master/examples/read_password.rs#L30-L32
And all Highlighter trait methods have a default implementation that does nothing (no highlighting) so you just have to overwrite highlight_prompt impl.

perfect, thank you for direction! :)

authors: RustyJoeM gwenn

repo: kkawakam/rustyline


text:
重构 Icon 组件

Tasking

[x] 解决逻辑报错
[x] 使用 composition api 重构逻辑
[x] 更新使用文档

Comment

我即将重构这个组件。doing

我即将重构这个组件。doing

其实 已经重构完了的emmmm

文档页demo显示有问题，因为少了一个div所以应用不到.demo-icon .source > div > i 选择器样式，其实所有组件demo都有这个问题

authors: ImJustAMan calcyu dengshenkk


text:
discussion: improve project layout and etc...

now youtube have more code and functions than before. To improve readability and maintainability, we would like to reorganize project layout, some plans are under discussion:

project layout: change to cmd/pkg(internal)/etc
reorganize errors
move some functions from youtube to own package

Thanks for any suggestion in advance.

closed by  v2

repo: kkdai/youtube


text:
[Snyk] Security upgrade node from 18.13.0 to 18.20.4

Snyk has created this PR to fix 2 vulnerabilities in the dockerfile dependencies of this project.
Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
Snyk changed the following file(s):

Dockerfile

We recommend upgrading to node:18.20.4, as this image has only 184 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.
Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Out-of-bounds Write SNYK-DEBIAN11-GLIBC-5927133
  829

Out-of-bounds Write SNYK-DEBIAN11-LIBWEBP-5893094
  829

Out-of-bounds Write SNYK-DEBIAN11-LIBWEBP-5893094
  829

Out-of-bounds Write SNYK-DEBIAN11-LIBWEBP-5893094
  829

Out-of-bounds Write SNYK-DEBIAN11-LIBWEBP-5893094
  829

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

Opened a fix PR for one issue as per the document

repo: kkebaara/nodejs-goof


text:
bug: Error when get_caller_address() is called within a view call

Bug Report
Current behavior:
In a view call, CALLER and ORIGIN opcodes return 0.
Expected behavior:
The should behave the same in view and execute call.
Related code:
https://github.com/kkrt-labs/kakarot/blob/e5556e30b7560b8d647899b6dc27bf4b20857f38/src/kakarot/library.cairo#L292
https://github.com/kkrt-labs/kakarot/blob/e5556e30b7560b8d647899b6dc27bf4b20857f38/src/kakarot/instructions/environmental_information.cairo#L129
https://github.com/kkrt-labs/kakarot/blob/e5556e30b7560b8d647899b6dc27bf4b20857f38/src/kakarot/instructions/environmental_information.cairo#L159
Other information:
See JSON-RPC spec and evm.codes
How to reproduce

fork: https://github.com/danilowhk/kakarot-opcode-test
add "@view execute" function on Kakarot
adapt: .env (kakarot contract and class_hash)

View function code:
@view
func execute{
    syscall_ptr: felt*, pedersen_ptr: HashBuiltin*, range_check_ptr, bitwise_ptr: BitwiseBuiltin*
}(
    starknet_contract_address: felt,
    evm_contract_address: felt,
    bytecode_len: felt,
    bytecode: felt*,
    calldata_len: felt,
    calldata: felt*,
    value: felt,
    gas_limit: felt,
    gas_price: felt,
) -> (
    stack_accesses_len: felt,
    stack_accesses: felt*,
    stack_len: felt,
    memory_accesses_len: felt,
    memory_accesses: felt*,
    memory_bytes_len: felt,
    starknet_contract_address: felt,
    evm_contract_address: felt,
    return_data_len: felt,
    return_data: felt*,
    gas_used: felt,
) {
    return Kakarot.execute(
        starknet_contract_address,
        evm_contract_address,
        bytecode_len,
        bytecode,
        calldata_len,
        calldata,
        value,
        gas_limit,
        gas_price,
    );
}

Ok, want to make sure I am understanding the problem space here--

our tests in python are calling these opcodes in the exact same way, so we are debugging a difference in VM issue and not a logic issue? really important context here.
this comment is around our integration tests in python, anyone can give context for it?

https://github.com/kkrt-labs/kakarot/blame/e273a58716f6a9a6f787b3b3817cbf1ad35035df/tests/integration/test_kakarot.py#L73

What is the status of this issue?

This is still an issue:
In this contract:
pragma solidity ^0.8.0;

contract TestContract {
    // This function will return the address of the caller
    function getCallerAddress() public view returns (address) {
        return msg.sender;
    }
}```

When trying to call getCallerAddress() from Remix, there is an error:

```2023-07-26 11:55:36 [2023-07-26T09:55:36Z WARN  katana_core::backend] Call error: VirtualMachineExecutionErrorWithTrace { trace: "Error in the called contract (0x07a20c8450211766ecde6cb15882f330381531a29da72648a893940a41728c8b):\nError at pc=0:37:\nGot an exception while executing a hint: Custom Hint Error: Requested contract address ContractAddress(PatriciaKey(StarkFelt(\"0x0000000000000000000000000000000000000000000000000000000000000000\"))) is not deployed.\nCairo traceback (most recent call last):\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:17986)\nUnknown location (pc=0:17364)\nUnknown location (pc=0:7532)\nUnknown location (pc=0:1737)\n", source: CairoRunError(VmException(VmException { pc: 37, inst_location: None, inner_exc: Hint((0, CustomHint("Requested contract address ContractAddress(PatriciaKey(StarkFelt(\"0x0000000000000000000000000000000000000000000000000000000000000000\"))) is not deployed."))), error_attr_value: None, traceback: Some("Cairo traceback (most recent call last):\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:18084)\nUnknown location (pc=0:17986)\nUnknown location (pc=0:17364)\nUnknown location (pc=0:7532)\nUnknown location (pc=0:1737)\n") })) }```

It seems this is not an issue when calling directly from forge:
The test for this is the
address sender_address = counter.getCallerAddress();
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import "forge-std/Script.sol";
import "kakarot/PlainOpcodes/GetCaller.sol";

contract GetCallerScript is Script {
    GetCaller public getCaller;

    function run() external {
        uint256 deployerPrivateKey = vm.envUint("EVM_PRIVATE_KEY");
        vm.startBroadcast(deployerPrivateKey);

        getCaller = new GetCaller();

        address sender_address = getCaller.getCallerAddress();

        console.logAddress(sender_address);
        require(
            sender_address ==
                address(0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266),
            "Address should be 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
        );
        vm.stopBroadcast();
    }
}

GetCaller Contract:
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

contract GetCaller {
    address private caller;

    // This function will return the address of the caller
    function getCallerAddress() public view returns (address) {
        return msg.sender;
    }
}

What is the status of this? Is it linked to get_caller_address issue?

What's the status of this?

Tried it locally, it works for latest Kakarot commit.
Closing this issue

authors: Eikix danilowhk jobez

repo: kkrt-labs/kakarot


text:
Usage double actual use

Hiya, love your work on this and appreciate your efforts. This is more of an FYI unless there's some clarity others had.
I was setting up my own glow and having trouble adjusting the sensitivity on the photodiode. It seemed unless I got it perfect it would either not register pulses or double count them. My meter is outside in a not very sealed box so perhaps that doesn't help.
I just added the following options to my config:
internal_filter: 200ms
internal_filter_mode: PULSE

I have had the 200ms filter in for a while but adding the filter mode seems to have solved the doublt counting issue.
I'm not entirely across why, I think it might be something to do with the daylight but I don't really understand why it would be.

I have exactly same issue. All the values are doubled to what the actual usage is. I have checked all the settings should be ok.

authors: Dale-Muccignat osro

repo: klaasnicolaas/home-assistant-glow


text:
Kill or restart?

Sorry if this is obvious, but does this kill and not start the worker back up, or will it do a restart. Thanks

Hi @randy-girard
It doesn't restart, you may have to do it manually or have a monitor tool like upstart or monit to restart Sidekiq automatically.

@randy-girard if you are using Heroku, restarts are automated as well :)
I don't think we could handle a restart since the process is kind of killing itself: we are generating a child thread from sidekiq process, and it is this thread that sends SIGTERM, and then dies as well...

Thanks yall.

authors: BuonOmo msxavi randy-girard

repo: klaxit/sidekiq-worker-killer


text:
Added compatibility contents with tx constructor

Proposed changes
From caver-js v1.8.1-rc.4, to support multiple Caver instances, transaction instance creation through the constructor for each transaction type is not supported.
Also i checked the example repo, and there was no places where use constructor to create tx.
In this PR, i've added something to what's described above.
v1.8.1-rc.4 is not released yet, so i wanna merge this after release.
Types of changes
Please put an x in the boxes related to your change.

[x] Minor Issues and Typos
[ ] Major Content Contribution
[ ] Others

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to reach out. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x] I have read the CONTRIBUTING GUIDELINES
[x] I have signed the CLA
[x] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

Related issues

Please leave the issue numbers or links related to this PR here.

Further comments
If this is a relatively large content contribution, kick off the discussion by explaining why you would suggest the content contribution, etc...

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@terrikwak Please take a look :)

@terrikwak @kjhman21
I think i don't have permission to merge. Can you merge this for me?

@dcground @neoofklaytn Please take a look this :) Thank you

repo: klaytn/klaytn-docs


text:
Create CLA.yml

Proposed changes

Create CLA pipeline on Github Actions

Types of changes
Please put an x in the boxes related to your change.

[ ] Bugfix
[ ] New feature or enhancement
[x] Others

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x] I have read the CONTRIBUTING GUIDELINES doc
[x] I have signed the CLA
[ ] Lint and unit tests pass locally with my changes ($ make test)
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

Related issues
Further comments

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

repo: klaytn/klaytn-integration-tests


text:
update the workload proposl

What type of PR is this?
update the workload proposl

What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Flag
Coverage Δ

unittests
31.67% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

repo: kmesh-net/kmesh


text:
Added album name support.

I have added Album Name support to SpotMenu, of course with a preference to configure it. By default, it is set to true. I also updated the Xcode Workspace project format to be Xcode 8 and higher compatible only, since we don't target any macOS versions that still use Xcode 3.2.
I have tested this a bunch, and so far it works really well aside from the fact that I haven't figured out a way to hide the album name if it's the exact same as the song title unfortunately.

looks good to me!

authors: KamranMackey kmikiy

repo: kmikiy/SpotMenu


text:
How do I find keycodes for special German / Danish / Nordic keys to use in defsrc?

I'm trying to set up using a laptop with a Danish keyboard. It's a ThinkPad, and I have been using the X220 DE template by @slotThe to get started defining my defsrc block.
The template quickly doesn't match, as my keyboard has ½ left of 1, so I replace that just with ^ as in the X220 template, to get started. Alas:
kmonad: Parse error at 24:3:
   |
24 |   ^    1    2    3    4    5    6    7    8    9    0    kp+  grv       bspc
   |   ^
unexpected '^'
expecting ')' or keycode

Figuring that maybe I can't just paste, I try replacing ^ with +:
kmonad: Parse error at 24:3:
   |
24 |   +    1    2    3    4    5    6    7    8    9    0    kp+  grv       bspc
   |   ^
unexpected '+'
expecting ')' or keycode

OK. So I look up the keycodes in Keycode.hs and see that maybe I should use kp+ instead of just +. Succés! Now that doesn't error.
Alas, my first Danish character does:
kmonad: Parse error at 25:58:
   |
25 |   tab  q    w    e    r    t    y    u    i    o    p    å    kp+       ret
   |                                                          ^
unexpected 'å'
expecting ')' or keycode

OK. I cant find anything relevant in Keycodes.hs, so to move on, I replace it with what is in the X220 template, namely ß -- eszett, the german double s.  Alas, to no avail:
unexpected 'ß'
expecting ')' or keycode

Now I'm confused. I can't seem to find anything in Keycodes.hs. Others have seemingly had it working earlier. I'm at a loss.
How do I figure out what keycodes I should use to define my defsrc block?
I apologize if I have missed something obvious. I'm on the Ubuntu-related Pop!_OS 21.04 running Wayland.

The template quickly doesn't match, as my keyboard has ½ left of 1

The defsrc block is not really meant as an accurate representation of the layout that you want, but more of your physical keyboard as a whole.  As a rule of thumb, always specify a generic US keyboard layout there.
It is also rather restricted in terms of what it accepts, hence symbols that wouldn't phase the parser in a deflayer block are giving you some troubles here.

@slotThe is spot on. The ink on your keys doesn't match the events that get sent to the kernel. The easiest solution would be to run evtest on your keyboard and inspect the events that get sent to the kernel. Those have to line up with your (defsrc ...) definition, and then the rest should work.

Thank you! Defining a US layout was straightforward, and I have now verified its correctness with evtest.
Mapping the US layout back to Danish, I run into some unforeseen and undesirable behavior.
Following the "Special characters" section in this suggested wiki-etry, I've added the following to else empty ~/.XCompose
include "%L"
<Multi_key> <a> <o> : "å"
<Multi_key> <a> <e> : "æ"
<Multi_key> <o> <e> : "ø"
<Multi_key> <1> <2> : "½"
<Multi_key> <1> <0> : "´"
<Multi_key> <1> <p> : "¨"
<Multi_key> <1> <a> : "'"

and use the following config.kbd:
(defcfg
  input   (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd")
  output  (uinput-sink
            "KMonad: X1C9"
            "/usr/bin/sleep 1 && /usr/bin/setxkbmap -option compose:ralt")
  cmp-seq ralt
)

(defalias
    å #(ralt a o)
    æ #(ralt a e)
    ø #(ralt o e)
    ½ #(ralt 1 2)
    ´ #(ralt 1 0)
    ¨ #(ralt 1 p)
    ' #(ralt 1 a)
)

(defsrc
  esc  f1   f2   f3   f4   f5   f6   f7   f8   f9   f10  f11  f12  home end  ins  del
  grv  1    2    3    4    5    6    7    8    9    0    -    =         bspc
  tab  q    w    e    r    t    y    u    i    o    p    [    ]         ret
  caps a    s    d    f    g    h    j    k    l    ;    '    \
  lsft 102d z    x    c    v    b    n    m    ,    .    /              rsft
  wkup lctl lmet lalt           spc            ralt cmps rctl      back up   fwd
                                                                   left down rght
)

(deflayer default
  esc  f1   f2   f3   f4   f5   f6   f7   f8   f9   f10  f11  f12  home end  ins  del
  @½   1    2    3    4    5    6    7    8    9    0    +    @´        bspc
  tab  q    w    e    r    t    y    u    i    o    p    @å   @¨        ret
  caps a    s    d    f    g    h    j    k    l    @æ   @ø   @'
  lsft 102d z    x    c    v    b    n    m    ,    .    -              rsft
  wkup lctl lmet lalt           spc            ralt cmps rctl      back up   fwd
                                                                   left down rght
)

That works, partially, but with a lot of issues. The keys work, but in different ways, each key acts unexpected in combination with ´Shift´ and ´AltGr´.
Am I missing some step?

No, that is how special characters work in Linux, we use compose sequences to emit rapid macros that tell the OS what to encode. I.e. we emit something like altgr -> shifted-' -> e to emit an e-umlaut. This is an alright method of emitting special characters if you don't need them too much.
The other option that might work better if you have to use special characters a lot is to simply emit the raw keycodes that your keyboard would have (i.e. if you test evtest on æ and it says that internally it's coded as ;, you can encode your keyboard to just emit a ; (maybe document it in the comments of your keymap). Then you can let the internationalization settings of your OS deal with translating it into a æ.
Do you understand what I'm describing?

I believe I do, and thank you for it!
As option 1 doesn't seem to work ideally for me (e.g., I do need my Shift + ø to be Ø, not Œ ), I tried option 2.
Option 2 works under X, but not under Wayland, when I boot with no remappings active and my input source set to Danish, run kmonad with a config file where deflayer default is identical with defscr from my comment above, with nothing in my .XCompose.

The KMonad name did seem to hint to somebody's preferences :)
I'm sorry if I'm being slow here, but what you are suggesting is that I as a first step get my hands on an external, non-Danish keyboard and check whether that acts as desired with my input source set to Danish, under Wayland?
And if not, then troubleshoot that, learn a lesson, and apply the same to KMonad?

I'm sorry if I'm being slow here, but what you are suggesting is that I as a first step get my hands on an external, non-Danish keyboard and check whether that acts as desired with my input source set to Danish, under Wayland?

Oops: didn't explain my suggestion correctly.
What I was suggesting was treating your KMonad remapping entirely as US-english, but keeping in the back of your head that your OS is going to be remapping some US keys to Danish keys. So don't try to get KMonad to emit special characters, like Ø (which it will try to do using compose sequences), instead just get KMonad to emit the US character which your OS will interpret as Ø. That was all the shifting behavior etc. should just work out of the box.

Oh: and as an addendum, how you could do that under X:
After KMonad is launched, call an setxkbmap dk command, setting the (OS) keyboard map to something. Whenever you plug in a new keyboard, that command needs to be called, and when KMonad starts it 'plugs in' a simulated keyboard, so you'll have to call that after you start KMonad. There is a post-init setting in the defcfg section that will let you do this automatically, but experiment by hand first.

You can also switch to a vt (with ctrl-alt-f2) and use the evtest utility. It will give you the linux keynames directly, which you can use in your config as-is (just remove the prefix and convert to lowercase).

This seems fixed so I'm closing for now

Sorry for commenting on an old, closed issue, but I wondered how exactly I could achieve the behavior described in:

What I was suggesting was treating your KMonad remapping entirely as US-english, but keeping in the back of your head that your OS is going to be remapping some US keys to Danish keys. So don't try to get KMonad to emit special characters, like Ø (which it will try to do using compose sequences), instead just get KMonad to emit the US character which your OS will interpret as Ø. That was all the shifting behavior etc. should just work out of the box.

Because this is exactly what I'm looking for. Basically, I want to be able to insert foreign symbols (German umlauts in my case) while a modifier key is pressed. I want to be able to get upper- and lowercase characters, which doesn't seem to work if I use the symbols directly in my kmonad mappings.

repo: kmonad/kmonad


text:
Configurable Privacy Options

While discussing this project + chat privacy in general, we had a small discussion around chat privacy and it will be useful for this project to have configurable privacy options so that this can serve varied groups which have different privacy needs.

Posting some initial thoughts on this

Option to show / hide timestamp - the template can show / hide timestamp based on this.
Link Mode :- Option to pick only links / media and scrub off any comments. This lets the group archive only resources while skipping the chatter. This lets community have freedom to chat, prevents chatty noise on archives, while preserving value. This can be True / False
Include / Exclude from archives based on select hashtags - If LinkMode is True, a set of hashtags can be added as 'Include' hashtags so those important messages get archived, wihle leaving out remaining chats. If LinkMode is False, a set of hashtags can be added to 'Exclude' hashtag (like #DontArchive #KeepThisPrivate), so that the group can still have private non-archiving conversations even while on Full Archive mode.

Thoughts?

"This is a privacy risk, lets stay as is"

Just setting some context, this was discussed in Foss United as well before publishing the archive. Like @knadh mentioned, for an already public Telegram group, the chats are available publicly anyway.

About privacy, like @mr-karan pointed out, by definition, there is no privacy in a public Telegram group. Anyone can join and read/export/copy/re-publish messages at any point.

Option to pick only links / media and scrub off any comments

This is too niche an option to include in the global config, but can be easily achieved externally by doing a DELETE from messages WHERE media_id is NULL on the .sqlite file.

Include / Exclude from archives based on select hashtags

Again, too specific to include in the config but can be easily achieved by querying the .sqlite file.
These can be done with the SQLite CLI.

authors: knadh mr-karan srikanthlogic

repo: knadh/tg-archive


text:
Make SECURITY.md consistent

We're missing these across a lot of Knative repos, this is copied/improved from the 3 that existed.

/approve
/lgtm

authors: davidhadas evankanderson